[英]how do I find the mysql server name in cpanel? I need it for sequel pro
I'm trying to setup my databases in Sequel Pro (a mysql app). 我正在尝试在Sequel Pro (一个mysql应用程序)中设置我的数据库。 Localhost won't do. Localhost不会这样做。 Any idea how I can get server name? 知道如何获得服务器名称吗?
您应该能够使用服务器的IP地址或主机名。
Your MySQL server name is often te same as your website domain (eg example.com
). 您的MySQL服务器名称通常与您的网站域名相同(例如example.com
)。
From http://dev.mysql.com/doc/refman/5.1/en/connection-access.html : 来自http://dev.mysql.com/doc/refman/5.1/en/connection-access.html :
Your identity is based on two pieces of information: 您的身份基于两条信息:
- The client host from which you connect 您连接的客户端主机
- Your MySQL user name 您的MySQL用户名
So even if you've know your host, you have to allow remote connections with a specified user. 因此,即使您已了解主机,也必须允许与指定用户进行远程连接。 Please see this guide for that. 请参阅本指南 。 Your IP address could be entered as host. 您的IP地址可以作为主机输入。
尝试您的网站域名,同时检查mysql服务器是否允许远程连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.