|
You can change the password to access your MySQL database from the localhost (the command prompt on a Servlets.Net machine or from your servlets) by executing the following command from the command prompt:
mysqladmin -p password newpassword
To change your database password for remote access, you will need to install the MySQL clients for Windows. From your Windows-based machine, use this command:
mysqladmin -hwww.yourserver.com -uusername -p password newpassword
Keep these lines as shown, but replace newpassword with what you want your new password to be. Also replace www.yourserver.com with your web address and username with your database username. Do NOT type your current password where the word password is. The command must have the word password in it to indicate that you are changing a password.
When you press enter, you will be asked for your old password. Type it in and press enter. Your password will then be changed.
|