Jump to content
xisto Community
Sign in to follow this  
Vacant

Mysql Hostname? where can i get it

Recommended Posts

Hey, im looking at a php script to connect to mySQL - it requires the password, username and hostname to connect to the database.Im now looking at it in a very perplexed way.Ive looked on cpanel but I can't see anything like this anywhere.Where can I find this information?If this is nothing to do with you at all I'm very sorry for wasting your time....Please be gentle, im only a n00b :rolleyes: Thanks very much guysYou do great work, keep it up!

Share this post


Link to post
Share on other sites

hi,when u create a mysql database, u get 3 connection strings for php, perl and jdbc. use them.I suppose the hostname is localhost.else, install a cms/forum on ur account and go their particular files to find how the connection are made there.use similar method in ur case then..... hope this helped.Cheers.

Share this post


Link to post
Share on other sites

on the cpanel, go to "MySQL databases".There, you will find the names of the databases and the users.They will look something like this:[username]_[database name] Delete Check Repair Users in [database name] [username]_[database name] (Privileges: ALL PRIVILEGES) Connection Strings [info here]your password is your hosting password - the one you use to login to cPanelthe database location is "localhost"cheers and gl!edit: i just realised this thread is more than a year old! ah well, MEH!

Edited by detportal (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.