1. 程式人生 > >設置mysql8.0.12-root的密碼

設置mysql8.0.12-root的密碼

The ide ble then leg string 8.0 設置 密碼

# /etc/init.d/mysqld stop # mysqld_safe --skip-grant-tables & # mysql mysql> update mysql.user set authentication_string=‘‘ where user=‘root‘; mysql> flush privileges; mysql> alter user ‘root‘@‘%‘ identified by ‘123‘; mysql> quit # service mysqld restart # mysql -uroot -p‘123‘ 用新的密碼登陸成功

設置mysql8.0.12-root的密碼