netstat -ant | grep 3306tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
vi /etc/mysql/mariadb.conf.d/50-server.cnf: # localhost which is more compatible and is not less secure. bind-address = 0.0.0.0 :
systemctl restart mariadbmysql -u root不需要密碼就可以登入
CREATE USER 'mybot'@'%' IDENTIFIED BY '**password**'; GRANT ALL PRIVILEGES ON phplist.* TO 'mybot'@'%'; FLUSH PRIVILEGES;