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.