Network virtual host local WAMP database migration problem.

Source: Internet
Author: User
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?

    1. is wamp an exported SQL file that contains the database name and password?

    2. 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?

    1. is wamp an exported SQL file that contains the database name and password?

    2. 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.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.