|
安装CENTOS 7.2
//临时关闭
systemctl stop firewalld
//禁止开机启动
systemctl disable firewalld
安装mysql
rpm -Uvh http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
yum repolist enabled | grep "mysql.*-community.*"
yum -y install mysql-community-server -y
配置开机启动
systemctl enable mysqld
启动mysql服务进程
systemctl start mysqld
配置mysql(设置密码等,一直按回车,出现new passwd的时候就是输入mysql密码,输密码的时候是不会显示出来的。要输两次。输一次之后回车,再输一次,
端里默认和教程里是1q2w3e4r5t密码,自行修改)
mysql_secure_installation
进入mysql,会提示你输入密码。1q2w3e4r5t
mysql -uroot -p
use mysql;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'ab123456' WITH GRANT OPTION;
flush privileges;
quit
systemctl restart mysqld 重启
使用WinSCP软件/etc/my.cnf
在[mysqld]下面加入
max_allowed_packet=100G
systemctl restart mysqld 重启
安装gcc
yum install gcc -y
yum install gcc-c++ -y
yum install glibc* -y
其他两个替换到服务端目录下 jxqy/
|
|