隨筆-204  評(píng)論-90  文章-8  trackbacks-0
          1、打開my.cnf 加入 skip-grant-tables
          2、mysql.service stop && mysql.service start
          3、清空root密碼 并 退出
              update mysql.user set authentication_string='' where user='root';  
          4、mysql.service stop && mysql.service start
          5、mysql -root   免密登錄并修改root密碼
              alter user 'root'@'%' identified by 'pass$123';
              alter user 'root'@'localhost' identified by 'pass$123';

          確定是否支持遠(yuǎn)程登錄,host中有%的記錄即支持
          select host, user, authentication_string, plugin from user;
          posted on 2021-08-05 18:06 一凡 閱讀(218) 評(píng)論(0)  編輯  收藏 所屬分類: DATABASE
          主站蜘蛛池模板: 峨边| 福州市| 凌海市| 鱼台县| 洛南县| 四川省| 铁岭县| 南川市| 韩城市| 博客| 巨野县| 余庆县| 宁强县| 商都县| 抚州市| 新蔡县| 临夏县| 乐业县| 崇文区| 乌鲁木齐县| 沙河市| 邢台市| 山东| 兰西县| 额济纳旗| 和静县| 巴彦淖尔市| 徐闻县| 通化市| 浑源县| 龙口市| 肃北| 红安县| 宁津县| 错那县| 淮安市| 绩溪县| 西平县| 当雄县| 刚察县| 黑河市|