Problem baza danych

Problemy związane ze stronami PHP

Problem baza danych

Postprzez spike1994 » So mar 12, 11 13:41

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"));
spike1994
 
Posty: 1
Dołączył(a): So mar 12, 11 13:38

Re: Problem baza danych

Postprzez parox » So mar 12, 11 16:39

Nie może nawiązać połączania z bazą danych po prostu. Sprawdź czy masz wszystkie dane poprawnie wypełnione.
Avatar użytkownika
parox
 
Posty: 598
Dołączył(a): Śr maja 23, 07 23:17
Lokalizacja: Prudhoe

Re: Problem baza danych

Postprzez marpyx » Pn mar 14, 11 17:54

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.
marpyx
 
Posty: 96
Dołączył(a): Pn cze 21, 10 17:11


Powrót do PHP

Copyright © 2007-2011 ugu.pl
Wszelkie prawa zastrzeżone.
Polityka prywatności