本地主机MySQL的外部访问 [英] MySQL external access for localhost
问题描述
我需要一个桌面应用程序连接到MySQL服务器。该网站连接到'localhost'的数据库。什么会本地主机的完整路径是什么?
I need to connect a desktop application to a MySQL server. The website connect to the database 'localhost'. What would the the full path of the localhost be?
使用CentOS的6.5 /阿帕奇/ zpanel
Using CentOS 6.5/apache/zpanel
答案可能是太明显了,从来没有人问过它。但我对打不能弄明白。这里是什么我有截图:
The answer is probably so obvious that nobody has ever asked it before. But I rally can't figure it out. Here is the screenshot of what I have:
推荐答案
这是运行MySQL服务器的IP地址(在同一Web服务器,如果你连接到它为localhost)
It's the IP address of the server which is running mysql (the same of the webserver, if you're connecting to it as localhost)
但许多托管公司默认情况下禁用远程MySQL,你可能需要询问他们启用,或白名单,你是从连接的IP地址。
But many hosting companies disable remote MySQL by default, you may need to ask them to enabled it, or to whitelist the IP you are connecting from.
这篇关于本地主机MySQL的外部访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!