ubuntu上重置MySQL數據庫root用戶密碼

ubuntu上重置MySQL數據庫root用戶密碼 首先我們運行vim /etc/mysql/mysql.conf.d/mysqld.cnf; 找到如下圖所示的字段 **[mysqld]**加上skip-grant-tables 然後保存退出 然後重啓 MySQL Server: /etc/init.d/mysql restart 輸入mysql -u root -p,進入mysql命令行界面,密
相關文章
相關標籤/搜索