I mistakenly keyed in
<delete from mysql.user where password =''>
Unfortunately the password for user is ''.
When I try to use mysqladmin i am getting message that I cannot set password for
<root @ localhost>
Any ideas???
Many thanks
If you are using a Unix-like OS:
- You have to kill the mysql daemon.
- Create a text file and write:
UPDATE mysql.user SET Password=PASSWORD('YOUR_PASSWORD') WHERE User='root';
FLUSH PRIVILEGES;
- Open a console and type "mysqld_safe --init-file=YOUR_FILE &"
- Restart the server
- Now you should be able to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With