ubuntu安装MariaDB

安装MariaDB

$sudo apt-get install mariadb-server

设置root密码

mysqladmin -u root -p password newpassword
$mysql -uroot -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 44
Server version: 10.0.31-MariaDB-0ubuntu0.16.04.2 Ubuntu 16.04

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> 

猜你喜欢

转载自blog.csdn.net/imzhujun/article/details/78262931