mysql install

时间:2021-10-25 01:52:18

uname -a

rpm -ivh https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm

yum install mysql-server -y

systemctl start  mysqld.service

mysql

check your password:
grep ‘temporary password‘ /var/log/mysqld.log

set password for [email protected] = password(‘123456‘);

设置mysql服务开机自启动
    systemctl enable mysqld.service

romote:
GRANT ALL PRIVILEGES ON *.* TO ‘admin‘@‘%‘  identified  BY ‘FsEntMeeting.com‘ with  grant option;

flush privileges;