Well, yes... and no...
If I run localhost/server/mysql_connect.php AS
<?php
$conn = mysql_connect('my_ip_address','root','');
?>
I get
Warning: mysql_connect() [function.mysql-connect]:
Can't connect to MySQL server on 'my_ip_address' (10061)
in C:\AreaPro\wamp\www\MySync\mysql_connect.php on line 2
if called from index.php AS
if (isset($_POST['submit'])) { // Handle the form.
// Connect to remote DB from mysql_connect.php on localhost.
require_once ('mysql_connect.php'); // vs.
//require_once ('http://**my_ip_address**]/MySync/mysql_connect.php');
// Connect to remotehost db calling remotehost/mysql_connect.php
followed by my test query I also get...
Select failed - from primary crmAccess denied for user 'ODBC'@'localhost' (using password: NO)
Only by using
require_once ('http://**my_ip_address**]/MySync/mysql_connect.php');
... Only in this way have I been able to get any indication of a connection WHICH as stated above -- if
the test query is included within remotehost/mysql_connect.php -- results ARE returned into localhost/index.php.parent !
ALL THIS is a desperate attempt to circumvent the need for SSH tunneling --
which does NOT look fun though I fear is what is needed --
THAT as a workaround for shortcomings of SQLyogEnterprise
-- which uses it's own tunneling AND requires a workaround or bridge script
AND an additional mirror local database on each of our field tablets....
Of course the field tablets only enjoy intermittent connectivity at best, and so need frequent syncronizateion...
which I am DESPERATE to automate as long lapses between Synchronizations have proven disastrous
and we can't rely on the users (home inspectors) to be diligent enough to perform a three step synchronization
process once per day, let alone once per hour so .
I guess what I'm hoping hear is that you or anyone might step in and reveal that
my search for an answer to the necessities of frequent and automated synchronization has
taken me far afield, or possibly be willing and able to point me down the path to establishing
ssh tunneling between two wamp servers--which is effectively what our install of SQLyog uses.
Many Thanks