Forum Moderators: phranque
Is this a safe way to make the change.
Mack.
It is not safe however to transfer those in plain text over HTTP - I'd use something more secure, even if its just SSL (password protected).
You may need to specify a root username/password along with the mysql command for the mysql to work ok.
I've never tried this with the mysql databse where the usernames/passwords etc are kept though.
Course, you may well already know this. Any help?
Yes it will preserve the usernames but the passwords may be another issue depending on how the passwords (or any other encrypted values for that matter) were created. Was MySQL used for encryption via the PASSWORD() function or did you let the OS handle the encryption in any of your table columns via ENCRYPT() [dev.mysql.com] or other application-based encryption functions?
Also, a note of caution:
The password hashing mechanism was updated in MySQL 4.1 [dev.mysql.com] so be ready if you are porting to this version.