If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL Passwords etc.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-14-04, 11:29
terrym terrym is offline
Registered User
 
Join Date: Aug 2004
Posts: 1
MySQL Passwords etc.

I have been developing a Website using PHP and MySQL. I installed MySQL using all the defaults, and created a Database and some Tables. I am also running IIS. And to make changes to the Database or Tables, I am using SQLyog.
When I create a PHP script to access the Database, I have been using "localhost", "root" and no password. And everything worked fine.
I have recently setup a PHP/MySQL Host and when this was setup, the Username and Password were "abcdef" and "ghijkl1" respectively.
Then in my scripts, I now have two sets of Username/Password, and I just comment out the one I don't need, depending whether I am testing on my PC or on the Web Site. And everything worked fine here as well.
Then, today, I decided to see if I could change my Local Username/Password from "root" etc, to "abcdef" and "ghijkl1" to match the ones on the Web Site, and therefore not have to remember to swap them over in the scripts every time I upload them.
But unfortunately, I have not been able to get this to work. And now I cannot access the Database or Tables with either SQLyog or the scripts.
Does anyone know, in a foolproof step-by-step way, how I can set this up, or even to restore the local Username to "root"?
Any help/advice would be greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 08-15-04, 09:02
jmut jmut is offline
Registered User
 
Join Date: Mar 2004
Location: Bulgaria
Posts: 22
I am not very much into PHP but if I get this right, now you're not able to access the database either. because u donno the root password or becasue you donno how to address the database with particular user?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On