Apache with MYSQL trouble

Discussion in 'Installation/Configuration' started by mandarin14, Dec 1, 2005.

  1. mandarin14

    mandarin14 New Member

    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
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Do you use the correct MySQL username and password in your scripts?
     
  3. mandarin14

    mandarin14 New Member

    Is this in the php.ini config file?
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    No! I guess there's some kind of config file for your web application where you can set the MySQL user and password.
     
  5. themachine

    themachine New Member HowtoForge Supporter ISPConfig Developer

    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.
     

Share This Page