标签:打开 上传文件 批评 ike 完成 gre spec variable admin
wget http://repo.mysql.com/mysql57-community-release-el7-9.noarch.rpm
sudo rpm -ivh mysql57-community-release-el7-9.noarch.rpm
yum check-update
yum update
yum install mysql mysql-server
*********************接下来是漫长的等待。如果中途关机,或者下载挂了,请执行卸载步骤后,再来一次。完成后记住要给root上密码***********
systemctl start mysqld
mysql -u root
mysql> update mysql.user set authentication_string=password(‘admin‘) where user=‘root‘ and Host =‘localhost‘;
mysql> flush privileges;
mysql> quit;
systemctl start mysqld
mysql -u root -p
use mysql;
grant all privileges on *.* to root@‘%‘ identified by "admin";
grant all privileges on *.* to piwik@‘%‘ identified by "ph20190420";
FLUSH PRIVILEGES;
create user user@‘%‘ identified by ‘admin‘
grep ‘temporary password‘ /var/log/mysqld.log
1.root登陆mysql
mysql> set global validate_password_policy=0;
mysql> set global validate_password_mixed_case_count=0;
mysql> set global validate_password_number_count=3;
mysql> set global validate_password_special_char_count=0;
mysql> set global validate_password_length=3;
alter user root@localhost identified by ‘admin‘;
systemctl start mysqld
systemctl stop mysqld
service mysqld restart
用VI打开/etc/my.cnf,增加下面一行,这句话是把上传文件大小改到64M:
max_allowed_packet = 64M piwik建议
查看当前大小
show variables like ‘%max_allowed_packet%‘;
至此,安装过程结束,以上为亲自实操,或许由于环境问题,好多异常情况没有遇见,希望大家一起多多交流,共同成长,不足之处请多多批评
标签:打开 上传文件 批评 ike 完成 gre spec variable admin
原文地址:https://www.cnblogs.com/michaelcnblogs/p/11330745.html