Title: Read table from another database from another server
Last modified: August 24, 2016

---

# Read table from another database from another server

 *  [davidstefic](https://wordpress.org/support/users/davidstefic/)
 * (@davidstefic)
 * [11 years ago](https://wordpress.org/support/topic/read-table-from-another-database-from-another-server/)
 * Hi!
 * i need a code so i can read content from table from another database from another
   server…
    is it possible?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Radices](https://wordpress.org/support/users/radices/)
 * (@radices)
 * [11 years ago](https://wordpress.org/support/topic/read-table-from-another-database-from-another-server/#post-6091446)
 * It’s possible but not easy I’d expect. You’d need the credentials to log into
   the remote database.
 *  Thread Starter [davidstefic](https://wordpress.org/support/users/davidstefic/)
 * (@davidstefic)
 * [11 years ago](https://wordpress.org/support/topic/read-table-from-another-database-from-another-server/#post-6091462)
 * i have credentials for the remote database, but i cant connect 🙁
    i tried with
   my credentials: $connection = mysql_pconnect($host,$user,$pass); if($connection)
   echo “Connected to Database Successfully”; else mysql_error();
 * no connection 🙁
    i can connect trough mysqladministrator but not in wordpress:/
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years ago](https://wordpress.org/support/topic/read-table-from-another-database-from-another-server/#post-6091470)
 * The server most likely has a firewall blocking remote connections.
 * If that’s not the case, what is the actual error that you’re seeing? That could
   help to see exactly what is going wrong in your code.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Read table from another database from another server’ is closed to new
replies.

## Tags

 * [database connection](https://wordpress.org/support/topic-tag/database-connection/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/read-table-from-another-database-from-another-server/#post-6091470)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
