<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答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’(usingpassw_MySQL

        來源:懂視網 責編:小采 時間:2020-11-09 19:54:07
        文檔

        mysqlAccessdeniedforuser‘root’@’localhost’(usingpassw_MySQL

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

        到此就完了!!

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        mysqlAccessdeniedforuser‘root’@’localhost’(usingpassw_MySQL

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

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 4hu四虎最新免费地址| 18禁美女黄网站色大片免费观看| 亚洲成AV人片高潮喷水| 午夜亚洲国产精品福利| 国产成人高清精品免费观看| 日韩在线不卡免费视频一区| 午夜寂寞在线一级观看免费| 国产精品亚洲玖玖玖在线观看| 黄网址在线永久免费观看 | 久久免费福利视频| 黄瓜视频影院在线观看免费| 亚洲精品综合久久| 亚洲国产中文在线视频| xxxxx做受大片在线观看免费| 777爽死你无码免费看一二区| 亚洲毛片网址在线观看中文字幕| 理论片在线观看免费| 毛片免费观看的视频在线| 亚洲国产一成人久久精品| 亚洲日本久久久午夜精品| 中文字幕免费在线看| 日本高清免费aaaaa大片视频| 久久亚洲春色中文字幕久久久| 成a人片亚洲日本久久| 亚洲视频免费一区| 亚洲日韩国产欧美一区二区三区 | 成人免费福利电影| 特级毛片aaaa级毛片免费| 亚洲精品午夜无码专区| 黄网站色在线视频免费观看| 亚洲大码熟女在线观看| 亚洲日韩精品一区二区三区| 黄色a级片免费看| 国产亚洲精品一品区99热| 色妞WWW精品免费视频| 亚洲一区二区三区四区视频 | 亚洲av无码av制服另类专区| 国产va免费观看| 亚洲国产综合第一精品小说| 91av视频免费在线观看| 精品久久久久久亚洲中文字幕|