>  기사  >  php教程  >  xampp开启xampp Mysql数据库等的远程访问例子

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

WBOY
WBOY원래의
2016-06-08 17:22:181590검색

下面一起来看个在学习环境下的xampp开启xampp Mysql数据库等的远程访问例子 ,希望例子对各位同学会有所帮助。

<script>ec(2);</script>

在访问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 作为本地测试用,正式网站就不要那么随便设置了!

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.