1.mysql 安装
作者:
_少年不知愁 | 来源:发表于
2020-08-11 21:33 被阅读0次
-
yum安装
yum -y install mysql-server
开机自启
chkconfig mysqld on
启动mysql
service mysqld start
设置密码
mysql -u root
select user,host,password from mysql.user;
set password for root@localhost=password('root');
exit;
mysql重新登入
mysql -u root -p
开启远程访问
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
FLUSH PRIVILEGES;
(远程连接不上可 先
use mysql;
UPDATE user SET Password=PASSWORD('123456') where USER='root';
再重新登入;
)
本文标题:1.mysql 安装
本文链接:https://www.haomeiwen.com/subject/qyschqtx.html
网友评论