本帖最后由 陈沛 于 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-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
编辑回复