Pomoc - Szukaj - U¿ytkownicy - Kalendarz
Pe³na wersja: Jak skonfigurowaæ config.inc.php
Forum PHP.pl > Forum > Przedszkole
Go¶æ_Pafcio_*
Cze¶æ
Jestem zupelnie poczatkujacym uzytkownikiem domowego serwera w celach nauki.
Na WinXP zrobilem sobie serwer Apache z obsluga php, oraz MySQL z dostepem poprzez phpMyAdmin i na razie moim sukcesem jest to ze wszystko dziala smile.gif

Moim problemem jest to ze dziala mi jedynie autentykacja typu "config" wraz z podaniem w config.inc.php nazyw uzytkownika i hasla, czyli np:

  1. <?php
  2. $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
  3. $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
  4. $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
  5. $cfg['Servers'][$i]['connect_type'] = 'tcp';  // How to connect to MySQL server ('tcp' or 'socket')
  6. $cfg['Servers'][$i]['extension']  = 'mysql';  // The php MySQL extension to use ('mysql' or 'mysqli')
  7. $cfg['Servers'][$i]['compress'] = FALSE;  // Use compressed protocol for the MySQL connection
  8. // (requires php >= 4.3.0)
  9. $cfg['Servers'][$i]['controluser']  = ''; // MySQL control user settings
  10. // (this user must have read-only
  11. $cfg['Servers'][$i]['controlpass']  = ''; // access to the "mysql/user"
  12. // and "mysql/db" tables).
  13. // The controluser is also
  14. // used for all relational
  15. // features (pmadb)
  16. $cfg['Servers'][$i]['auth_type']  = 'config'; // Authentication method (config, http or cookie based)?
  17. $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
  18. $cfg['Servers'][$i]['password'] = 'abcdef'; // MySQL password (only needed
  19. // with 'config' auth_type)
  20. ?>


Oczywiscie ta konfiguracja mnie nie interesuje bo wtedy kazdy ma bezposredni ma dostep do mojego MySQL wpisujac sobie w przegladarce adres http://moj_adres_ip/phpMyAdmin

Kiedy natomiast kiedy ustawiam autentykacje http:

  1. <?php
  2. $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
  3. $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
  4. $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
  5. $cfg['Servers'][$i]['connect_type'] = 'tcp';  // How to connect to MySQL server ('tcp' or 'socket')
  6. $cfg['Servers'][$i]['extension']  = 'mysql';  // The php MySQL extension to use ('mysql' or 'mysqli')
  7. $cfg['Servers'][$i]['compress'] = FALSE;  // Use compressed protocol for the MySQL connection
  8. // (requires php >= 4.3.0)
  9. $cfg['Servers'][$i]['controluser']  = ''; // MySQL control user settings
  10. // (this user must have read-only
  11. $cfg['Servers'][$i]['controlpass']  = ''; // access to the "mysql/user"
  12. // and "mysql/db" tables).
  13. // The controluser is also
  14. // used for all relational
  15. // features (pmadb)
  16. $cfg['Servers'][$i]['auth_type']  = 'http'; // Authentication method (config, http or cookie based)?
  17. $cfg['Servers'][$i]['user'] = ''; // MySQL user
  18. $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
  19. // with 'config' auth_type)
  20. ?>


Przy wpisaniu adresu http://moj_adres_ip/phpMyAdmin pojawia sie ladne okienko logowania, jednak kiedy w okienku wpisuje user: root, haslo: abcdef i wciskam enter, zamiast zalogowania - ponownie wyskakuje okienko logowania i tak w nieskonczonosc. Kiedy wciskam anuluj - komunikat brak dostepu.

Czy ktos moze mi napisac jak ustawic skonfigurowac uzytkownika do serwera MySQL oraz jak skonfigurowac config.inc.php zeby dzialala autentykacja http?

Tylko proszê nie odsy³ajcie mnie do dokumentacji mySQL i phpMyAdmina, czytalem wielokrotnie i nie moge zrozumiec jak to ustawic zeby dzialalo.
Cysiaczek
http://wortal.php.pl/phppl/wortal/artykuly...nych_phpmyadmin
Jednak ode¶lê smile.gif tam powinno byæ prosto wyja¶nione.
Go¶æ
Bardzo dziekuje smile.gif Temat mozna zamknac smile.gif
To jest wersja lo-fi g³ównej zawarto¶ci. Aby zobaczyæ pe³n± wersjê z wiêksz± zawarto¶ci±, obrazkami i formatowaniem proszê kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.