Ubuntu13.04 离线安装mysql
Ubuntu13.04 离线安装mysql步骤:
1. groupadd mysql
2. mkdir /home/mysql
3. useradd -g mysql -d /home/mysql mysql
4. copy mysql-5.0.45-linux-i686-icc-glibc23.tar.gz到/usr/local目录
5. 解压:tar zxvf mysql-5.0.45-linux-i686-icc-glibc23.tar.gz
6. ln -s mysql-5.0.45-linux-i686-icc-glibc23 mysql
7. cd /usr/local/mysql
8. chown -R mysql .
9. chgrp -R mysql .
10. scripts/mysql_install_db --user=mysql
11. 为root设置密码: ./bin/mysqladmin -u root password 'passw0rd'
安装到第10步的时候,遇到这样的问题:Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory 求解?
------解决方案--------------------缺少动态库libaio.so
------解决方案--------------------根绝错误提示来,error while loading shared libraries: libaio.so.
提示找不到libaio.so文件,就在网上下载一个动态库丢在对应目录下去!