Ubuntu14.04 out for a while, a few days ago just upgraded to this version, a fresh one. However, there is a small problem when installing MySQL, record for later use.
Pre-operation:
There are many ways to install MySQL online, there are roughly three of them.
1. Install sudo apt-get install Mysql-server from the Web. Once the environment variables have been configured automatically, you can use the MySQL command directly.
2. Install the offline package, taking mysql-5.0.45-linux-i686-icc-glibc23.tar.gz as an example.
3. Binary Package Installation: The environment variables are configured automatically when the installation is complete, and the MySQL command can be used directly.
Depending on the needs of your work, you sometimes need to install offline packages. So I tried to install the second way, first of all, the general process.
Groupadd mysql# First step mkdir/home/mysql# step two 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# Fifth Step 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. # Nineth Step scripts/mysql_install_db--user=mysql# Tenth step./bin/mysqladmin-u root password ' passw0rd ' #第十一步
Problem:
An error occurred while performing the tenth step as follows:
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 dependency package is missing during installation: Libaio, install this dependency package.
sudo apt-get install Libaio-dev
The entire MySQL installation process can be completed successfully.
This article is for original content, pro-Test available! Welcome reprint, Reproduced please indicate the source: blog.csdn.net/ljgstudy, thank you for your cooperation!