国产99久久精品_欧美日本韩国一区二区_激情小说综合网_欧美一级二级视频_午夜av电影_日本久久精品视频

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當前位置: 首頁 - 科技 - 知識百科 - 正文

mysqlAccessdeniedforuser‘root’@’localhost’(usingpassword:YES)解決方法

來源:懂視網 責編:小采 時間:2020-11-09 20:57:20
文檔

mysqlAccessdeniedforuser‘root’@’localhost’(usingpassword:YES)解決方法

mysqlAccessdeniedforuserroot@localhost(usingpassword:YES)解決方法:今天在啟動mysql時出現以下問題: [root@www ~]# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 網上的答案是各種各樣的,最終解決問題的
推薦度:
導讀mysqlAccessdeniedforuserroot@localhost(usingpassword:YES)解決方法:今天在啟動mysql時出現以下問題: [root@www ~]# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 網上的答案是各種各樣的,最終解決問題的

今天在啟動mysql時出現以下問題:

[root@www ~]# mysql -u root -p
Enter password: 
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

網上的答案是各種各樣的,最終解決問題的方法總結為以下,好多都是沒有設置初始密碼造成此問題的。

解決方法如下:

[root@www ~]# service mysqld stop #先關閉mysql服務
Stopping mysqld: [ OK ]
[root@www ~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@www ~]# mysql -u root -p #關閉服務后又出現如下問題
Enter password: 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@www ~]# mysql -u root mysql #鍵入此命令進入mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> update user set password=password('123') where user='root' and host='localhost'; ---->修改root的密碼
Query OK, 1 row affected (0.04 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> flush priviledge;
ERROR 10 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'priviledge' at line 1
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> \q
Bye
[root@www ~]# mysql -u root -p ------>重新進入
Enter password: 
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> \q
Bye

到此就完了!!

您可能感興趣的文章:

  • MYSQL ERROR 1045 (28000): Access denied for user (using password: YES)問題的解決
  • mysql ERROR 1044 (42000): Access denied for user ''''@''localhost'' to database
  • linux mysql忘記密碼的多種解決或Access denied for user ''root''@''localhost''
  • 解決mysql創建數據庫后出現:Access denied for user ''root''@''%'' to database ''xxx''的問題
  • 解決ubuntu 16.04安裝mysql5.7.17后,登錄時出現ERROR 1045 (28000): Access denied for user ''root''@''localhost''問題
  • MySQL ERROR 1045 (28000): Access denied for user ''root''@''localhost'' (using password: NO) 的原因分解決辦法
  • ubuntu系統中Mysql ERROR 1045 (28000): Access denied for user root@ localhost問題的解決方法
  • 新裝MySql后登錄出現root帳號提示mysql ERROR 1045 (28000): Access denied for use的解決辦法
  • Linux連接mysql報錯:Access denied for user ‘root’@‘localhost’(using password: YES)的解決方法
  • 聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

    文檔

    mysqlAccessdeniedforuser‘root’@’localhost’(usingpassword:YES)解決方法

    mysqlAccessdeniedforuserroot@localhost(usingpassword:YES)解決方法:今天在啟動mysql時出現以下問題: [root@www ~]# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 網上的答案是各種各樣的,最終解決問題的
    推薦度:
    • 熱門焦點

    最新推薦

    猜你喜歡

    熱門推薦

    專題
    Top 主站蜘蛛池模板: 亚洲国产精品一区二区久 | 国产欧美一区二区三区视频 | 亚洲视频入口 | 国产丝袜一区二区三区在线观看 | 在线国产一区 | 日本不卡视频一区二区三区 | 日韩欧美视频一区二区 | 91麻豆精品国产91久久久 | 国产精品不卡在线 | 亚洲欧洲日韩 | 99精品欧美一区二区三区综合在线 | 美日韩中文字幕 | 欧美亚洲国产精品 | 精品国产毛片 | 99精品在免费线视频 | 欧美激情在线精品一区二区 | 国产视频一区二区三区四区 | 国产成人精品一区二三区 | 欧美日韩中文字幕在线 | 欧美精品一区二区三区久久 | 国产又黄又爽的视频 | 欧美日韩福利 | 日韩午夜免费电影 | 国产精品三级在线观看 | 999久久久免费精品国产牛牛 | 亚洲国产日韩在线精品频道 | 99精品视频在线观看免费播放 | 日韩精品在线观看免费 | 免费一区二区 | 91麻豆国产精品91久久久 | 在线免费国产 | 日韩高清专区 | 一区二区三区高清 | 欧美日韩国产亚洲一区二区三区 | 另类在线 | 精品一区二区三区视频日产 | 中文字幕久久久久一区 | 日本成人一级 | 国产v片在线观看 | 精品123区 | 久久精品国产999久久久 |