时间:2021-07-01 10:21:17 帮助过:4人阅读
mysqld --initialize
4、启动mysql
systemctl start mysqld
5、设置mysql 密码
mysqladmin -u root password "your_password";
6、验证密码 进入mysql
mysql -u root -p 输入刚设置的密码,成功进入mysql。
7、开启允许局域网内连接
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘youpassword‘ WITH GRANT OPTION;
//刷新权限
FLUSH PRIVILEGES;
linux下mysql安装
标签:ide 允许 linux class roo linu word span 设置mysql