Problem baza danych

Witajcie, mam problem ponieważ nie mogę połączyć bazy danych z serwerem.
Wyskakuje mi coś takiego:
[MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:09] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:09] [MySQL] Error (0): Function: mysql_num_rows called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:09] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:12] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:12] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:12] [MySQL] Error (0): Function: mysql_num_rows called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:12] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:14] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:14] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:14] [MySQL] Error (0): Function: mysql_num_rows called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:14] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
A tak mam ustawione:
mysql_debug(1);
if(!dini_Exists(BAZA))
{
dini_Create(BAZA);
dini_Set(BAZA, "host", "mysql3.ugu.pl");
dini_Set(BAZA, "user", "db183470");
dini_Set(BAZA, "db", "db183470");
dini_Set(BAZA, "pass", "***********");
print("[Serwer] RESTART (reason): No configuration file, the file was created, fill it in!");
SendRconCommand("gmx");
}
mysql_connect(
dini_Get(BAZA, "host"),
dini_Get(BAZA, "user"),
dini_Get(BAZA, "pass"),
dini_Get(BAZA, "db"));
Wyskakuje mi coś takiego:
[MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:09] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:09] [MySQL] Error (0): Function: mysql_num_rows called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:09] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:12] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:12] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:12] [MySQL] Error (0): Function: mysql_num_rows called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:12] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:14] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:14] [MySQL] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:14] [MySQL] Error (0): Function: mysql_num_rows called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
[12:27:14] [MySQL] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to MySQL server on 'mysql3.ugu.pl' (10060).
A tak mam ustawione:
mysql_debug(1);
if(!dini_Exists(BAZA))
{
dini_Create(BAZA);
dini_Set(BAZA, "host", "mysql3.ugu.pl");
dini_Set(BAZA, "user", "db183470");
dini_Set(BAZA, "db", "db183470");
dini_Set(BAZA, "pass", "***********");
print("[Serwer] RESTART (reason): No configuration file, the file was created, fill it in!");
SendRconCommand("gmx");
}
mysql_connect(
dini_Get(BAZA, "host"),
dini_Get(BAZA, "user"),
dini_Get(BAZA, "pass"),
dini_Get(BAZA, "db"));