[root@hecs-131104 data]# locale -a locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory C C.utf8 POSIX en_AG en_AU en_AU.utf8 en_BW en_BW.utf8 en_CA en_CA.utf8 en_DK en_DK.utf8 en_GB en_GB.iso885915 en_GB.utf8 en_HK en_HK.utf8 en_IE en_IE.utf8 en_IE@euro en_IL en_IN en_NG en_NZ en_NZ.utf8 en_PH en_PH.utf8 en_SC.utf8 en_SG en_SG.utf8 en_US en_US.iso885915 en_US.utf8 en_ZA en_ZA.utf8 en_ZM en_ZW en_ZW.utf8
报错:Error: Transaction test error: file /etc/my.cnf from install of mysql-community-server 问题描述 在安装MySQL过程中出现错误 file /etc/my.cnf from install of mysql-community-server-xxx conflicts with file from package mariadb-connector-c-config-xxx.noarch提示。
具体错误信息如下:
1 2 3 4 5 6 7 8 9
Total 588 kB/s | 1.4 MB 00:02 Running transaction check Transaction check succeeded. Running transaction test The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'yum clean packages'. Error: Transaction test error: file /etc/my.cnf from install of mysql-community-server-8.0.15-1.el7.x86_64 conflicts with file from package mariadb-connector-c-config-3.1.11-2.el8_3.noarch
原因分析 从错误信息中看,是冲突了,因为错误信息中有写 conflicts with file from package,但是这是一个全新的Linux8,正常没有安装过MySQL也没有安装过Mariadb,所以猜测是该Linux机器内嵌集成了该Mariadb包,造成冲突。
# 如果想要密码规则简单一点,可以修改两个全局参数(可以不用设置) set global validate_password_policy=0; set global validate_password_length=1; # 设置新密码(需要大写、小写、数字、符号) set password for'root'@'localhost'='你的新密码'; # 设置远程访问 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '你的新密码' WITH GRANT OPTION; # 刷新使配置生效 flush privileges; # 注意最后的;不能去掉