浅谈mysql5.7的rpm包安装
rpm -e --nodeps mariadb-5.5.64-1.el7.x86_64
6.解压出来的包必须 按照顺序进⾏安装
rpm -ivh mysql-community-common-5.7.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.29-1.el7.x86_64.rpm
7.安装完成后,启动数据库
systemctl start mysqld
8.设置开机启动
systemctl enable mysqld
9.⾸次登陆使⽤⾃动⽣成的密码
登陆数据库修改初始密码
mysql> show databases;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. mysql> use mysql;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. mysql> alter user ‘root’@‘localhost’ identified by ‘zabbix’;
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql> set global validate_password_policy=0;
Query OK, 0 rows affected (0.10 sec)
mysql> set global validate_password_length=1;
Query OK, 0 rows affected (0.00 sec)
mysql> alter user ‘root’@‘localhost’ identified by ‘zabbix’;
mysql下载libs包的网址Query OK, 0 rows affected (0.07 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
⾄此本次安装mysql5.7版本结束
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论