Hey Leute.
Wollte bissle an na Hompage rumarbeiten und versuche deswegen die Hamachi Datenbank vom Server mit der Hompage zu verbinden.
Hab via Portsmaps 3306 Port freigegeben und dann folgendes in die config rein:
PHP Code:
DEFINE('SQL_HOST', '**.**.65.100');
DEFINE('SQL_USER', 'root');
DEFINE('SQL_PASS', '******');
DEFINE('SQL_HP_HOST', '**.**.65.100');
DEFINE('SQL_HP_USER', 'root');
DEFINE('SQL_HP_PASS', '******');
DEFINE('SQL_HP_DB', 'account');
Der Hamachi server läuft nicht über meinem PC,
Vom anderen PC aus (wo der server drauf liegt) kann ich problemlos auf die Datenbank Joinen (via Navicat)
Allerdings zeigt die hOmpage mir folgende fehlermeldung an:
Code:
Deprecated: mysql_connect() [function.mysql-connect]: The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /users/*******/www/S1/index.php on line 16
Warning: mysql_connect() [function.mysql-connect]: Connection timed out in /users/*******/www/S1/index.php on line 16
Deprecated: mysql_connect() [function.mysql-connect]: The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /users/*******/www/S1/index.php on line 17
Warning: mysql_connect() [function.mysql-connect]: Connection timed out in /users/********/www/S1/index.php on line 17
Kann auch von meinem PC nicht auf die Datenbank joinen.
Nur vom PC wo der Server selbst drauf ist ;(
Bitte um hilfe
Greez