Install MySQL5.5.25 in Ubuntu12.04

Source: Internet
Author: User
Ubuntu version: 12.04LTSMySQL version: MySQLCommunityServer5.5.25 installation directory:/usr/local/development/mysql-5.5.251. Open the URL fuse (this article selects the 64-bit tar compression version ). 2. decompress the downloaded file

Ubuntu version: 12.04 LTS

MySQL version:MySQL Community Server 5.5.25

Installation Directory:/usr/local/development/mysql-5.5.25

1. Open the websiteHttp://www.mysql.com/downloads/mysql/To download the MySQL version (this article selects the 64-bit tar compression version ).

2.Decompress the downloaded file/Usr/local/development/mysql-5.5.25Directory.

3. CreateMysql users and groups. Note that the mysql user we created is only for the purpose of controlling File Ownership, So we executeUseraddThe-R parameterSo that it does not need to log on.

sudo groupadd mysqlsudo useradd -r -g mysql mysql

4. Change/Usr/local/development/mysql-5.5.25The directory owner is mysql.

sudo chown -R mysql:mysql /usr/local/development/mysql-5.5.25/

5. UseMysql_install_dbInitialize the authorization table. This operation is only required when MySQL is installed for the first time. If an existing installation exists, skip this step. Otherwise, the previous authorization information will be overwritten.

sudo scripts/mysql_install_db --user=mysql

6. DiscoveryMysql_install_dbExecution error. The error message is displayed because the shared library is missing.Libaio1.

7. Install the Shared LibraryLibaio1.

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.