Jump to content

Recommended Posts

G'day Guys,

 

I have 2 servers:

1) power - MSQL Ver: 5.0.18

2) demo - MSQL Ver: 5.0.24

 

I am trying to run PHP code on the POWER server to query stuff in mysql on the DEMO server.

 

We have full access to the servers and the mysql installations  (from an admin point of view) and can make any required alterations to apache, php or mysql.

 

There is two of us and neither of us have ever tried this before.

 

As a matter of interest we can access POWER mysql from running scripts on DEMO quite happly, now we need to do the opposite.

 

What are the steps i need to do to make all this happen?

 

First Error:

Warning: mysql_connect(): Host 'POWER' is not allowed to connect to this MySQL server in /usr/home/power/connectFunction.php

 

Then  used the phpMyAdmin to create a new user with host set to the appropriate 'POWER' server.

 

Current Error:

mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client

 

usinig the command line we can connect from POWER to DEMO but it just won't happen in php script.

Link to comment
https://forums.phpfreaks.com/topic/52903-solved-interconnectivity-with-2-servers/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.