Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Change MySQl Password Using .bat
02-26-2009, 11:55 AM #1
- Join Date
- Jun 2006
- Thanked 3 Times in 3 Posts
Change MySQl Password Using .bat
First of all I am sorry if I am posting in a wrong section.
Following are the steps to change MySQL root password using command prompt
1) cd C:\mysql\bin\ 2) mysql -u root -p mysql -h 127.0.0.1 3) (when prompting for password) we enter password 4) set password = password('new password')
If yes how?
I have tried creating a .bat file with the above steps but it stucks at line when it prompts for the password. can I automate it as well?
Thanx for your help