Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak skonfigurować config.inc.php
-Gość_Pafcio_*-
post
Post #1





Goście







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 (IMG:http://forum.php.pl/style_emoticons/default/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.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
Cysiaczek
post
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




http://wortal.php.pl/phppl/wortal/artykuly...nych_phpmyadmin
Jednak odeślę (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) tam powinno być prosto wyjaśnione.
Go to the top of the page
+Quote Post
-Gość-
post
Post #3





Goście







Bardzo dziekuje (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Temat mozna zamknac (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 23:50