HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Apache with MYSQL trouble (http://www.howtoforge.com/forums/showthread.php?t=1486)

mandarin14 1st December 2005 00:07

Apache with MYSQL trouble
 
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

Quote:

Originally Posted by mandarin14
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.


All times are GMT +2. The time now is 14:44.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.