解决安装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

发现是编码问题:

修改该文件:

时间: 2024-10-09 22:49:42

解决安装yum -y install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel后无法连接mysql的相关文章

yum -y install pip No package pip available. Error: Nothing to do

centos下安装pip时失败: [[email protected] ~]# yum -y install pipLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile* base: mirrors.tuna.tsinghua.edu.cn* extras: mirrors.tuna.tsinghua.edu.cn* updates: mirror

yum -y install与yum install有什么不同

yum -y install 包名(支持*) :自动选择y,全自动yum install 包名(支持*) :手动选择y or nyum remove 包名(不支持*)rpm -ivh 包名(支持*):安装rpm包rpm -e 包名(不支持*):卸载rpm包 yum -y install与yum install有什么不同

yum -y install python-devel

yum -y install python-devel的时候报错如图: Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=extras&infra=stock error was12: Timeout on http://mirrorlist.centos.org/?release=6&arch=i386&repo=extras&infra

安装g++,在centos上执行yum -y install gcc gcc-c++ libstdc++-devel

Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.cqu.edu.cn * updates: mirrors.nwsuaf.edu.cn Setting up Install Process Resolving Dependencies --> Running transaction check -

CentOS 安装 yum g++ wget

yum安装: 在SSH里面依次输入下面的命令:1,下载最新的yum-3.2.28.tar.gz并解压 wget http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz tar xvf yum-3.2.28.tar.gz // 如果提示wget没安装,则直接在IE上输入http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz 即可自动下载. // 下载完成后,通过SecureCRT放到CentOS

安装yum源和gcc编译器遇到的问题

这两天我试着在VMware虚拟机里安装gcc,遇到了不少问题 1.   安装yum源 我搭建的是光盘yum源(有两种方法搭建yum源,另外一种是网络yum源,但至今没弄懂我的网络yum源为什么不成功) 1)   挂载光盘 [[email protected]~]#mount/dee/cdrom /mnt/cdrom/ 2)   让网络yum源失效 [[email protected]~]#cd /etc/yum.repos.d/ [[email protected]  yum.repos.d]#

Linux安装gcc/g++

直接使用yum安装 yum install gcc yum -y install gcc-c++ 如果为RedHat  yum需要注册 可以参考更换yum源 https://www.cnblogs.com/byf-soft/p/10134741.html 原文地址:https://www.cnblogs.com/byf-soft/p/10134756.html

RHEL6解决无法使用YUM源问题(转)

RHEL的YUM源需要注册用户才能更新使用,由于CentOS和RHEL基本没有区别,并且CentOS已经被REHL收购.所以将RHEL的YUM源替换为CentOS即可.问题如下:[[email protected] ~]# yum repolistLoaded plugins: product-id, refresh-packagekit, security, subscription-managerThis system is not registered to Red Hat Subscri

解决安装Apache中出现checking for APR... no configure: error: APR not found. Please read the documentation的问题

Linux中安装Apache 编译出现问题: 解决办法: 1.下载所需要的软件包 wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip 2.为了下面编译不报错,最好先