php连接用127.0.0.1可以连接数据库,用localhost无法连接。 unix socket 的路径是一致的啊,有谁能解释一下,为啥用localhost连接不上。
我详细的说下吧。以前安装过SQL server,后来给删了。 最近在学数据库所以就安装了个MySQL,安装过程几乎没多大改动,是按照他推荐的安装的。安好了后我开始配环境变量。 配好后输入mysql -h localhost -u root -p后就会出现如下提示,输入net start mysql也是一样的提示 ...
There may be times when you'll want to copy a MySQL database to a website. For example, if you are going to make changes to your company website, you should edit a copy of the site, not the live ...