下面一起來看個在學習環境下的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 作為本地測試用,正式網站就不要那么隨便設置了.
新聞熱點
疑難解答