What does this Warning mean on the php webpage? How can this problem be solved?

Source: Internet
Author: User
What does this Warning mean on the php webpage? Warning: mysql_connect () [function. mysql-connect]: CantconnecttoMySQLserveronlocalhost (10048) inD: APMServ5.2.6wwwhtdocsconfig. phponline19 what does this Warning mean on the php webpage?
Warning: mysql_connect () [function. mysql-connect]: Can't connect to MySQL server on 'localhost' (10048) in D: \ APMServ5.2.6 \ www \ htdocs \ config. php on line 19
Warning: mysql_select_db (): supplied argument is not a valid MySQL-Link resource in D: \ APMServ5.2.6 \ www \ htdocs \ config. php on line 20
Warning: mysql_query () [function. mysql-query]: Can't connect to MySQL server on 'localhost' (10048) in D: \ APMServ5.2.6 \ www \ htdocs \ config. php on line 21

The webpage can be displayed normally, but what is the problem prompted at the top of the page?

------ Solution --------------------
Very simple. the database is not connected!
Remember that the database is not connected to the database. we recommend that you check the following code:
The database connection account and password. Generally, the connected server is a local localhost. if you have not set the database account and password
By default, the root password for MYSQL is blank. if the account and password are used, you must enter the corresponding account and password!
You should be using APMServ5.2.6. you should open the database management of APMServ5.2.6. Before you enter the management, there will be a login window. you need to enter the user name and password, if you have not set a password, click log on to check whether the password is successful!

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.