![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 1.05.2004 Ostrzeżenie: (0%) ![]() ![]() |
Zdecydowałem się zadać pytanie w tym dziale, bo jest on dla mnie najodpowiedniejszy.
Dopisałem się do innego wątku, ale nikt mi na razie nie pomógł, być może źle sfomułowałem pytanie... Przejrzałem forum i to, co znalazłem nie rozwiązało mojego problemu. Debian Woody i jego Apache, php4, mysql i myadmin. php Version 4.1.2 mysql "Client API version 3.23.49" phpMyAdmin 2.2.3 Apache/1.3.26 Na localhost. Jaki mam wpisać login i hasło w myadmin? root bez hasła nie działa. Gdzie się ustawia hasła do myadmin i php? Jak to po ustawiać, aby było dobrze? to jest mój config.inc.php: Kod $cfgServers[1]['host'] = 'localhost';
$cfgServers[1]['port'] = ''; $cfgServers[1]['socket'] = ''; $cfgServers[1]['connect_type'] = 'socket'; $cfgServers[1]['stduser'] = ''; $cfgServers[1]['stdpass'] = ''; $cfgServers[1]['auth_type'] = 'cookie'; $cfgServers[1]['user'] = 'root'; $cfgServers[1]['password'] = 'haslo'; $cfgServers[1]['only_db'] = ''; $cfgServers[1]['verbose'] = ''; $cfgServers[1]['bookmarkdb'] = ''; $cfgServers[1]['bookmarktable'] = ''; 'haslo' sam sobie wpisałem. Bez hasła, jak i z tym nie działa. Jak ustawię auth_type na 'http', to też mam "Wrong username/password. Access denied." |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 1.05.2004 Ostrzeżenie: (0%) ![]() ![]() |
To jest kawałek pliku: /etc/php4/apache/php.ini
Kod [MySQL]
; Allow or prevent persistent links. mysql.allow_persistent = On ; Maximum number of persistent links. -1 means no limit. mysql.max_persistent = -1 ; Maximum number of links (persistent + non-persistent). -1 means no limit. mysql.max_links = -1 ; Default port number for mysql_connect(). If unset, mysql_connect() will use ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look ' at MYSQL_PORT. mysql.default_port = ; Default socket name for local MySQL connects. If empty, uses the built-in ; MySQL defaults. mysql.default_socket = ; Default host for mysql_connect() (doesn't apply in safe mode). mysql.default_host = 127.0.0.1 ; Default user for mysql_connect() (doesn't apply in safe mode). mysql.default_user = user mysql.default_password = haslo ; Default password for mysql_connect() (doesn't apply in safe mode). ; Note that this is generally a *bad* idea to store passwords in this file. ; *Any* user with php access can run 'echo cfg_get_var("mysql.default_password") ; and reveal this password! And of course, any users with read access to this ; file will be able to reveal the password as well. [MySQLadmin] server = /usr/sbin/apache user = admin password = haslo Próbowałem już wpisywać user i admin, próbowałem dopisywać mysql. przed każdą linią w sekcji MySQLadmin (nie wiem, czy taka sekcja jest w linuksowej wersji...) zmiany w /etc/mysql/my.cnf nie dawały żadnych rezultatów (również w phpinfo()) Cytat ; Note that this is generally a *bad* idea to store passwords in this file.
A gdzie indziej to przechowywać?(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) Dzięki za zainteresowanie. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 10.10.2025 - 08:18 |