Announcement

Collapse
No announcement yet.

Getting an Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting an Error

    What is wrong with my database?

    Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/fade/public_html/admin/db_mysql.php on line 40

    P,BODY{FONT-FAMILY:tahoma,arial,sans-serif;FONT-SIZE:11px;}


    There seems to have been a slight problem with the database.
    Please try again by pressing the refresh button in your browser.

    An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

    We apologise for any inconvenience.



  • #2
    That means at least one piece of MySQL information in your admin/config.php file is wrong or MySQL isn't setup properly. You should contact your host to make sure you have the correct MySQL information.

    The variables in your admin/config.php file that you need to check are:

    // hostname or ip of server
    $servername="";

    // username and password to log onto db server
    $dbusername="";
    $dbpassword="";

    // name of database
    $dbname="";

    Comment


    • #3
      Hmm. It happened all of a sudden. It had been working fine previously. The username, password, and database name all seem to be the same.

      Comment


      • #4
        Maybe the MySQL service went down. This too is something you will need to contact your host about.

        Comment


        • #5
          Someone has deleted my database. There was a threat posted on my website several months ago that said by website would "disappear" by Easter.

          Comment


          • #6
            Mysteriously, the database has reappeared and everything works fine now.

            Comment


            • #7
              If you don't have a recent backup, now might be a good time.

              Step 1 in this guide tells you how to backup your database.

              Comment


              • #8
                Thnx

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                X