这个问题已经有了答案:
* [为什么不使用WAMP堆栈?](https://serverfault.com/questions/453617/why-not-use-a-wamp-stack) 5个答案
This question already has an answer here:
* [Why not use a WAMP stack?](https://serverfault.com/questions/453617/why-not-use-a-wamp-stack) 5 answers
我是一个相对较新的LAMP开发人员,他主要通过AWS学习Linux。 我有一个实时的Elastic Beanstalk实例启动并运行。 我做了以下软件包的yum安装:
I am relatively new LAMP dev who is trying to learn Linux primarily through AWS. I have a live Elastic Beanstalk instance up and running. I did a yum install of the following packages:
mysql55.x86_64 mysql55-bench.x86_64 mysql55-common.x86_64 mysql55-devel.x86_64 mysql55-libs.x86_64 mysql55-server.x86_64 mysql55-test.x86_64
这一切似乎安装得很好......然后输入......
Which all seemed to install fine ... then typed ...
mysql -V
让我
which gets me
mysql Ver 14.14 Distrib 5.5.20, for Linux (x86_64) using readline 5.1
...确认安装了mysql ...但是当我输入时...
... which confirms mysql is installed ... but then when I type ...
mysql -u ec2-user -p
Enter password: /*leaving blank*/
我明白了......
I get ...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
现在问题是我正在使用我在AWS Console中创建的安全组密钥对进入此服务器。 因此,当我以ec2-user身份登录框时,关键是验证我(来自.ppk文件)。 这是我的"根" 用户,据我所知,没有密码,但我可能弄错了。
Now the thing is I am ssh-ing into this server with a Security Group key pair I created in AWS Console. So the key is authenticating me (from the .ppk file) when I log into the box as ec2-user. That IS my "root" user as far as I know, there is no password, but I may be mistaken.
所以,基本上我不了解如何在linux环境中开始使用MySQL的基础知识。 到目前为止,我才真正使用过来自WAMP的PHPMyAdmin和MySQL命令行。
So, basically I don't understand the basics of how to begin using MySQL in a linux environment. I've only really used PHPMyAdmin and the MySQL command line from WAMP until now.
有人可以帮我解决我在这里划线的问题吗?
Can somebody help me with where I'm getting my wires crossed here?