1.mysql安装
yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum install mysql-community-server
问题:
yum install mysql-community-server # No match for argument: mysql-community-server
解决方式:先停用mysql模块,再进行安装
yum module disable mysql
yum install mysql-community-server
2.mysql配置及启动
##安装完后修改/etc/my.cnf,可根据实际配置调整
binlog_cache_size = 192K
thread_stack = 384K
join_buffer_size = 4096K
key_buffer_size = 512M
sort_buffer_size = 2048K
read_buffer_size = 2048K
read_rnd_buffer_size = 1024K
thread_cache_size = 192
query_cache_size = 256M
tmp_table_size = 1024M
max_connections = 500
innodb_buffer_pool_size =