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