Closed Thread
Results 1 to 7 of 7

Thread: Mysql help

  1. #1
    Join Date
    Apr 2011
    Posts
    10

    Mysql help

    Sorry for this silly question but How to know which mysql server from the cpanel
    define('DB_HOST', 'localhost')?

    ---------- Post added at 10:39 PM ---------- Previous post was at 10:22 PM ----------

    Please help me,
    HTML Code:
    This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.


    ---------- Post added at 11:27 PM ---------- Previous post was at 10:39 PM ----------

    still got no reply on my ticket that i posted a few hour back

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Mysql help

    Are you using CpanelUserName_MySQLUserName for the user and CpanelUserName_MySQLDatabaseName for the database?

    In example, if my CPanel name was gr and I named my user wordpress, the user name is actually gr_wordpress.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    Join Date
    Apr 2011
    Posts
    10

    Re: Mysql help

    Last edited by mohamed.salem.el.idrissi.msi14; 04-04-2011 at 07:06 PM.

  4. #4
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Mysql help

    The host is indeed localhost.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  5. #5
    Join Date
    Apr 2011
    Posts
    10

    Re: Mysql help

    It dose notwork


  6. #6
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Mysql help

    are you sure you've got the right username and password? You created the user using Cpanel's MySQL Databases tool?
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  7. #7
    MaestroFX1's Avatar
    MaestroFX1 is offline Community Advocate MaestroFX1 has a spectacular aura about
    Join Date
    Feb 2008
    Location
    Area 51
    Posts
    1,577

    Re: Mysql help

    Hey!

    Database Name : cpanelusrname_databasename
    User Name : cpanelusrname_databaseusrname
    Password : for cpanelusrname_databaseusrname; not for cpanelusrname
    Database Host : localhost
    Table Prefix : usually wp_ (if you haven't changed it)

    Grant the required privilege(s) for the database and the associated databaseusr
    by linking them.

    It should be under cpanel >> MySQL Databases >> MySQL Account Maintenance >> Manage User Privileges.

    A word of caution for wordpress users, it has issues causing high resource usage thereby resulting in suspension.

    Read More
    http://x10hosting.com/wiki/High_Resource_Usage

Closed Thread

Similar Threads

  1. Replies: 3
    Last Post: 02-02-2011, 02:09 AM
  2. Replies: 1
    Last Post: 10-15-2010, 01:46 PM
  3. Replies: 2
    Last Post: 10-14-2010, 10:49 AM
  4. Replies: 2
    Last Post: 12-17-2007, 03:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers