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.

Mysql error

Discussion in 'General Discussion' started by masterhaseeb, Mar 17, 2008.

  1. masterhaseeb

    masterhaseeb Registered

    Joined:
    Mar 17, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi
    I have created a database then user & pass then added Privileges to that database in cPanel.After that i got this error.Please help me.


    Connection Strings
    Perl $dbh = DBI->connect("DBI:mysql:hummco_invision:localhost","hu mmco_hummania","<PASSWORD HERE>");
    PHP $dbh=mysql_connect ("localhost", "hummco_hummania", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
    mysql_select_db ("hummco_invision");
     
  2. fishfreek

    fishfreek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    238
    Likes Received:
    0
    Trophy Points:
    16
    Thats not an error. Thats telling you what connection strings you would need for perl or php to connect to the database if you was programming your own script.
     
  3. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
    Also remember to replace <PASSWORD HERE> with your actual password.
     
Loading...

Share This Page