+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Connecting To the database

  1. #1
    raven_cloudwind18 is offline x10Hosting Member raven_cloudwind18 is an unknown quantity at this point
    Join Date
    Dec 2010
    Location
    Philippines
    Posts
    5

    Exclamation Connecting To the database

    geez how do i connect to the data base?
    what is the
    hosting name
    the database name and
    my user name

    where do i get these information i need to connect to my database thanks

  2. #2
    Gouri's Avatar
    Gouri is offline Community Paragon Gouri has a brilliant futureGouri has a brilliant futureGouri has a brilliant future
    Join Date
    Oct 2007
    Location
    India
    Posts
    4,502

    Re: Connecting To the database

    Quote Originally Posted by raven_cloudwind18 View Post
    geez how do i connect to the data base?
    what is the
    hosting name
    the database name and
    my user name

    where do i get these information i need to connect to my database thanks
    Read How to create MySQL Database and User
    Last edited by Gouri; 09-05-2011 at 04:05 AM.
    If you feel my post is useful then click to give Reputation (bottom left corner of this post)

    X10 Hosting | News and Announcements | Premium Hosting | VPS Hosting | Prime Membership

    Tech Community | Gouri

  3. #3
    Dead-i's Avatar
    Dead-i is offline Community Advocate Dead-i has a spectacular aura about
    Join Date
    Aug 2011
    Location
    United Kingdom
    Posts
    1,448

    Re: Connecting To the database

    The host name is 'localhost', and the database name and database username is prefixed with your cPanel username and then an underscore. For example, deadi_user. The password is the password you set when you created your MySQL user.

  4. #4
    raven_cloudwind18 is offline x10Hosting Member raven_cloudwind18 is an unknown quantity at this point
    Join Date
    Dec 2010
    Location
    Philippines
    Posts
    5

    Re: Connecting To the database

    well thank you guys, and oh i have those but how about the database user? you know if it was in your own server it would be root.. what should i put in there?

  5. #5
    Dead-i's Avatar
    Dead-i is offline Community Advocate Dead-i has a spectacular aura about
    Join Date
    Aug 2011
    Location
    United Kingdom
    Posts
    1,448

    Re: Connecting To the database

    In the MySQL Database Wizard, on Step 2, it asks you to provide a MySQL Username and Password. Your username would be your cPanel name, underscore, and then your MySQL username (not 'root'). Your password would be the password you entered in Step 2.

    Here is an example username, where my cPanel username is 'Deadi' and my MySQL username is 'user':
    deadi_user

  6. #6
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Connecting To the database

    While not recommended for security reasons, if you know what you are doing you can use your cPanel username and password. You do not have to create a new user.
    Nothing is always absolutely so.

  7. #7
    comunidaduser31's Avatar
    comunidaduser31 is offline x10Hosting Member comunidaduser31 is an unknown quantity at this point
    Join Date
    Sep 2011
    Location
    Spain
    Posts
    88

    Re: Connecting To the database

    database name- you create it in cpanel
    database user - you crate it in cpanel
    database password - you create it and always can change it at c panel
    database localhost - at x10HOSTING? THE FREE ACCOUNT the database is localhost

    Very simple

  8. #8
    raven_cloudwind18 is offline x10Hosting Member raven_cloudwind18 is an unknown quantity at this point
    Join Date
    Dec 2010
    Location
    Philippines
    Posts
    5

    Re: Connecting To the database

    Yeah i got it thank you guys

  9. #9
    Dead-i's Avatar
    Dead-i is offline Community Advocate Dead-i has a spectacular aura about
    Join Date
    Aug 2011
    Location
    United Kingdom
    Posts
    1,448

    Re: Connecting To the database

    Your welcome

  10. #10
    patomoreno64 is offline x10Hosting Member patomoreno64 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    1

    Re: Connecting To the database

    i need to know more aout that please. Thanks..

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Connecting database
    By zestpanlo92 in forum Programming Help
    Replies: 22
    Last Post: 04-07-2011, 12:01 PM
  2. Connecting to database
    By graphico in forum Programming Help
    Replies: 2
    Last Post: 09-21-2010, 12:31 PM
  3. Connecting to the database
    By rubencit in forum Ayuda Web
    Replies: 2
    Last Post: 05-30-2010, 02:09 PM
  4. Connecting to a database...
    By sathanna in forum Programming Help
    Replies: 4
    Last Post: 03-01-2010, 03:40 AM
  5. connecting to database
    By Daiphron in forum Free Hosting
    Replies: 2
    Last Post: 01-15-2008, 11:41 PM

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