使用外网连接MariaDB数据库时报错Lost connection to MySQL server at ‘reading initial’ communication packet’, System error: 0
此问题是安装MariaDB数据库后,未授予外网登录权限
mysql -uroot -p
进入MariaDB
授予外网登录权限,账号root,密码123456
grant all privileges on *.* to root@'%' identified by '123456';