Installation error..........

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AAMS
    • Apr 2024

    Installation error..........

    Hi, I'm a new to vbulletin and all of this .. but I think I did everything right with the config.php editing..

    but i got this error message in step 2:

    Step 2) Connect to the database
    Attempting to attach to database
    Connect failed: unexpected error from the database.
    Error number: 1044
    Error description: Cannot use database public_html
    Please ensure that the database and server is correctly configured and try again.



    any help please?
    Thanx,
  • peterska2
    Senior Member
    • Oct 2003
    • 8869
    • 3.7.x

    #2
    This means that the information in config.php is incorrect. Please check the information in your config.php file and adjust as required.

    Note: The information required in config.php is for your database not for your FTP.

    Comment

    • AAMS

      #3
      ok since the message is talking about public_html directory, then let me explain my situation ...

      I uploaded the "upload" folder after the editing to the public_html directory... and then renamed it to forums.... now shouldn't this what i have to do:

      $config['Database']['dbname'] = 'public_html';

      ??

      P.S. I tried to put 'forums' as dbname but it didn't work also...

      Comment

      • peterska2
        Senior Member
        • Oct 2003
        • 8869
        • 3.7.x

        #4
        You may need to create a database and database user in your hosting control panel then assign the database user to the database with full permissions. When you have done that, you need to put the database name, database username, database password, and database server (usually localhost) in the relevant places in config.php.

        If you do not know how to create a database or database user then you will need to contact your host for help with this as the instructions vary depending on the host and hosting control panel used.

        Comment

        • beishe8
          Senior Member
          • Oct 2005
          • 6782
          • 4.2.X

          #5
          Originally posted by AAMS
          ok since the message is talking about public_html directory, then let me explain my situation ...

          I uploaded the "upload" folder after the editing to the public_html directory... and then renamed it to forums.... now shouldn't this what i have to do:

          $config['Database']['dbname'] = 'public_html';

          ??

          P.S. I tried to put 'forums' as dbname but it didn't work also...
          It should be the name of the database you just created.
          It is not in the public_html folder.


          vB5 is unequivocally the best forum software, but not yet...

          Comment

          • AAMS

            #6
            Ok, so after I creat a new database ... should I upload vbulletin folder again to it and delete the old directory?

            and it should be located in the public_html directory right ? ...

            Comment

            • AAMS

              #7
              Originally posted by beishe8
              It should be the name of the database you just created.
              It is not in the public_html folder.


              I did put 'forums' as the folder that contains the vbulletin (located in the public_html) ... if that is what you mean .. but it didn't work ....

              Comment

              • peterska2
                Senior Member
                • Oct 2003
                • 8869
                • 3.7.x

                #8
                The database information is nothing to do with the files on your FTP. It is regarding the database itself. See post #4 for details of what you need to do.

                Comment

                • Lats
                  Senior Member
                  • Mar 2002
                  • 3671

                  #9
                  If your username at your host is aams, then most likely your database name would be aams_forums, so part of your config file would be like this...
                  PHP Code:
                  ...
                  $config['Database']['dbtype'] = 'mysql';
                   
                  // ****** DATABASE NAME ******
                   // This is the name of the database where your vBulletin will be located.
                   // This must be created by your webhost.
                  $config['Database']['dbname'] = 'aams_forums';
                   
                  // ****** TABLE PREFIX ******
                   // Prefix that your vBulletin tables have in the database.
                  $config['Database']['tableprefix'] = '';
                  ... 
                  Lats...

                  Comment

                  • AAMS

                    #10
                    yep it worked ...


                    thanx a lot guys ...

                    Comment

                    • ComoEstaEso-com
                      Member
                      • Feb 2009
                      • 91
                      • 3.8.x

                      #11
                      The information in this thread helped me solve my problems.

                      Thanks a lot to everyone! =)
                      Disable Block Cache --- y/N
                      Leave this setting alone.

                      Comment

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