Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Mysql Hostname?


4 replies to this topic

#1 Vacant

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 117 posts
  • Location:England, UK

Posted 02 January 2005 - 07:19 PM

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 guys

You do great work, keep it up!

#2 cragllo

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 933 posts

Posted 02 January 2005 - 08:25 PM

Hostname is localhost

Have you created the mySQL database? Im not going to tell you how because Im too bust at the moment...

#3 Vacant

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 117 posts
  • Location:England, UK

Posted 02 January 2005 - 10:35 PM

cragllo, on Jan 2 2005, 08:25 PM, said:

Hostname is        localhost

Have you created the mySQL database? Im not going to tell you how because Im too bust at the moment...

<{POST_SNAPBACK}>


I have indeed.

Im just working on the acessing bit :rolleyes:

#4 cse-icons

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 351 posts
  • Location:India

Posted 01 February 2005 - 07:43 AM

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.

#5 detportal

    Member [Level 2]

  • Kontributors
  • PipPipPipPipPip
  • 80 posts

Posted 01 December 2006 - 09:21 AM

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 cPanel
the 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, 01 December 2006 - 09:22 AM.





Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users