The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

phpbb not conect sql [moved]

Discussion in 'Database Discussions' started by cdms, Feb 18, 2007.

  1. cdms

    cdms Registered

    Joined:
    Feb 18, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Current Databases:
    Code:
    connection Strings
    Perl	$dbh = DBI->connect("DBI:mysql:cdms_phpbb:localhost","cdms_cdms","<PASSWORD HERE>");
    PHP	$dbh=mysql_connect ("localhost", "cdms_cdms", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
    mysql_select_db ("cdms_phpbb");

    my config.php
    Code:
    <?php
    
    $dbms = 'mysql';
    
    $dbhost = 'localhost';
    $dbname = 'cdms_phpbb';
    $dbuser = 'cdms_cdms';
    $dbpasswd = 'XXXXXX';
    
    $table_prefix = 'phpbb_';
    
    define('PHPBB_INSTALLED', true);
    
    ?>
    error message
    Code:
    phpBB : Critical Error
    
    Could not connect to the database

    General server information:
    Operating system Linux
    Service Status Click to View
    Kernel version 2.6.9-42.ELsmp
    Machine Type i686
    Apache version 1.3.37 (Unix)
    PERL version 5.8.7
    Path to PERL /usr/bin/perl
    Path to sendmail /usr/sbin/sendmail
    Installed Perl Modules Click to View
    PHP version
    MySQL version 4.1.21-standard
    cPanel Build 10.9.0-STABLE 119
    Theme cPanel X v2.6.0
    Documentation Click to View
    cPanel Pro 1.0 (RC36)

    HELP ME
     
  2. inalto

    inalto Member

    Joined:
    Mar 27, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Seems you have create the user and the database but you not added the user to the database.
    You have to add the user to the database with all necessary privileges.
     
  3. cdms

    cdms Registered

    Joined:
    Feb 18, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    hi,

    cdms_cdms (Privileges: ALL PRIVILEGES)

    probblema is more serious than this

    HELP ME
     
  4. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Did you verify connecting any other php application to mysql and see if that works. Or the issue is with phpbb only?
     
  5. cdms

    cdms Registered

    Joined:
    Feb 18, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    no connection of php to sql is accepted
    I installed phpchat for cpanel and exactly thus error occurs
    connection for mysql is only accepted

    sorry my bad english
     
  6. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Can you try a apache recomplie using the easyapache script.

    Anyway we might have to check the logs to see where exactly the issue is.
     
  7. cdms

    cdms Registered

    Joined:
    Feb 18, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1

Share This Page