Centos7 & MySQL

Source: Internet
Author: User

First of all, Centos7 is a pit daddy.

Next, install MySQL on the centos7 more pit daddy.

This is the only way to record a pit-daddy journey.

Install MySQL

wget http://repo.mysql.com/mysql-community-release-el7-5-ivh mysql-community-release-el7-5. Noarch.rpmsudo yum install MySQL-server

Configuration

The default/etc/my.cnf basically nothing, reference version:http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html

Minimum version:

#For advice the change settings#http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html[Mysqld]datadir=/var/lib/Mysqlsocket=/var/lib/mysql/Mysql.sockuser=MySQL#disabling symbolic-links is recommended to prevent assorted security riskssymbolic-links=0#Recommended in standard MySQL setupSql_mode=No_engine_substitution,strict_trans_tablesport=3306Collation-server =Utf8_unicode_ciinit-connect='SET NAMES UTF8'character-set-server =Utf8default-storage-engine=InnoDB#Default-table-type=innodb[Mysqld_safe]log-error=/var/log/Mysqld.logpid-file=/var/run/mysqld/mysqld.pid

Create a MySQL user slightly

Install the default database!

mysql_install_db--datadir=/var/lib/mysql

Start the service

Mysqld_safe

With service mysqld Restart will only fall into a deep deep pit, where 10,000 words are omitted.

Reprint please indicate the source of this article: http://www.cnblogs.com/Tommy-Yu/p/5501861.html

Thank you!

Centos7 & MySQL

Related Article

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.