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.

Problem in CPanel adding user to database

Discussion in 'General Discussion' started by pobox300, Apr 1, 2002.

  1. pobox300

    pobox300 Registered

    Joined:
    Apr 1, 2002
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    In the user end of CPanel a database can be created without a problem, however when a user is created and you try to ad that user to the database it fails.

    In CPanel I get this:

    Connection Strings
    Perl $dbh = DBI-&connect(&DBI:mysql:hostus_forum:localhost&,&hostus_hostus&,&&PASSWORD HERE&&);
    PHP $dbh=mysql_connect (&localhost&, &hostus_hostus&, &&PASSWORD HERE&&) or die ('I cannot connect to the database.');
    mysql_select_db (&hostus_forum&);
    JDBC (may not be avalible) &%@ page import=&java.sql.*& %&
    Connection connection = null;
    Class.forName(&org.gjt.mm.mysql.Driver&).newInstance();
    connection = DriverManager.getConnection(
    &jdbc:mysql://localhost/hostus_forum?user=hostus_hostus&password=&PASSWORD HERE&&);


    Has anyone else had this same problem, and if yes, what was used to workaround it.

    Thanks in advance.
     
  2. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    Nothing's wrong. The user's been created. All these lines are just telling you how to use the db for the newly created user in perl, php and java.
     
Loading...

Share This Page