Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Sep 2009
    Posts
    9

    Default How to access database?

    hi all,

    i've tried to access my database that i've already created but it come with this
    error message

    could connect to the specified instance 2003


    Server Host: 'www.example.com'
    username: 'username'
    password: 'password'
    database: 'dbname'

    Please help!

  2. #2
    Member
    Join Date
    Aug 2009
    Location
    Houston, Tx
    Posts
    275

    Default Database Access

    Kbun,

    I am sorry to hear that, well I would need a little bit of information before we could proceed. First, is this you trying to connect locally or remotely? If you are having issues with it remotely here is a link,http://forums.cpanel.net/f4/how-enab...html#post97521.

    However, if it is local that can be a different story. You would need to make sure that you have added that user to your database via the cPanel interface.

    This can be achieved as the user via : cPanel -> Databases -> MySQL Database


    I hope this is the information you need.

    Thank you,
    Matthew Curry

  3. #3
    Member
    Join Date
    Sep 2009
    Posts
    9

    Default How to access database

    I'm trying to remote access the database using MySQL Query Tool or using php code to access it.
    In my control panel i created database name 'testdb' and a user name 'testuser'
    i assigned full access control to this user.

    But, everytime i try to connect to the database server it's always failed.

    is it correct that i used www.mysite.com.au as server host?

    Please help.
    Jim

  4. #4
    Member
    Join Date
    Sep 2009
    Posts
    9

    Default How to access database?

    This the error message when i try to connect to the database ..

    Warning: mysqli::mysqli() [mysqli.mysqli]: (00000/1130): Host 'ares.instanthosting.com.au' is not allowed to connect to this MySQL server in /home/fre47098/public_html/index.php on line 2
    Connect failed: Host 'ares.instanthosting.com.au' is not allowed to connect to this MySQL server

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by kbun View Post
    This the error message when i try to connect to the database ..

    Warning: mysqli::mysqli() [mysqli.mysqli]: (00000/1130): Host 'ares.instanthosting.com.au' is not allowed to connect to this MySQL server in /home/fre47098/public_html/index.php on line 2
    Connect failed: Host 'ares.instanthosting.com.au' is not allowed to connect to this MySQL server
    Is this script that is giving this error on the same server as cPanel/WHM?

  6. #6
    Member
    Join Date
    Sep 2009
    Posts
    9

    Default How to access database?

    Hi,
    problem solved, i can connect my database now...

    THANKS A BUNCH....

    Jim

  7. #7
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Lightbulb

    Quote Originally Posted by kbun View Post
    Server Host: 'www.example.com'
    username: 'username'
    password: 'password'
    database: 'dbname'

    Please help!
    Some beginner configure tips for Cpanel based servers running MySQL:

    Except in more rare cases where the database might be a remote server,
    the server hostname to use in your scripts is almost always going to be
    named "localhost" so use that instead of "www.example.com" above.

    On cpanel systems, your database name and database username are both
    prefixed with your main Cpanel account login so if your login name to
    your cpanel account were "james" then the above example you wrote
    would look like the following in your script settings:

    Code:
    Server Host: 'localhost'
    username: 'james_username'
    password: 'password'
    database: 'james_dbname'
    Hope that helps!

    PS: Aside from the place in your control panel to setup MySQL databases,
    there is also an interface called 'phpMyAdmin' that you can use to directly
    access and work on the contents of your databases.

  8. #8
    Member
    Join Date
    Sep 2009
    Posts
    9

    Default

    Hi spiral,

    You are right everything work fine after i replace the Example Web Page with local host ...

    Thank you very much for your advice.

    Jim

Similar Threads & Tags
Similar threads

  1. MS Access database hosting?
    By SoftDux in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-30-2009, 04:03 PM
  2. Allow access to IP list from database?
    By ne0shell in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-05-2009, 11:12 AM
  3. DSN Access database help!
    By odiego in forum Database Discussions
    Replies: 2
    Last Post: 10-04-2007, 06:21 PM
  4. MySQL database remote access (Access Host)
    By akot2 in forum Database Discussions
    Replies: 4
    Last Post: 12-21-2006, 09:45 AM
  5. Remote Database Access
    By voxtreme-fred in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-19-2002, 11:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube