Strona 1 z 1

bledy w MySQLu

: 13 marca 2008, 21:21
autor: seelk
Witam!
Zainstalowałem apache2, php5 jednak przy MySQL napotkałem na problemy. Kiedy restaruje serwer otrzymuję:

Kod: Zaznacz cały

seelk@debian:/$ sudo /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using 194.187.xx.xx for ServerName
 waiting apache2: Could not reliably determine the server's fully qualified domain name, using 194.187.xx.xx for ServerName
oraz przy probie ustawienia hasla na MySQL:

Kod: Zaznacz cały

connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)' 
PS. powiem, ze szukałem sam, ale te porady, które znalazłem w internecie nie poskutkowały.

: 13 marca 2008, 21:55
autor: vikus

Kod: Zaznacz cały

echo "ServerName `hostname`" >> /etc/apache2/httpd.conf
A co do mysql wyglada ze masz juz ustawione haslo

: 13 marca 2008, 22:12
autor: seelk

Kod: Zaznacz cały

-bash: /etc/apache2/httpd.conf: Brak dostępu

: 14 marca 2008, 08:41
autor: chyl-o
seelk pisze:

Kod: Zaznacz cały

-bash: /etc/apache2/httpd.conf: Brak dostępu
Wykonujesz to z poziomu root'a.

Dobrze sprawdź czy nie ustawiłeś sobie hasła dla mysqla.

pozdr.