WordPress cannot connect to the database

Source: Internet
Author: User
Your website may have database problems, either the database account or password is incorrect, or the database itself is faulty. Please refer to the instructions below. If the problem persists, you can post a post in this forum and ask someone to answer the question. Wordpress.org.cn installation instructions: * extract the compressed package to an empty directory, create an empty database in your MySQL Management Office, and assign all database operation permissions to a database user. * UseCodeEditor (recommended editplus), open the wp-config-sample.php and fill in your database connection information. Modify three items: Define ('db _ name', 'putyourdbnamehere '); // database name define ('db _ user', 'usernamehere '); // your MySQL username define ('db _ password', 'yourpasswordhere '); // Database Password define ('db _ host', 'localhost '); // basically, you do not need to change this item (If your database has a separate address, enter the corresponding address without adding http: //) define ('db _ charset ', 'utf8'); define ('db _ collate', ''); * save the file as a wp-config.php. * Upload all files. * Open your blog webpage address/WP-admin/install. php in your browser. It will create the data table required for your blog. If an error occurs, check the wp-config.php and try again. If you fail again, collect as much information as possible and go to the Forum for help. * Record your password. * InstallationProgramYou will be taken to the logon page. Enter the User Name Admin and the password recorded above. You can change the password on the "user"-"document" page.
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.