MySQL 重置 root 密碼 - 忘記密碼

在配置文件/etc/my.cnf添加配置,重啓mysqlmysql ##無密碼登陸 skip-grant-tables 客戶端鏈接mysql選擇mysql庫web mysql -uroot -p use mysql; 修改root密碼5.7版本,5.7版本以後已經沒有了password字段,而是用authentication_string加密字段代替sql update mysql.user se
相關文章
相關標籤/搜索