Strona 1 z 1

Problem baza danych

PostNapisane: So mar 12, 11 13:41
przez spike1994
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"));

Re: Problem baza danych

PostNapisane: So mar 12, 11 16:39
przez parox
Nie może nawiązać połączania z bazą danych po prostu. Sprawdź czy masz wszystkie dane poprawnie wypełnione.

Re: Problem baza danych

PostNapisane: Pn mar 14, 11 17:54
przez marpyx
Skasuj nazwę użytkownika i nazwę bazy danych daj gwiazdki jak już.
Bo tak się nie robi żeby dane upubliczniać.
Tak jak kolega wyżej sprawdź wszystko jeszcze raz czy jest dobrze.