PDA

View Full Version : Apache with MYSQL trouble


mandarin14
1st December 2005, 00:07
Im trying to set up a website which was created in a windows box and moved to this debian box. I keep getting the same error below everytime i check the webpage. Im pretty much stumped on what to do.

-----




IPB WARNING [2] mysql_connect(): Lost connection to MySQL server during query (Line: 132 of /ips_kernel/class_db_mysql.php)



There appears to be an error with the database.
You can try to refresh the page by clicking here.

Error Returned


SQL error: Lost connection to MySQL server during query
SQL error code:
Date: Wednesday 30th of November 2005 03:05:42 PM

falko
1st December 2005, 01:18
Do you use the correct MySQL username and password in your scripts?

mandarin14
1st December 2005, 01:43
Is this in the php.ini config file?

falko
1st December 2005, 10:10
Is this in the php.ini config file?
No! I guess there's some kind of config file for your web application where you can set the MySQL user and password.

themachine
4th December 2005, 20:18
Once you find the config file with the Username/Password you should attempt connecting to the mysql server manually (not through the web application) to verify the login credentials are correct:

# mysql -u <username> -p <database_name>
password: ********


You would run that on the server itself.