Hey mein Server will sich nicht mit meiner Datenbank verbinden... ich bekomme die ganze Zeit diesen Fehler: (Ja ich habe schon gegoogelt)
Code
[18:26:38] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '5.189.129.221' (10061)
[18:26:38] [DEBUG] mysql_errno - connection: 1
[18:26:38] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[18:26:38] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[18:26:38] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[18:26:38] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM haus", callback: "OnHouseLoad", format: "(null)"
[18:26:39] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '5.189.129.221' (10061)
[18:26:39] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '5.189.129.221' (10061)
[18:26:39] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '5.189.129.221' (10061)
Code
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[18:26:37]
[18:26:37] Server Plugins
[18:26:37] --------------
[18:26:37] Loading plugin: sscanf
[18:26:37]
[18:26:37] ===============================
[18:26:37] sscanf plugin loaded.
[18:26:37] Version: 2.8.1
[18:26:37] (c) 2012 Alex "Y_Less" Cole
[18:26:37] ===============================
[18:26:37] Loaded.
[18:26:37] Loading plugin: mysql
[18:26:37] >> plugin.mysql: R39-4 successfully loaded.
[18:26:37] Loaded.
[18:26:37] Loading plugin: streamer
[18:26:37]
*** Streamer Plugin v2.7.5.1 by Incognito loaded ***
[18:26:37] Loaded.
[18:26:37] Loaded 3 plugins.
[18:26:37]
[18:26:37] Filterscripts
[18:26:37] ---------------
[18:26:37] Loading filterscript 'cameditor.amx'...
[18:26:37]
--------------------------------------
[18:26:37] CamEditor by Drebin
[18:26:37] --------------------------------------
[18:26:37] Loaded 1 filterscripts.
[18:26:38] [MYSQL]: ERROR! Die Verbindung ist fehlgeschlagen
[18:26:38]
------------------------------------------------------------
[18:26:38] Script made by Derakar
[18:26:38] ------------------------------------------------------------
[18:26:38] Number of vehicle models: 4
Alles anzeigen
Hier die Ausschnitte aus dem Script:
Code
#define SQL_HOST "5.189.129.221"
#define SQL_USER "root"
#define SQL_PASS ""
#define SQL_DATA "samp"
mysql = mysql_connect(SQL_HOST,SQL_USER,SQL_DATA,SQL_PASS);
mysql_log(LOG_ALL);
if(mysql_errno() < 1)print("[MYSQL]: Die Verbindung wurde erfolgreich hergestellt"); else print("[MYSQL]: ERROR! Die Verbindung ist fehlgeschlagen");
Alles anzeigen