Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Mysql Hostname?, where can i get it
Vacant
post Jan 2 2005, 07:19 PM
Post #1


Advanced Member
*******

Group: Members
Posts: 117
Joined: 4-August 04
From: England, UK
Member No.: 654



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 laugh.gif

Thanks very much guys

You do great work, keep it up!
Go to the top of the page
 
+Quote Post
cragllo
post Jan 2 2005, 08:25 PM
Post #2


Sorry for not being active, Uni :(
*********

Group: Members
Posts: 933
Joined: 24-August 04
From: South Wales, UK
Member No.: 892



Hostname is localhost

Have you created the mySQL database? Im not going to tell you how because Im too bust at the moment...
Go to the top of the page
 
+Quote Post
Vacant
post Jan 2 2005, 10:35 PM
Post #3


Advanced Member
*******

Group: Members
Posts: 117
Joined: 4-August 04
From: England, UK
Member No.: 654



QUOTE(cragllo @ Jan 2 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...
*



I have indeed.

Im just working on the acessing bit biggrin.gif
Go to the top of the page
 
+Quote Post
cse-icons
post Feb 1 2005, 07:43 AM
Post #4


Super Member
*********

Group: Members
Posts: 351
Joined: 19-October 04
From: India
Member No.: 1,824



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.
Go to the top of the page
 
+Quote Post
detportal
post Dec 1 2006, 09:21 AM
Post #5


Member [Level 2]
*****

Group: Members
Posts: 80
Joined: 26-November 06
Member No.: 34,068



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!

This post has been edited by detportal: Dec 1 2006, 09:22 AM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Mysql Server Problem(3)
  2. Help With Php And Mysql Database(2)
  3. Login And Registration Mysql Problems(2)
  4. Mysql Problems....(4)
  5. Lost Connection To Mysql Server During Query(0)
  6. Php & Mysql Help(2)
  7. Mysql Database Size(6)
  8. Free Mysql Hosting(6)
  9. Mysql Help(1)
  10. Problem With Php(8)
  11. Trap17.com Mysql Databases(2)
  12. Looking For Free Hosting With Mysql, Php And More(4)
  13. Mysql And Free Hosting(8)
  14. Mysql Only(2)
  15. Mysql Help Needed(2)
  1. Which Mysql Version Does Trap17 Offer?(4)
  2. Fantastico Difficulties(1)
  3. I Cannot Connect To Mysql(1)
  4. External Access To Mysql Database(0)
  5. Mysql(5)
  6. Mysql Database Space(3)
  7. Please Explain Me Mysql(4)


 



- Lo-Fi Version Time is now: 6th September 2008 - 05:47 PM