Ubuntu 14.04 installation mysq times wrong problem

Source: Internet
Author: User
Tags linux

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.