An error message "Can't select MySQL database" appears in ecshop.

Source: Internet
Author: User
Tags php file php and table name mysql database

Error message


ECSHOP info: Can't select MySQL database (ram). How Can I solve this problem?

The ecshop displays the "Can't select MySQL database" error prompt. How many lines of big prompts are displayed on the entire web page, and then there is a blank space, in fact, anyone who understands PHP knows this is a mysql database connection error, not only in ecshop systems, but also in other CMS or self-written PHP systems, now that we know the reason, let's check whether the ecshop configuration file is correct.

The root password set before the summer blog is "root" and later changed to "meimima". Find the ecshop configuration file data/config. php and find the following code:

// Database password $ db_pass = "root"; Change $ db_pass = "root" to $ db_pass = "meimima ";

OK, the problem is solved. This problem is usually caused by changing the mysql User name, password, or data table name, which leads to the failure to connect to the mysql database. re-configure the php file so that it can connect to the database normally.


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