加入收藏 | 设为首页 | 会员中心 | 我要投稿 聊城站长网 (https://www.0635zz.com/)- 智能语音交互、行业智能、AI应用、云计算、5G!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

xampp开启xampp Mysql数据库等的远程访问示例

发布时间:2023-04-08 14:07:36 所属栏目:PHP教程 来源:
导读:下面一起来看个在学习环境下的xampp开启xampp Mysql数据库等的远程访问例子,希望例子对各位同学会有所帮助.

在访问XAMPP所建立的Mysql数据库时,若出现

New XAMPP security concept:

Access to the reque
下面一起来看个在学习环境下的xampp开启xampp Mysql数据库等的远程访问例子,希望例子对各位同学会有所帮助.
 
在访问XAMPP所建立的Mysql数据库时,若出现
 
New XAMPP security concept:
 
Access to the requested directory is only available from the local network.
 
This setting can be configured in the file “httpd-xampp.conf”.
 
则一般可以按一下步骤进行解决:
 
1关闭数据库所在服务器的防火墙
 
2、修改配置文件 httpd-xampp.conf
 
打开httpd-xampp.conf(/xampp/apache/conf/extra/httpd-xampp.conf),用记事本打开该文件,将所有Deny from all这一行注释掉,即改为 #Deny from all.
 
3、重启服务器
 
注意:我这里只是用 xampp 作为本地测试用,正式网站就不要那么随便设置了.
 
 

(编辑:聊城站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!