How to find your database host name in cPanel

Discussion in 'Free Hosting' started by iwantdatech61, Jun 17, 2010.

Thread Status:
Not open for further replies.
  1. iwantdatech61

    iwantdatech61 New Member

    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    How do you find your database host name in cPanel
     
    Last edited: Jun 17, 2010
  2. Derek

    Derek Community Support Force Community Support

    Messages:
    12,883
    Likes Received:
    186
    Trophy Points:
    63
    To use MySQL in your website you will first need to create a MySQL database and a MySQL User. You can do this from cPanel. (Don't forget to link the User to your Database).
    Then you need to configure your script to connect to MySQL, the following settings should be used:
    • Host/Server Name = 'localhost'
    • Port = '3306'
    • Username = [Your*cPanel username followed by an underscore and the MySQL username you configured in cPanel]
    • Password = [The password that you used when creating the MySQL user]
    • Database = [ Your cPanel username followed by an underscore and the name of the database that you created in cPanel]
    Free hosting accounts do not have remote MySQL access.
     
    Last edited: Jun 17, 2010
Thread Status:
Not open for further replies.

Share This Page