新安装的64位centos6.5精简版,用于编译mysql错误问题总结

回复 收藏
本帖最后由 陈沛 于 2014-10-9 15:15 编辑

参考“2014-10-10 LAMP第一部分-环境搭建”
地址: http://www.aminglinux.com/bbs/thread-6952-1-1.html

问题一:
   阿铭老师使用的是32位的,所以需要下载64位:
   http://syslab.comsenz.com/downloads/linux/mysql-5.1.40-linux-x86_64-icc-glibc23.tar.gz

问题二 :
   运行./scripts/mysql_install_db --user=mysql --datadir=/data/mysql 出现一个警告与一个错误。
   1. 警告
       WARNING: The host 'ChenCN' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
     解决方法:
         修改系统名为"localhost" 运行 "hostname localhost"与修改 /etc/sysconfig/network 文件 (个人解决方法,可能还有更好的。)
   2. 错误
      ./bin/mysqld: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
      解决方法:
          yum install compat-libstdc++-33-3.2.3   
          或者
          rpm -ivh compat-libstdc++-33-3.2.3
2014-10-09 15:08 举报
已邀请:
0

剑在飞

赞同来自:

{:4_109:}{:4_109:}{:4_109:}
0

小雨

赞同来自:

这两个问题我都遇到了,多谢分享

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: