# ./safe_mysqld --skip-grant-tables & [1] 12084 # Starting mysqld daemon with databases from /usr/local/mysql/data #
# ./mysql -u root mysql Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 1 to server version: 3.22.24 Type 'help' for help. mysql>
mysqld_safe ɾ mysql Ų.
update root н
mysql> update user set password=password('123') where user = 'root'; Query OK, 3 rows affected (0.00 sec) Rows matched: 3 Changed: 3 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.01 sec) mysql> q Bye