frenchpl Posted May 11, 2010 Share Posted May 11, 2010 Can someone please put me right. I have a complete and working set of scripts that access a mysql database. I am using a log in script to start. The log in script forms the URL for localhost and then connects to the selected database. All the scripts use the ./dir/dir form of addressing in any href's. I am now trying to access this from another machine on my network. I am sure that because I enter the IP address of the server, I get to the login script. When the script tries to get into the rest of the suit, I get the not found page error. It is of course trying to find 'localhost', from the ./ path. ( the dot representing localhost). Any ideas please?????? Quote Link to comment https://forums.phpfreaks.com/topic/201431-accessing-my-phpsql-from-another-machine/ Share on other sites More sharing options...
kenrbnsn Posted May 11, 2010 Share Posted May 11, 2010 By default access from remote machines is disabled in MySQL and has to be explicitly permitted. Ken Quote Link to comment https://forums.phpfreaks.com/topic/201431-accessing-my-phpsql-from-another-machine/#findComment-1056829 Share on other sites More sharing options...
frenchpl Posted May 13, 2010 Author Share Posted May 13, 2010 Thanks for the reply Ken. Can you be a bit more specific here? Like where do I change the settings, in MySql, PHP, or the Apache server? Quote Link to comment https://forums.phpfreaks.com/topic/201431-accessing-my-phpsql-from-another-machine/#findComment-1057491 Share on other sites More sharing options...
JasonO Posted May 13, 2010 Share Posted May 13, 2010 It would be a setting in your MySQL server. Usually remote accesing the database is disabled by most web hosts for security reasons, although (don't quote me though) there might be some kind of whitelist for certain IP's to be allowed to connect. Quote Link to comment https://forums.phpfreaks.com/topic/201431-accessing-my-phpsql-from-another-machine/#findComment-1057493 Share on other sites More sharing options...
frenchpl Posted May 13, 2010 Author Share Posted May 13, 2010 Thanks, I will have to do some more digging on it. Quote Link to comment https://forums.phpfreaks.com/topic/201431-accessing-my-phpsql-from-another-machine/#findComment-1057497 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.