网站和本地程序使用的数据库
我想在 phpmyadmin (用于网站)中使用数据库 SQL,并将其用于本地程序(使用 Visual Studio 2008 C#)
我尝试搜索信息,但我什么也没找到,我不知道该怎么办。如果有人可以推荐我。 我已经使用 .sql 数据库创建了我的网站。
我想在网站(使用 phpmyadmin)和本地程序(C# 中的 Visual Studio 2008)中使用相同的数据库,
谢谢
i want to use a database SQL in phpmyadmin (for a website) and also use it for a local program (with Visual Studio 2008 C#)
I try to search for informations but i found nothing, i dont know what to do. If someone can refer me.
I already do my website with a .sql database.
I want to use the same database in a website (with phpmyadmin) and a local program (Visual Studio 2008 in C#)
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您托管站点的位置,您可能需要在 MySQL 控制面板中指定您希望其他站点(IP 地址)访问您的数据库。一旦确定配置正确,您就可以像连接本地托管数据库一样连接到数据库,但远程主机地址除外。
您需要在 MySQL 控制面板中查找该主机名。例如,GoDaddy 在其网格帐户的主机地址命名约定中使用类似
username.xxxxxx.hostedresource.com
的内容。如果您在查找此信息时遇到任何问题,请联系您的房东。您将使用与您的网站相同的用户名和密码。Depending on where you are hosting your site, you may need to specify in your MySQL control panel that you would like your database accessible by other sites (IP addresses). Once you're sure you have that configured correctly, you would connect to your database just like you would a locally hosted one with the exception of a remote host address.
You will need to look in your MySQL control panel for what that host name is. For example, GoDaddy uses something like
username.xxxxxx.hostedresource.com
in their host address naming convention for their grid accounts. If you have any problems locating this info, just contact your host. You would use the same username and password as your website does.