赞
踩
sudo dpkg -i mysql-apt-config_0.8.22-1_all.deb
sudo apt update
sudo apt install mysql-server
mysql -u root -p
use mysql;
update user set host = '%' where user ='root';
flush privileges;
exit;
- #启动
-
- service mysql start
-
- #重启
-
- service mysql restart
-
- #关闭
-
- service mysql stop
使用 mysqld 脚本
- #启动
-
- /etc/inint.d/mysql start
-
- #重启
-
- /etc/inint.d/mysql restart
- #关闭
-
- /etc/inint.d/mysql stop
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。