Ubuntu14.04 installation of MySQL and the process encountered a small problem

Source: Internet
Author: User

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!



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.