码迷,mamicode.com
首页 > 数据库 > 详细

mariadb mysql 报'Access denied for user 'root'@'localhost' (using password: NO)'错误的解决

时间:2017-06-12 11:46:41      阅读:231      评论:0      收藏:0      [点我收藏+]

标签:server   org   2.4   oca   ted   roo   rpo   pass   current   

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 -p
Enter password: **********
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 14
Server version: 10.2.4-MariaDB mariadb.org binary distribution

Copyright (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)'错误的解决

标签:server   org   2.4   oca   ted   roo   rpo   pass   current   

原文地址:http://www.cnblogs.com/xchit/p/6991932.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!