MySQL 8.0 修改root密碼

step1:在my.ini配置文件中加入選項,以跳過密碼驗證:mysql skip-grant-tablessql shared-memory:ide step2:重啓mysqld服務,以使新增配置項生效命令行 step3:在命令行中使用mysql無密碼方式登入:ip > mysql -u root # 直接回車便可,若是跟了-p,出現輸入密碼時直接回車便可跳過string step4:將root
相關文章
相關標籤/搜索