时间:2021-07-01 10:21:17 帮助过:24人阅读
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 利用