centos7安装mysql8以及常规操作
-------------------------------------
[root@...opt]# vi /etc/my.cnf
[mysqld]
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
datadir=/mysql/data
tmpdir=/mysql/tmp
innodb_data_file_path=ibdata1:1G;ibdata2:1G;ibdata3:1G:autoextend
1