centos 7.6 安装MariaDB
yum install mariadb-server
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
此处设置的是数据库root密码,和系统root无关。
开始root密码默认为空,直接回车,然后设置root密码
mysql -u root -p
use mysql;
select host, user from user;
update user set host=‘%‘ where host=‘上面命令你自己看到的主机名‘;
flush privileges;修改vim配色方案
cd ~
vim .vimrc
colorscheme desert
修改服务器字符集
vim /etc/my.cnf
在mysqld节下
character-set-server=utf8mb4
show variables like "%character%";show variables like "%collation%";
相关推荐
Lostinthewoods 2020-10-29
Gexrior 2020-10-22
txt 2020-06-14
azhou 2020-06-12
hungzz 2020-06-11
CharlesYooSky 2020-06-05
aliuge 2020-06-03
URML 2020-05-30
lwwishes 2020-05-29
83173052 2020-05-29
tanyhuan 2020-05-28
muzirigel 2020-05-26
饮马天涯 2020-05-20
aliuge 2020-05-12
83173052 2020-05-10
Mrbianxin 2020-05-07
InJavaWeTrust 2020-05-04