php - Connecting to remote MySQL database from local LAMP through a university proxy -
My laptop has been installed on my laptop to work on the web app for a project at the university.
If I connect the web app to the local app database, then everything is fine and the app connects to the database.
However, if I specify a remote database, then this error will be loaded for some time by appearing in the app:
Warning: mysqli :: mysqli () [ Mysqli.mysqli]: (HY000 / 2003): '176.32.230.14' (110) can not connect to MySQL server /home/ben/site/inc/db.php Line 2
Connect Error (2003) '176.32.230.14' (110) can not connect to MySQL serverand closes on this section of code:
if ( $ Mysqli- & gt; Connect_uper) {die ('Connect Error ('. Mysqli-> Connect_errno. ')'. $ Mysqli- & Gt; connect_error); }
When I'm connected to WiFi and Proxy in my university, then the remote database connection only fails.
I believe the proxy is a possible cause for my problem.
So, do I need to set up Apache to connect to the proxy?
It seems to me that you are probably unable to connect on mysql port (3306) .
Comments
Post a Comment