时间:2021-07-01 10:21:17 帮助过:11人阅读
[root@VM_39_157_centos bin]# yum -y install mariadb-server
[root@VM_39_157_centos bin]# systemctl start mariadb.service
[root@VM_39_157_centos bin]# systemctl enable mariadb.service
[root@VM_39_157_centos bin]# mysqladmin -uroot password ‘123‘
[root@VM_39_157_centos bin]# mysql -uroot -p123
MariaDB [(none)]> \s
[root@VM_39_157_centos bin]# vim /etc/my.cnf
在my.cnf空行处添加:character-set-server=utf8
systemctl restart mariadb.service
到此安装以及简单配置就已经完成了
CentOS7.5下安装、配置mariadb --CentOS
标签:art one systemctl 修改 mysql admin character 更改 相关