最近在安装openstack,在启动mariadb的时候出现了问题,一直无法启动

看了一个博客说各种原因,尝试了也没有用

看来只有重新安装了,

原来的都删除了,把my.cnf 删除了

后来重新安装的话,执行:

yum install mariadb mariadb-server python2-PyMySQL -y

发现有些包已经安装了,就不在安装了,但是原来的/etc/my.cnf文件也没有了,那么刚刚安装的my.cnf 是什么内容呢:

#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

#
# This group is read by the server
#
[mysqld]
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.

上面的就是my.cnf的刚开始初始化的文件

希望对你有所帮助