#安装网上教程一步一步按的自己也先卸载了本身自带的mysql包 rpm -qa |grep mysql
按照教程
1)wget http://repo.mysql.com//mysql57-community-release-el7-7.noarch.rpm
2)rpm -ivh mysql57-community-release-el7-7.noarch.rpm
3)yum install mysql-server
/etc/my.cnf 也配置了
[mysql]
character-set-server=utf8
socket=/var/lib/mysql/mysql.sock
[mysqld]
datadir=/var/lib/mysql
port=3306
socket=/var/lib/mysql/mysql.sock
datadir=/usr/local/mysql/data
default-storage-engine=INNODM
user=mysql
symbolic-links=0
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/r**un/mysqld/mysqld.pid
**问题 systemctl start mysqld.servic **
查看日志 /var/log/mysqld.log
网上看好多说在/usr/local/mysql/bin/ 加上软连接 ==> 但是我根本没有这个的脚本啊