首页 > 代码库 > mariadb mysql 报'Access denied for user 'root'@'localhost' (using password: NO)'错误的解决
mariadb mysql 报'Access denied for user 'root'@'localhost' (using password: NO)'错误的解决
C:\Program Files\MariaDB 10.2\bin>mysql admin -u root password "x123456789"mysql Ver 15.1 Distrib 10.2.4-MariaDB, for Win64 (AMD64)Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.C:\Program Files\MariaDB 10.2\bin>mysql -u root -pEnter password: **********Welcome to the MariaDB monitor. Commands end with ; or \g.Your MariaDB connection id is 14Server version: 10.2.4-MariaDB mariadb.org binary distributionCopyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.MariaDB [(none)]> set password for ‘root‘@‘localhost‘=password(‘x123456789‘);Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> flush privileges;Query OK, 0 rows affected (0.00 sec)
mariadb mysql 报'Access denied for user 'root'@'localhost' (using password: NO)'错误的解决
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。