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.

HELP me ...about SQL on Cpanel

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

  1. sondang

    sondang Member

    Joined:
    May 11, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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:
    8
    this code is example how to use mysql connection with perl and php language/scripts.

    bye, SC
     
  3. sondang

    sondang Member

    Joined:
    May 11, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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