954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

dblinks equilent function in Mysql

hi

how can access romote Mysql database from local mysql database.
like oracle dblinks will also work in mysql.

ashalalaxmi2002
Newbie Poster
1 post since May 2009
Reputation Points: 10
Solved Threads: 0
 

I believe MySQL does not support dblink.

mwasif
Posting Whiz
315 posts since Dec 2007
Reputation Points: 29
Solved Threads: 48
 

This post on MySQL Forum might help you.

mwasif
Posting Whiz
315 posts since Dec 2007
Reputation Points: 29
Solved Threads: 48
 

We can't go with dblink.
But, with db connection through IP address, we can connect it.

cxn = MySQLdb.connect(host='192.168.1.13',user='root',passwd='',db='navicat')

its the process.

bhanu1225
Junior Poster in Training
59 posts since Dec 2008
Reputation Points: 10
Solved Threads: 1
 

does mysql and mysqli both can use dblink??

ririe
Newbie Poster
1 post since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

here, both are similar in connection statement.
example...

if ($GLOBALS["db_persistent"]) {
  $c = @mysqli_connect ( $host, $login, $password, $database);
} else {
  $c = @mysqli_connect ( $host, $login, $password, $database);
}

in php.

example....

cxn = MySQLdb.connect(host='192.168.1.13',user='root',passwd='',db='navicat')

in python

bhanu1225
Junior Poster in Training
59 posts since Dec 2008
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You