php连接用127.0.0.1可以连接数据库,用localhost无法连接。 unix socket 的路径是一致的啊,有谁能解释一下,为啥用localhost连接不上。
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 ...