On 20 Oct 2008, at 13:03, Stan wrote:
UBUNTU Server v8.04
On a web page:
$navigation_connection = mysql_connect($navigation_hostName,
die("Failed to connect to MySQL on the nasServer ... call Stan");
die("Selection of 'navigation' database failed ... call Stan");
$navigation_data = mysql_query("SELECT * FROM " .
$navigation_databaseName . ".navigate " .
"ORDER BY navigateHandle",
die("SELECT * FROM navigate table failed ... call Stan");
works when the UBUNTU server is attached to the same subnet as the
If I move the UBUNTU server to a different subnet (through an ipCop
machine), making appropriate adjustments to network configuration,
punching a hole in the firewall for port 3306 from the UBUNTU server
MySQL server and authorizing the user at the new IP to MySQL, the
mysql_connect works but the mysql_select_db fails.
I need help debugging this, please?
MySQL permissions are tied to IP or hostname as well as username and
password. Sounds like the user you're connecting as has different
permissions when it comes from a different subnet. Check the MySQL
manual for detailed info on permissions.
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php