Note: Obviously mysql connections will be interrupted during this processes as we will be restarting the service and not listening on the network for a bit.
- /etc/init.d/mysqld stop
- mysqld_safe --skip-networking --skip-grant-tables
- mysql -u root
- mysql> use mysql;
- mysql> update user set Password=PASSWORD('testpassword') where User='root';
- mysql> quit
- /etc/init.d/mysqld restart
No comments:
Post a Comment