群晖NAS MySQL无法外部连接的解决办法

老孙最近在群晖上安装了MySQL数据库(准确说是安装了MariaDB10),想作为同局域网PC端软件的数据库使用,但是发现默认只能NAS内部应用访问,其他设备无法访问MySQL,比如,同局域网电脑,通过navicat连接不上MySQL。

群晖型号是DS218Play,没有docker功能。MariaDB并没有给太多的设置项,群晖的DMS系统中也找不到MySQL的配置文件,ssh连接上NAS,却没有修改文件的权限,越弄越复杂,那就另辟蹊径。

解决方法如下:

1、在群晖中安装php和phpmyadmin,打开phpmyadmin,新建一个数据库用户。

2、新建的用户,主机名写%(如果是localhost,表示只能当前主机内部访问,%表示不限制访问)

3、使用新创建的用户去连接数据库就可以了。

关于博主
骨灰级博客玩家
国内第一批90后网站站长/程序员
做过七年前端讲师
目前从事锦鲤观赏鱼电商行业
鱼贝贝锦鲤创始人
文章列表
1
找回丢失的Windows领地!Windows系统盘C盘清理神器-WizTree推荐
找回丢失的Windows领地!Windows系统盘C盘清理神器-WizTree推荐
2
小米手机官解BL锁绑定账号和设备时候提示“解锁验证失败,请稍后再试”的解决方法
小米手机官解BL锁绑定账号和设备时候提示“解锁验证失败,请稍后再试”的解决方法
3
discuz论坛程序发帖时提示The server encountered an internal error or misconfiguration and was unable to complete your request.错误的解决方法
discuz论坛程序发帖时提示The server encountered an internal error or misconfiguration and was unable to complete your request.错误的解决方法
4
vue报错[Vue warn]: Unknown custom element: <mycom1> - did you register the component correctly? For recursive components, make sure to provide the "name" option.的解决方法
vue报错[Vue warn]: Unknown custom element: <mycom1> - did you register the component correctly? For recursive components, make sure to provide the "name" option.的解决方法
5
electron开发中使用nodemon进行热更新的方法
electron开发中使用nodemon进行热更新的方法
最新评论
比比拉布
比比拉布
5月7日
太感谢了!!!!!!找了这么多的教程,只有你点出来了关键点——设计视图!!!!
Jake
Jake
3月7日
Halo 啊~麻烦更新下我的博客地址,原名:Jing Blog。麻烦更新如下: Jake Blog(后缀可以省略,也可以保留,看哪个风格适合) 网址:htt
评论于关于博主