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!