Witam. Napisałem sobie skrypt, który odczytuje dane z MySql, i wyświetla na www.
Wszystko działa idealnie. Jednak dotychczas testowałem tylko na localhoście. Gdy wrzuciłem na serwer www, dostaje takie errory:
Warning
: mysql_connect() [function.mysql
-connect
]: Lost connection to
MySQL server at
'reading initial communication packet', system error
: 111 in
/home
/shivahal
/public_html
/bans
.php on line 3
Warning
: mysql_select_db() [function.mysql
-select
-db
]: Access denied
for user
'shivahal'@'localhost' (using password
: NO
) in
/home
/shivahal
/public_html
/bans
.php on line 4
Warning
: mysql_select_db() [function.mysql
-select
-db
]: A
link to the server could not be established in
/home
/shivahal
/public_html
/bans
.php on line 4
Warning
: mysql_query() [function.mysql
-query
]: Access denied
for user
'shivahal'@'localhost' (using password
: NO
) in
/home
/shivahal
/public_html
/bans
.php on line 8
Warning
: mysql_query() [function.mysql
-query
]: A
link to the server could not be established in
/home
/shivahal
/public_html
/bans
.php on line
8Błšd zapytania
Podejrzewam że chodzi o chmody, ponieważ na localhoście działa bez zarzutu. Na ten plik mam ustawione 644.
Czy ktoś wie o co może chodzić?