Local WAMP Environment, got a website, the database password is set at that time, the local debugging completed, and then purchase million network virtual host, the site file upload succeeded, SQL file also imported database, and no error, but, Access site tips:
MySQL Server Error:Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) ( 2002 )
Should be the local debugging database password and WAN network database password is not the same, how to deal with this situation?
is wamp an exported SQL file that contains the database name and password?
Local Site program settings are Http://localhost/website, migrated to the million network virtual space to change the site settings? If so, how can I change it?
Reply content:
Local WAMP Environment, got a website, the database password is set at that time, the local debugging completed, and then purchase million network virtual host, the site file upload succeeded, SQL file also imported database, and no error, but, Access site tips:
MySQL Server Error:Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) ( 2002 )
Should be the local debugging database password and WAN network database password is not the same, how to deal with this situation?
is wamp an exported SQL file that contains the database name and password?
Local Site program settings are Http://localhost/website, migrated to the million network virtual space to change the site settings? If so, how can I change it?
MySQL configuration is not correct, this error is usually the database does not start
Password errors are not the kind of hint
SQL file Confirmation If there is a name and password, change the name password to the online environment
You mean the domain name of the local program? Domain name of course to change, if the program wrote dead domain name, should be changed. How to change, how to write on how to change, you can certainly find a way.