Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

HELP me ...about SQL on Cpanel

Discussion in 'Database Discussion' started by sondang, May 11, 2007.

  1. sondang

    sondang Member

    Joined:
    May 11, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    Dear all i'm new in cpanel and i got trouble in creating SQL database ....
    my question is when i finish creating sql database and add user into the data i receive this ""php script
    Connection Strings
    Perl $dbh = DBI->connect("DBI:mysql:daysindo_newsreg:localhost","daysindo_days","<PASSWORD HERE>");
    PHP $dbh=mysql_connect ("localhost", "daysindo_days", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
    mysql_select_db ("daysindo_newsreg");

    what is that mean ??? :confused:

    i there anyone who willing to help me trough out using MySQL on Cpanel i would be great full
     
  2. shopcentar

    shopcentar Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2004
    Messages:
    55
    Likes Received:
    1
    Trophy Points:
    158
    this code is example how to use mysql connection with perl and php language/scripts.

    bye, SC
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sondang

    sondang Member

    Joined:
    May 11, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    So u mean my SQLdatabse that i creat on cpanel is ready to use rite , but i also have trouble creating SQLconnection on Dreamweaver MX 2004 i fill this kind information bellow

    Conname : newscon
    SQL Server : 7daysindonesia.com (this is my website )
    user: daysindo_days
    psswd:123456

    when i clik select databes button

    i receive this ereor 404 file not found how come like this


    Thanx
    Steven
     
    #3 sondang, May 13, 2007
    Last edited: May 13, 2007
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice