Ubuntu14.04 out for a while, a few days ago just upgraded to this version, a fresh one. However, the installation of MySQL encountered a small problem, recorded for later use.
Preliminary action:
There are many ways to install MySQL on the Internet, there are roughly three kinds.
1. Install sudo apt-get install Mysql-server from the Internet. After loading the environment variable, you can use the MySQL command directly.
2. Install off-line package, take mysql-5.0.45-linux-i686-icc-glibc23.tar.gz for example.
3. Binary Package Installation: Installation completed has been automatically configured environment variables, you can directly use the MySQL command.
There are times when you need to install offline packages depending on your work needs. So what I'm trying to install is the second way, the general process first.
Groupadd mysql# First step
mkdir/home/mysql# second step
useradd-g mysql-d/home/mysql mysql# Third step
sudo cp mysql-5.0.45-linux-i686-icc-glibc23.tar.gz/usr/local# Fourth Step
tar zxvf mysql-5.0.45-linux-i686-icc-glibc23.tar.gz #第五步
ln-s mysql-5.0.45-linux-i686-icc-glibc23 mysql# Sixth step
cd/usr/local/mysql# Seventh step
chown-r MySQL. #第八步
chgrp-r MySQL. #第九步
scripts/mysql_install_db--user=mysql# Tenth step
./bin/mysqladmin-u root Password ' Passw0rd ' #第十一步
Problem:
The following error occurred while performing step tenth:
Installing MySQL system Tables..../bin/mysqld:error while loading shared libraries:libaio.so.1:cannot open shared objec T file:no such file or directory
Workaround:
The above prompts indicate that a dependent package is missing during installation: Libaio, install this dependency pack.
sudo apt-get install Libaio-dev
This allows you to complete the entire MySQL installation process.
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/