梦想太容易实现就不是梦想了,但没有梦想,现实就是一片漆黑。
查看是否安装过MySQL,如果有则需要卸载掉原有的服务。
yum install @mysql:8.0 -y
1.Failed to set locale, defaulting to C.UTF-8
原因是因为没有配置正确的语言环境造成的。将该配置文件进行就该即可。
echo "export LC_ALL=en_US.UTF8" >> /etc/profile
source /etc/profile
2.this system is not registered with an entitlement server.
系统没有注册,使用yum时会提醒你注册,不注册这个功能不能使用。
注册地址:
账号注册成功后,在系统中使用命令注册
subscription-manager register --username yourname --password yourpassword --auto-attach

安装成功

redhat8通过yum安装mysql8后的配置文件是通过调用的目录,其中的为主配置文件,为身份验证文件
讯享网
systemctl start mysqld
systemctl?enable mysqld
mysql_secure_installation
也可以空密码进入,直接进行密码修改
mysql -u root -p; #确认密码时直接回车
use mysql;
alter user 'root'@'localhost' identified with mysql_native_password by '密码`;
mysql -u root -p;
select version();

create user 'admin'@'%' identified by 'Hm5$uPLfat%jCNXc';
grant all on *.* to 'admin'@'%';
1.2003:can not connect to MySQL server on ‘192.168.0.179’

问题:没有关闭防火墙
方法:直接关闭防火墙
systemctl stop firewalld;? ? #重启后失效
systemctl disabled firewalld;? ?#永久性


版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/163838.html