主机(iPage)不允许远程访问。那么如何才能访问/编辑我的数据库呢? [英] Host (iPage) does not allow remote access. So how can I reach/edit my database?

查看:186
本文介绍了主机(iPage)不允许远程访问。那么如何才能访问/编辑我的数据库呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iPage.com中注册了一个网域。

I have registered a domain in iPage.com.

但最近我了解到他们不允许远程访问数据库。我在php5 kohana框架编码我的网页,所以当我使用 mysql_connect(主机名,用户名,密码)函数在PHP,它返回一个错误,不能连接到数据库。既不通过SQLyog(我使用访问远程数据库)我可以连接。

But recently i learnt that they are not allowing remote access to database. i am coding my webpage in php5 kohana framework, so when i use mysql_connect(hostname,username,password) function in PHP, it returns an error and cannot connect to database. Neither via SQLyog (which i use to access remote databases) i can connect.

我可以在我的代码中如何创建条目到我的iPage数据库?我需要任何额外的应用程序或东西吗?我不知道,但我认为他们不允许ssh和html隧道太。

What can i do in my codes to create entries into my iPage database? Do i need any additional application or something? I am not sure but i think they dont allow ssh and html tunneling too.

推荐答案

我得到了解决。问题是,我试图从我的localhost(我自己的计算机)到达我的ipage数据库,它是返回错误。 iPage不允许远程访问,这意味着我无法从任何数据库管理应用程序(例如SQLyog)访问/编辑我的数据库。但是,当我创建了一个演示网站与适当的index.php尝试通过mysql_connect()函数到达数据库,并通过cuteFTP上传到我的域,它运行成功,可以到达数据库。

I got it solved. The problem was that, I was trying to reach my ipage database from my localhost (my own computer), and it was returning error. iPage does not allow remote access, which means that I cannot reach/edit my databases from any database management application (e.g. SQLyog). However, when i created a demo website with a proper index.php trying to reach the database by mysql_connect() function, and uploaded to my domain by cuteFTP, it ran successfully and could reach the database.

这篇关于主机(iPage)不允许远程访问。那么如何才能访问/编辑我的数据库呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆