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)

  

相关文章:

  • 2021-09-12
  • 2021-06-15
  • 2021-08-01
  • 2021-10-17
猜你喜欢
  • 2021-08-16
  • 2021-09-26
  • 2022-12-23
  • 2021-07-12
  • 2022-02-19
相关资源
相似解决方案