pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <small id='3KltI'></small><noframes id='3KltI'>

      <tfoot id='3KltI'></tfoot>
      • <bdo id='3KltI'></bdo><ul id='3KltI'></ul>

      <legend id='3KltI'><style id='3KltI'><dir id='3KltI'><q id='3KltI'></q></dir></style></legend>
      <i id='3KltI'><tr id='3KltI'><dt id='3KltI'><q id='3KltI'><span id='3KltI'><b id='3KltI'><form id='3KltI'><ins id='3KltI'></ins><ul id='3KltI'></ul><sub id='3KltI'></sub></form><legend id='3KltI'></legend><bdo id='3KltI'><pre id='3KltI'><center id='3KltI'></center></pre></bdo></b><th id='3KltI'></th></span></q></dt></tr></i><div class="vvv9bjb" id='3KltI'><tfoot id='3KltI'></tfoot><dl id='3KltI'><fieldset id='3KltI'></fieldset></dl></div>
    1. 錯誤 1698 (28000):拒絕用戶“root"@“localhost&qu

      ERROR 1698 (28000): Access denied for user #39;root#39;@#39;localhost#39;(錯誤 1698 (28000):拒絕用戶“root@“localhost的訪問)

        <small id='1v9eY'></small><noframes id='1v9eY'>

              <i id='1v9eY'><tr id='1v9eY'><dt id='1v9eY'><q id='1v9eY'><span id='1v9eY'><b id='1v9eY'><form id='1v9eY'><ins id='1v9eY'></ins><ul id='1v9eY'></ul><sub id='1v9eY'></sub></form><legend id='1v9eY'></legend><bdo id='1v9eY'><pre id='1v9eY'><center id='1v9eY'></center></pre></bdo></b><th id='1v9eY'></th></span></q></dt></tr></i><div class="pv7nxbr" id='1v9eY'><tfoot id='1v9eY'></tfoot><dl id='1v9eY'><fieldset id='1v9eY'></fieldset></dl></div>
              <tfoot id='1v9eY'></tfoot>

                <tbody id='1v9eY'></tbody>
                <bdo id='1v9eY'></bdo><ul id='1v9eY'></ul>

                <legend id='1v9eY'><style id='1v9eY'><dir id='1v9eY'><q id='1v9eY'></q></dir></style></legend>
              • 本文介紹了錯誤 1698 (28000):拒絕用戶“root"@“localhost"的訪問的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在設置一個新服務器,但一直遇到這個問題.

                I'm setting up a new server and keep running into this problem.

                當我嘗試以 root 用戶登錄 MySQL 數據庫時,出現錯誤:

                When I try to log into the MySQL database with the root user, I get the error:

                ERROR 1698 (28000): 用戶 'root'@'localhost' 的訪問被拒絕

                ERROR 1698 (28000): Access denied for user 'root'@'localhost'

                我是否通過終端 (SSH)、phpMyAdmin 或MySQL 客戶端,例如 Navicat.他們都失敗了.

                It doesn't matter if I connect through the terminal (SSH), through phpMyAdmin or a MySQL client, e.g., Navicat. They all fail.

                我查看了 mysql.user 表并得到以下信息:

                I looked in the mysql.user table and get the following:

                +------------------+-------------------+
                | user             | host              |
                +------------------+-------------------+
                | root             | %                 |
                | root             | 127.0.0.1         |
                | amavisd          | localhost         |
                | debian-sys-maint | localhost         |
                | iredadmin        | localhost         |
                | iredapd          | localhost         |
                | mysql.sys        | localhost         |
                | phpmyadmin       | localhost         |
                | root             | localhost         |
                | roundcube        | localhost         |
                | vmail            | localhost         |
                | vmailadmin       | localhost         |
                | amavisd          | test4.folkmann.it |
                | iredadmin        | test4.folkmann.it |
                | iredapd          | test4.folkmann.it |
                | roundcube        | test4.folkmann.it |
                | vmail            | test4.folkmann.it |
                | vmailadmin       | test4.folkmann.it |
                +------------------+-------------------+
                

                如您所見,用戶 root 應該具有訪問權限.

                As you can see, user root should have access.

                服務器非常簡單,因為我已經嘗試解決這個問題有一段時間了.

                The Server is quite simple, as I have tried to troubleshoot this for a while now.

                它正在運行 Ubuntu 16.04.1 LTS (Xenial Xerus) 使用 Apache、MySQL 和 PHP,以便它可以托管網站,以及 iRedMail 0.9.5-1,以便它可以托管郵件.

                It's running Ubuntu?16.04.1 LTS (Xenial Xerus) with Apache, MySQL and PHP, so that it can host websites, and iRedMail 0.9.5-1, so that it can host mail.

                在我安裝 iRedMail 之前登錄 MySQL 數據庫工作正常.我也試過只安裝 iRedMail,但是 root 也不起作用.

                Log into the MySQL database works fine before I installed iRedMail. I also tried just installing iRedMail, but then root also doesn't work.

                如何修復我的 MySQL 登錄問題,或者如何通過現有的 MySQL 安裝安裝 iRedMail?是的,我嘗試了安裝技巧,但我不能在配置文件中找到這些變量.

                How can I fix my MySQL login problem or how can I install iRedMail over an existing MySQL install? And yes, I tried the Installation Tips and I can't find those variables in the configuration files.

                推薦答案

                某些系統如 Ubuntu、MySQL 正在使用 UNIX auth_socket 插件 默認.

                Some systems like Ubuntu, MySQL is using the UNIX auth_socket plugin by default.

                基本上這意味著:db_users 使用它,將被驗證";通過系統用戶憑據.您可以通過執行以下操作來查看您的 root 用戶是否是這樣設置的:

                Basically it means that: db_users using it, will be "authenticated" by the system user credentials. You can see if your root user is set up like this by doing the following:

                sudo mysql -u root # I had to use "sudo" since it was a new installation
                
                mysql> USE mysql;
                mysql> SELECT User, Host, plugin FROM mysql.user;
                
                +------------------+-----------------------+
                | User             | plugin                |
                +------------------+-----------------------+
                | root             | auth_socket           |
                | mysql.sys        | mysql_native_password |
                | debian-sys-maint | mysql_native_password |
                +------------------+-----------------------+
                

                正如您在查詢中看到的,root 用戶正在使用 auth_socket 插件.

                As you can see in the query, the root user is using the auth_socket plugin.

                有兩種方法可以解決這個問題:

                There are two ways to solve this:

                1. 您可以設置root用戶使用mysql_native_password插件
                2. 你可以創建一個新的db_usersystem_user(推薦)
                1. You can set the root user to use the mysql_native_password plugin
                2. You can create a new db_user with you system_user (recommended)

                選項 1:

                sudo mysql -u root # I had to use "sudo" since it was new installation
                
                mysql> USE mysql;
                mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
                mysql> FLUSH PRIVILEGES;
                mysql> exit;
                
                sudo service mysql restart
                

                選項 2:(將 YOUR_SYSTEM_USER 替換為您擁有的用戶名)

                Option 2: (replace YOUR_SYSTEM_USER with the username you have)

                sudo mysql -u root # I had to use "sudo" since is new installation
                
                mysql> USE mysql;
                mysql> CREATE USER 'YOUR_SYSTEM_USER'@'localhost' IDENTIFIED BY 'YOUR_PASSWD';
                mysql> GRANT ALL PRIVILEGES ON *.* TO 'YOUR_SYSTEM_USER'@'localhost';
                mysql> UPDATE user SET plugin='auth_socket' WHERE User='YOUR_SYSTEM_USER';
                mysql> FLUSH PRIVILEGES;
                mysql> exit;
                
                sudo service mysql restart
                

                請記住,如果您使用選項 #2,則必須以系統用戶名 (mysql -u YOUR_SYSTEM_USER) 連接到 MySQL.

                Remember that if you use option #2 you'll have to connect to MySQL as your system username (mysql -u YOUR_SYSTEM_USER).

                注意:在某些系統上(例如,Debian 9 (Stretch)) 'auth_socket' 插件被稱為 'unix_socket',所以對應的SQL命令應該是:UPDATE user SET plugin='unix_socket' WHERE User='YOUR_SYSTEM_USER';

                Note: On some systems (e.g., Debian 9 (Stretch)) the 'auth_socket' plugin is called 'unix_socket', so the corresponding SQL command should be: UPDATE user SET plugin='unix_socket' WHERE User='YOUR_SYSTEM_USER';

                從@andy 的評論看來,MySQL 8.x.x 更新/替換了 caching_sha2_passwordauth_socket.我沒有使用 MySQL 8.x.x 的系統設置來測試這個.但是,上述步驟應該可以幫助您理解問題.回復如下:

                From @andy's comment it seems that MySQL 8.x.x updated/replaced the auth_socket for caching_sha2_password. I don't have a system setup with MySQL 8.x.x to test this. However, the steps above should help you to understand the issue. Here's the reply:

                MySQL 8.0.4 的一個變化是新的默認身份驗證插件是caching_sha2_password".新的YOUR_SYSTEM_USER"將擁有此身份驗證插件,您現在可以使用mysql -u YOUR_SYSTEM_USER -p"從 Bash shell 登錄.并在提示中提供該用戶的密碼.不需要UPDATE user SET plugin";步驟.

                對于 8.0.4 默認身份驗證插件更新,請參閱 https://mysqlserverteam.com/mysql-8-0-4-new-default-authentication-plugin-caching_sha2_password/

                這篇關于錯誤 1698 (28000):拒絕用戶“root"@“localhost"的訪問的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數根據 N 個先前值來決定接下來的 N 個行)
                reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達式的結果;條款?)
                Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數的 ignore 選項是忽略整個事務還是只是有問題的行?) - IT屋-程序員軟件開發技
                Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時出錯,使用 for 循環數組)
                pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調用 o23.load 時發生錯誤 沒有合適的驅動程序)
                How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數據庫表作為 Spark 數據幀讀取?)

                      <tfoot id='tLarw'></tfoot>
                    • <i id='tLarw'><tr id='tLarw'><dt id='tLarw'><q id='tLarw'><span id='tLarw'><b id='tLarw'><form id='tLarw'><ins id='tLarw'></ins><ul id='tLarw'></ul><sub id='tLarw'></sub></form><legend id='tLarw'></legend><bdo id='tLarw'><pre id='tLarw'><center id='tLarw'></center></pre></bdo></b><th id='tLarw'></th></span></q></dt></tr></i><div class="dzzrbdj" id='tLarw'><tfoot id='tLarw'></tfoot><dl id='tLarw'><fieldset id='tLarw'></fieldset></dl></div>
                        <bdo id='tLarw'></bdo><ul id='tLarw'></ul>

                        <small id='tLarw'></small><noframes id='tLarw'>

                            <tbody id='tLarw'></tbody>
                          <legend id='tLarw'><style id='tLarw'><dir id='tLarw'><q id='tLarw'></q></dir></style></legend>
                          主站蜘蛛池模板: 专业生产动态配料系统_饲料配料系统_化肥配料系统等配料系统-郑州鑫晟重工机械有限公司 | 找培训机构_找学习课程_励普教育 | 3d可视化建模_三维展示_产品3d互动数字营销_三维动画制作_3D虚拟商城 【商迪3D】三维展示服务商 广东健伦体育发展有限公司-体育工程配套及销售运动器材的体育用品服务商 | 沧州友城管业有限公司-内外涂塑钢管-大口径螺旋钢管-涂塑螺旋管-保温钢管生产厂家 | 环球周刊网| 西安微信朋友圈广告投放_微信朋友圈推广_西安度娘网络科技有限公司 | 讲师宝经纪-专业培训机构师资供应商_培训机构找讲师、培训师、讲师经纪就上讲师宝经纪 | 沟盖板_复合沟盖板厂_电力盖板_树脂雨水篦子-淄博拜斯特 | 钛合金标准件-钛合金螺丝-钛管件-钛合金棒-钛合金板-钛合金锻件-宝鸡远航钛业有限公司 | 广州小程序开发_APP开发公司_分销商城系统定制_小跑科技 | 大型低温冷却液循环泵-低温水槽冷阱「厂家品牌」京华仪器_京华仪器 | 河南卓美创业科技有限公司-河南卓美防雷公司-防雷接地-防雷工程-重庆避雷针-避雷器-防雷检测-避雷带-避雷针-避雷塔、机房防雷、古建筑防雷等-山西防雷公司 | 十二星座查询(性格特点分析、星座运势解读) - 玄米星座网 | 苏州伊诺尔拆除公司_专业酒店厂房拆除_商场学校拆除_办公楼房屋拆除_家工装拆除拆旧 | 常州企业采购平台_常州MRO采购公司_常州米孚机电设备有限公司 | 自清洗过滤器,浅层砂过滤器,叠片过滤器厂家-新乡市宇清净化 | 沈阳缠绕包装机厂家直销-沈阳海鹞托盘缠绕包装机价格 | 农业仪器网 - 中国自动化农业仪器信息交流平台 | 烟台游艇培训,威海游艇培训-烟台市邮轮游艇行业协会 | 船老大板材_浙江船老大全屋定制_船老大官网 | 单螺旋速冻机-双螺旋-流态化-隧道式-食品速冻机厂家-广州冰泉制冷 | 齿轮减速机_齿轮减速电机-VEMT蜗轮蜗杆减速机马达生产厂家瓦玛特传动瑞环机电 | 哈尔滨发电机,黑龙江柴油发电机组-北方星光| 东风体检车厂家_公共卫生体检车_医院体检车_移动体检车-锦沅科贸 | 酒水灌装机-白酒灌装机-酒精果酒酱油醋灌装设备_青州惠联灌装机械 | 培训一点通 - 合肥驾校 - 合肥新亚驾校 - 合肥八一驾校 | PVC地板|PVC塑胶地板|PVC地板厂家|地板胶|防静电地板-无锡腾方装饰材料有限公司-咨询热线:4008-798-128 | 政府园区专业委托招商平台_助力企业选址项目快速落地_东方龙商务集团 | 祝融环境-地源热泵多恒系统高新技术企业,舒适生活环境缔造者! | 河南卓美创业科技有限公司-河南卓美防雷公司-防雷接地-防雷工程-重庆避雷针-避雷器-防雷检测-避雷带-避雷针-避雷塔、机房防雷、古建筑防雷等-山西防雷公司 | 恒温振荡混匀器-微孔板振荡器厂家-多管涡旋混匀器厂家-合肥艾本森(www.17world.net) | 洁净实验室工程-成都手术室净化-无尘车间装修-四川华锐净化公司-洁净室专业厂家 | 光照全温振荡器(智能型)-恒隆仪器| 蓝莓施肥机,智能施肥机,自动施肥机,水肥一体化项目,水肥一体机厂家,小型施肥机,圣大节水,滴灌施工方案,山东圣大节水科技有限公司官网17864474793 | 废气处理_废气处理设备_工业废气处理_江苏龙泰环保设备制造有限公司 | 保温杯,儿童婴童奶瓶,运动水壶「广告礼品杯定制厂家」超朗保温杯壶 | 苏州防水公司_厂房屋面外墙防水_地下室卫生间防水堵漏-苏州伊诺尔防水工程有限公司 | 河南mpp电力管_mpp电力管生产厂家_mpp电力电缆保护管价格 - 河南晨翀实业 | 湖南教师资格网-湖南教师资格证考试网 | 复合土工膜厂家|hdpe防渗土工膜|复合防渗土工布|玻璃纤维|双向塑料土工格栅-安徽路建新材料有限公司 | 成都顶呱呱信息技术有限公司-贷款_个人贷款_银行贷款在线申请 - 成都贷款公司 |