Linux uses binary to install mysql and binarymysql
The following example shows how to install mysql using binary in linux.
1. download binary files
Download mysql-5.6.36-linux-glibc2.5-i686.tar.gz on official website.
2. decompress the file and move it to the/usr/local/mysql directory.
Tar-zxvf mysql-5.6.36-linux-glibc2.5-i686.tar.gz
3. Create and configure user groups and users
Groupadd mysqluseradd mysql-g mysqlchown-R mysql/usr/local/mysql/chgrp-R mysql/usr/local/mysql/
4. Installation and initialization
# Install mysql/usr/local/mysql/scripts/mysql_install_db -- user = root # configure mysql Startup File cp/usr/local/mysql/support-files/my-default.cnf/etc/my. cnf # Add the mysqld service to the system cp/usr/local/mysql/share/mysql. server/etc/init. d/mysqld # Soft link the mysql command to the system command ln-s/usr/local/mysql/bin/mysql/usr/bin/mysql
5. Start the service test
Service mysqld startmysql-u root
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.