centos 7.6 install MariaDB

yum install mariadb-server

systemctl start mariadb

systemctl enable mariadb

mysql_secure_installation

Here is a set of database root password, and the root system is independent.

Began to default root password is blank, just press Enter, and then set the root password

mysql -u root -p
use mysql;
select host, user from user;
update user set host = '%' where host = 'command above you see the hostname';
flush privileges; 

modify the color scheme vim

cd ~
vim .vimrc

colorscheme desert

Modify the server character set

vim /etc/my.cnf

In the mysqld section

character-set-server=utf8mb4

show variables like "%character%";show variables like "%collation%";

 

Guess you like

Origin www.cnblogs.com/alantop/p/12237864.html