Install error...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Contramontanum
    Member
    • Feb 2004
    • 61
    • 3.8.x

    Install error...

    I am running the vB installer and get the foolowing error message:

    Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/xxxxx/public_html/forum/includes/db_mysql.php on line 140

    The database has failed to connect because you do not have permission to connect to the server. Please confirm the values entered in the 'includes/config.php' file.

    I assume this has to to with one or all of the followig: db username/password and/or db name. I have e-mailed my host to get these verified, but I thought I'd post it here to make sure I'm at least asking the right questions. Am I?
    Chop Dewey
  • Ken Iovino
    Senior Member
    • Jan 2003
    • 463
    • 3.7.x

    #2
    The install script can't connect to your database, you have to make sure all the settings are correct in config.php
    Ken Iovino
    Full Time PHP, Ruby and iOS Developer

    Comment

    • Zachery
      Former vBulletin Support
      • Jul 2002
      • 59097

      #3
      Also make sure you renamed config.php.new to config.php.

      Make sure its in the /includes folder and not Admin or Admincp.

      Comment

      • Contramontanum
        Member
        • Feb 2004
        • 61
        • 3.8.x

        #4
        Yes, and that would have to do with db username/password and/or db name? Or not? Forgive me for asking stupid questions, but I'm like a baby taking his first steps here...
        Chop Dewey

        Comment

        • Zachery
          Former vBulletin Support
          • Jul 2002
          • 59097

          #5
          Yes, config.php holds the database name, database user name database password, along with several other vital varibles they arnt so nessary to be changed.

          Comment

          • Ken Iovino
            Senior Member
            • Jan 2003
            • 463
            • 3.7.x

            #6
            Most common settings
            PHP Code:
            $servername 'localhost';
             
            $dbusername Username here';
            $dbpassword = '
            password here';
             
            $dbname = '
            database name here';
             
            $technicalemail = youremailaddy @ here.com'
            ;
             
            $usepconnect 0;
             
            $admincpdir 'admincp';
            $modcpdir 'modcp';
             
            $canviewadminlog '1,2';
             
            $canpruneadminlog '1,2';
             
            $canrunqueries '1,2';
             
            $undeletableusers '1,2';
             
            $superadministrators '1,2';
             
            $tableprefix '';
             
            $cookieprefix 'bb'
            Ken Iovino
            Full Time PHP, Ruby and iOS Developer

            Comment

            • Contramontanum
              Member
              • Feb 2004
              • 61
              • 3.8.x

              #7
              OK, my host got back to me and I changed servername to "localhost" in config.php, but I'm still getting the same error message. What is this db_mysql.php, and how do I find line 140? The document in Notepad is only 11 lines and about 10 screens wide. I haven't touched this file, only config.php.
              Chop Dewey

              Comment

              • Contramontanum
                Member
                • Feb 2004
                • 61
                • 3.8.x

                #8
                Problem solved. I'm up and running!
                Chop Dewey

                Comment

                Related Topics

                Collapse

                Working...