如何连接到iPage mysql数据库 [英] How to connect to iPage mysql database

查看:164
本文介绍了如何连接到iPage mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Web逻辑域中创建一个数据源以远程连接到ipage mysql数据库,但是我不知道要使用哪个驱动程序,主机名和端口在哪里?我拥有在ipage站点中创建的数据库名称,用户名和密码。

I am trying to create a data-source in my web-logic domain to remotely connect to ipage mysql database, but I don't know which driver to use, where is the host name and the port?? I have the database name and user name and password that I created in the ipage site.

推荐答案

假设您的域名为 abc.com ,那么您的主机应该是 abccom

suppose your domin name is abc.com then your host should be abccom

$db= new mysqli("domaincom.ipagemysql.com","DB_user","password","DB_name");
if($db->connect_error)
{
    echo "ERROR: (".$db->connect_errno.") ".$db->connect_error;
    exit();
}

--------编辑

要连接到mysql数据库,您需要具备以下4项

--------edited
to connectto mysql database you need to you need to have the following 4 things

1- host           //to access mysql DB at ipage use host=domain.ipagemysql.com (remember doamin without .com or .net see 1st line of my answer)
2- user           //you may know
3- password       //you may know
4- database_name  //you may know

我不知道webLogic的界面如何输入这些内容

I dont know the interface of webLogic how to input these.

这篇关于如何连接到iPage mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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