时间:2021-07-01 10:21:17 帮助过:11人阅读
sudo apt install mysql-server
sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf
# 注释掉
bind-address = 127.0.0.1
sudo mysqladmin -u root -p password
# 我安装的这个版本安装时没有设置root密码的提示,这个随便输
Enter password:
# 填你的密码
New password:
Confirm new password:
sudo mysql
use mysql;
grant all privileges on mysql.user to ‘root‘@‘%‘ identified by ‘root‘ with grant option;
flush privileges;
sudo service mysql stop
sudo service mysql start
树莓派安装mysql
标签:没有 class 提示 登录 服务 confirm root密码 user new