|
|
|
|
![]() ![]() |
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 Thanks very much guys You do great work, keep it up! |
|
|
|
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... |
|
|
|
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 |
|
|
|
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. |
|
|
|
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 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th September 2008 - 05:47 PM |