麒麟V10+昇腾处理器信创环境安装mysql8

下载安装

下载地址https://downloads.mysql.com/archives/community/
如下图所示:

image.png

上传并安装

下载完上传到服务器:

解压:tar -xvf mysql-8.0.28-1.el8.aarch64.rpm-bundle.tar                                                                                                             

先检查是否安装了mariadb


image.png

有则卸载掉

rpm -e --nodeps mariadb-connector-c-3.0.6-6.ky10.aarch64                                                                                                                              

执行:

rpm -ivh mysql-community-common-8.0.28-1.el8.aarch64.rpm
rpm -ivh mysql-community-client-plugins-8.0.28-1.el8.aarch64.rpm
rpm -ivh mysql-community-libs-8.0.28-1.el8.aarch64.rpm
rpm -ivh mysql-community-client-8.0.28-1.el8.aarch64.rpm 
rpm -ivh  mysql-community-icu-data-files-8.0.28-1.el8.aarch64.rpm
rpm -ivh mysql-community-server-8.0.28-1.el8.aarch64.rpm

安装完成后修改配置文件,忽略表的大小写参数:

vi /etc/my.cnf

[mysqld]节点加上

lower_case_table_names=1
plugin-load=validate_password.so
validate-password=OFF

启动

安装完启动:

systemctl start mysqld

配置远程工具连接

查看初始密码:

cat /var/log/mysqld.log | grep password

结果如下图所示:


image.png

修改数据库初始密码,并开通root远程账号,开通本地127.0.0.1访问权限,
修改密码:

mysql -uroot -p
ALTER USER USER() IDENTIFIED BY 'mysql!2017Ylz';
CREATE USER 'root'@'127.0.0.1' IDENTIFIED BY 'mysql!2017Ylz';
CREATE USER 'root'@'%' IDENTIFIED BY 'mysql!2017Ylz';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';
flush privileges;

你可能感兴趣的:(麒麟V10+昇腾处理器信创环境安装mysql8)