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 > Move DB from one server to another with the same encrypted passwords

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-10-07, 04:08
oliflorence oliflorence is offline
Registered User
 
Join Date: Aug 2004
Posts: 96
Move DB from one server to another with the same encrypted passwords

Hello,
I am moving a site from one host to another. I have a list of members in a table which have an encrypted password (using the PASSWORD() encryption method).
Could any one tell me how to transfer the settings form one DB to another in order to keep the passwords the same?
I will be using the export functionality from PhpMyAdmin to transfer the tables and content across.

Many thanks
Olivier
Reply With Quote
  #2 (permalink)  
Old 01-10-07, 09:06
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
If you are running the same version, you shouldn't have to do anything, they should be the same.

More importantly you should NOT be using PASSWORD() to encrypt user passwords. The algorithm changes from mysql version to version. MySQL specifies in the manual it should not be used for the purposes you are using it, but only creating user privileges to mysql itself.

Also note it is not as strong encryption as SHA1 which is most likely the algorithm you should be using to hash your passwords.
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