Ubuntu under MySQL binary package installation

Source: Internet
Author: User

1. Download the corresponding binary package

Cd/usr/local/src
sudo wget http://dev.mysql.com/downloads/file/?id=465030

2. Unzip and rename to MySQL in the/usr/local directory

sudo tar zxvf mysql-5.6.33-linux-glibc2.5-x86_64.tar.gz
sudo mv Mysql-5.6.33-linux-glibc2.5-x86_64/usr/local/mysql

3. Create MySQL groups and users, change the MySQL-owned users and user groups

Groupadd MySQL
useradd-g MySQL mysql-s/bin/false
sudo chown-r mysql:mysql/usr/local/mysql

4. Initialize MySQL

sudo rm-rf/etc/my.cnf
sudo./scripts/mysql_install_db--user=mysql--basedir=/usr/local/mysql

5. Set MySQL Start command
sudo cp/usr/local/mysql/support-files/mysql.server/etc/init.d/mysql
sudo chmod +x/etc/init.d/mysql

6.mysql Boot
Sudo/etc/init.d/mysql (Start|stop|force-quit|restart|reload|status)

7. Initialize the MySQL password
Cd/usr/local/mysql/bin
sudo./mysqladmin-u root password root (password)

8. Connect to the database by bringing your own MySQL client
Cd/usr/local/mysql/bin
sudo./mysql-u root-p

9. Check MySQL operation:
sudo lsof-i:3306

10. The Expansion settings boot
sudo apt-get install sysv-rc-conf
sudo sysv-rc-conf php-fpm on

11. Configure Extranet Access
Grant all privileges on * * to [e-mail protected] "%" identified by ' [email protected]#@4454*23 ' with GRANT option;
Flush privileges;

Ubuntu under MySQL binary package installation

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.