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.

PLZ HELP Mysql

Discussion in 'General Discussion' started by jonny1, May 8, 2004.

  1. jonny1

    jonny1 Registered

    Joined:
    May 7, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Connection Strings
    Perl $dbh = DBI->connect("DBI:mysql:jonny1_forums:localhost","jonny1_j","<PASSWORD HERE>");
    PHP $dbh=mysql_connect ("localhost", "jonny1_j", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
    mysql_select_db ("jonny1_forums");

    i get this error when i create a mysql database and username..

    Warning: main(./sources/functions.php): failed to open stream: No such file or directory in /home/jonny1/public_html/forums/index.php on line 120

    when i try to manually install invisionpower board i get that error after its a ll complete

    can someone PLEASE help me.
     
  2. jonny1

    jonny1 Registered

    Joined:
    May 7, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    can someone please help me? im new here and dont know what to do!
     
  3. eazistore

    eazistore Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Singapore
    Hi jonny,

    I'm not sure if this helps.

    $dbhost = "localhost";
    $dbuname = "jonny1_user";
    $dbpass = "password";
    $dbname = "jonny1_data";


    Most of the time is due to you have a jonny1_pass field wrong.
    It should be password without the user name (jonn1_) in it.

    And also lastly, check for type error in your config file as well.

    Rgds,
    Vincent
    http://www.eazistore.com
     
Loading...

Share This Page