解决安装编译工具gcc后无法连接mysql
在安装编译工具gcc后:
yum -y install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel
mysql断开了连接.
查看mysqld.log 日志:
mysql日志 171210 19:38:22 [Note] Plugin 'FEDERATED' is disabled. 171210 19:38:22 InnoDB: The InnoDB memory heap is disabled 171210 19:38:22 InnoDB: Mutexes and rw_locks use GCC atomic builtins 171210 19:38:22 InnoDB: Compressed tables use zlib 1.2.3 171210 19:38:22 InnoDB: Using Linux native AIO 171210 19:38:22 InnoDB: Initializing buffer pool, size = 128.0M 171210 19:38:22 InnoDB: Completed initialization of buffer pool 171210 19:38:22 InnoDB: highest supported file format is Barracuda. 171210 19:38:22 InnoDB: Waiting for the background threads to start 171210 19:38:23 InnoDB: 5.5.55 started; log sequence number 1589339 171210 19:38:23 [ERROR] /usr/libexec/mysqld: unknown variable 'default-character-set=utf8' 171210 19:38:23 [ERROR] Aborting 171210 19:38:23 InnoDB: Starting shutdown... 171210 19:38:24 InnoDB: Shutdown completed; log sequence number 1589339 171210 19:38:24 [Note] /usr/libexec/mysqld: Shutdown complete
发现是编码问题:
修改该文件: