mysql 安装与配置

Posted 小学生^.^

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 安装与配置相关的知识,希望对你有一定的参考价值。

查资料发现是CentOS 7 版本将mysql数据库软件从默认的程序列表中移除,用mariadb代替了。

有两种解决办法:

安装mariadb

[[email protected] ~]#  yum install mariadb-server mariadb
 

启动mariadb

[[email protected] ~]# systemctl start mariadb

 

 

mysql配置文件为/etc/my.cnf

最后加上编码配置

[mysql]
default-character-set =utf8



以上是关于mysql 安装与配置的主要内容,如果未能解决你的问题,请参考以下文章