• davidstefic

    (@davidstefic)


    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

    (@radices)

    It’s possible but not easy I’d expect. You’d need the credentials to log into the remote database.

    Thread Starter davidstefic

    (@davidstefic)

    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

    (@catacaustic)

    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.