mariadb mysql 报'Access denied for user 'root'@'localhost' (using password: NO)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 -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)的主要内容,如果未能解决你的问题,请参考以下文章
mariadb报:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/my
ArchLinux 修改 MariaDB 数据库路径后启动报错 Can't create test file /xxxxx/xxxxx-test
启动mysql报错mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log'