标签:安装 mysql img mysqld utf8 mysq ble sql png 利用
原创来源:IT书 - itbook.com
wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm yum localinstall mysql57-community-release-el7-8.noarch.rpm -y yum repolist enabled | grep "mysql.*-community.*" yum install mysql-community-server -y systemctl start mysqld systemctl status mysqld systemctl enable mysqld
grep ‘temporary password‘ /var/log/mysqld.log
利用上一步获取的初始密码登录
mysql -uroot -p
set global validate_password_policy=0; alter user ‘root‘@‘localhost‘ identified by ‘Aafsdfa24tg‘; update mysql.user set host = ‘%‘ where user = ‘root‘; flush privileges;
create database hive character set utf8 ; CREATE USER ‘hive‘@‘%‘IDENTIFIED BY ‘Aafsdfa24tg‘; GRANT ALL PRIVILEGES ON *.* TO ‘hive‘@‘%‘; FLUSH PRIVILEGES; exit;
yum install mysql-connector-java -y
登录
mysql -uroot -pAafsdfa24tg
CentOS7 安装 MySQL 5.7(yum) - IT书 - itbook.com
标签:安装 mysql img mysqld utf8 mysq ble sql png 利用
原文地址:https://www.cnblogs.com/itbook-com/p/12539698.html