vb.net MySQL 数据库主机名

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19043176/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 15:15:19  来源:igfitidea点击:

MySQL database hostname

mysql.netvb.netwebserverhostname

提问by Simon

I have created a MySQL database and a table via cPanel on a web server of mine. My question is this: How can I access this Database and Table from a Visual Basic.net application?

我在我的网络服务器上通过 cPanel 创建了一个 MySQL 数据库和一个表。我的问题是:如何从 Visual Basic.net 应用程序访问此数据库和表?

What do I use as the host address? The http address to the web server is http://www.canninginc.co.nz

我使用什么作为主机地址?网络服务器的 http 地址是http://www.canninginc.co.nz

回答by Sobin Augustine

If you are trying to connect to MySQL from a remote location (for example from your computer), please use these instructions:

如果您尝试从远程位置(例如从您的计算机)连接到 MySQL,请使用以下说明:

  1. Use the IP address of your hosting account as your MySQL hostname. Your IP address can by found on the left hand column when you login to cPanel.

  2. Please add your computer IP address to the cPanel -> Remote MySQL section. You can check the computer IP address at http://www.tracemyip.org/

  3. Use either the MYSQL username / password that was created in cPanel -> MYSQL section, or your cPanel login details to connect to the database

  1. 使用您的主机帐户的 IP 地址作为您的 MySQL 主机名。当您登录到 cPanel 时,可以在左侧栏中找到您的 IP 地址。

  2. 请将您的计算机 IP 地址添加到 cPanel -> 远程 MySQL 部分。您可以在http://www.tracemyip.org/查看计算机 IP 地址

  3. 使用在 cPanel -> MYSQL 部分中创建的 MYSQL 用户名/密码或您的 cPanel 登录详细信息连接到数据库