Linux install MySQL 5.6.11

Source: Internet
Author: User

Tar zxvf mysql-5.6. tar.gz.
CD mysql-5.6.  One
CMake. -dcmake_install_prefix=/home/mysql/-dmysql_datadir=/home/mysql/data/-dmysql_unix_addr=/tmp/mysqld.sock-dwith_ innobase_storage_engine=1 -denabled_local_infile=1 -dmysql_tcp_port=3306 -dextra_ Charsets=all-ddefault_charset=utf8-ddefault_collation=utf8_general_ci-dmysql_unix_addr=/tmp/mysql.sock-dmysql_ user=mysql-dwith_debug=0
Make
Make install

CP support-files/my-medium.cnf/etc/my.cnf--------Note:, no this file from Wuxi 152 copy of the past one, in fact, as long as the inside of the initialization of MySQL is/tmp/mysql.sock can

CP Support-files/mysql.server/etc/init.d/mysqld

1. Groupadd MySQL

2. useradd-g MySQL MySQL

3./mysql_install_db--user=mysql--basedir=/home/mysql/--datadir=/home/mysql/data "Note that the last directory will be the same as the previous compilation or/etc/ My.conf "

chmod 777/mysql_install_db [without permission, go to the/scripts/mysql_install_db directory to modify permissions]

/etc/init.d/mysqld start

Open, and then the password is empty

Linux install MySQL 5.6.11

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.