Jestem poczatkujacym uzytkownikiem Linuksa a jeszcze bardziej poczatkujacym :) w MySQL i PHP.
Zaznacze na wstepie, ze szukalem w googlach odpowiedzi na moje pytania, jednak nic co znalazlem problemu nie rozwiazalo.
W swiezo zainstalowanym OpenSUSE 11.1 chcialem uruchomic phpMyAdmin. W tym celu zrobilem wszystko to co napisane jest w artykule Kevina Millecama: http://www.novell.com/coolsolutions/feature/595.html .
Jednak po wykonaniu opisanych polecen i wpisaniu w przegladarce adresu http://localhost/phpMyAdmin , otrzymuje dwa komunikaty :
Kod
Error
MySQL said:
#1045 - Access denied for user 'root'@'localhost' (using password: YES)
MySQL said:
#1045 - Access denied for user 'root'@'localhost' (using password: YES)
oraz
Kod
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
lub tylko jeden nastepujacy:
Kod
MySQL said: Documentation
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
(pojecia nie mam dlaczego raz sie wyswietlaja te 2 pierwsze, a innym razem ten trzeci ... zupelnie jakby sie losowaly)
Nie wiem czemu phpMyAdmin mi nie dziala.
Pomyslow mam kilka:
1. dlatego ze jest to OpenSUSE a nie platne novellowe SUSE
2. dlatego ze autor wykorzystywal php4 , a ja zainstalowalem php5
3. dlatego ze utworzylem grupe o nazwie 'grupamysql' a nie jak autor chcial 'mysql' (nie dalo sie utworzyc grupy 'mysql', bo otrzymywalem komunikat 'There is a conflict between the entered group name and an existing group name. Try another one.' )
4. dlatego ze glupio skonfigurowalem phpMyAdmin (co jest najbardziej prawdopodobne), ponizej zalaczam zawartosc pliku config.inc.php :
Kod
<?php
/*
* Generated configuration file
* Generated by: phpMyAdmin 3.1.2 setup script by Piotr Przybylski <piotrprz@gmail.com>
* Date: Tue, 03 Feb 2009 05:09:27 +0100
*/
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'wTymMiejscuHasloRoota';
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
/*
* Generated configuration file
* Generated by: phpMyAdmin 3.1.2 setup script by Piotr Przybylski <piotrprz@gmail.com>
* Date: Tue, 03 Feb 2009 05:09:27 +0100
*/
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'wTymMiejscuHasloRoota';
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
Zmienilem 'config' na 'cookie', ale komunikaty o bledach nadal te same, a nawet przybyl jeden nowy: 'Cannot load mcrypt extension. Please check your PHP configuration.'
Prawde mowiac pojecia nie mam co mam z tym zrobic zeby zadzialalo... Wszystko z artykulu pana Kevina M. czytalem i robilem uwaznie i myslalem, ze bedzie dzialalo bez problemow...
Bardzo prosze o pomoc!
P.S. Po wejsciu na http://localhost/phpMyAdmin/setup/index.php i podstawowym skonfigurowaniu servera (i dwa razy kliknieciu na 'Save') na liscie 'Servers' jest moj localhost. Ale jak zamkne przegladarke, ponownie otworze i ponownie wejde na powyzszy link, widze napis 'There are no configured servers' .
P.P.S. Katalog /var/lib/mysql (i wszystko co zawiera) powinien w moim przypadku nalezec do grupy 'mysql' czy 'grupamysql' ?