Mariadb/Mysql命令行常用命令
blog.17lai.site # Mariadb/Mysql命令行常用命令 | 夜法之书 作者: 夜法之书 1、登陆数据库方法 sql mysql -u用户名 -p用户密码 2、修改root及用户密码 sql use mysql; update user set password=password('11111111') where user='root' and host='localhost'; flush privileges; sql MariaDB [mysql]> update user set password=password('11111111') where user='root' and host='localhost'; Query OK, 1 row affected (0.01 sec) Rows matched: 1 Changed: 1 Warnings: 0 MariaDB [mysql]> flush privileges; Query OK, 0 rows affected (0.01 sec) MariaDB [mysql]&....