错误描述:因为要在云服务器上安装freeswitch,缺少libodbc.so.2共享库,就yum安装了unixODBC,导致MySQL服务关闭,重启的时候报错;
* mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendorpreset: disabled)
Active: deactivating (final-sigterm) (Result: exit-code)
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 5953 ExecStart=/usr/sbin/mysqld --daemonize--pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, sta
Process: 5936 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited,status=0/SUCCESS)
CGroup: /system.slice/mysqld.service
`-5957 /usr/sbin/mysqld --daemonize--pid-file=/var/run/mysqld/mysqld.pid
Jun 22 13:13:03 VM_158_216_centossystemd[1]: mysqld.service holdoff time over, scheduling restart.
Jun 22 13:13:03 VM_158_216_centossystemd[1]: Starting MySQL Server...
Jun 22 13:13:03 VM_158_216_centossystemd[1]: mysqld.service: control process exited, code=exited status=1
一直启动不了MySQL服务;
原因:前一天因为乱码的问题,在my.cnf结尾加了一句话default-character-set=utf8;导致配置文件识别不了,所以启动不了,刚开始还一直以为是odbc惹的祸,希望对于大家有点用,我的MySQL版本是5.7.18