mysql install

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 root@localhost = password('123456');

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

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

flush privileges;

posted @ 2019-10-26 09:27  退役产品汪  阅读(172)  评论(0编辑  收藏  举报