ugrás a tartalomhoz

A phpmyadmin beállítása az alap konfigurációs fájlbók kiindulva

Anonymous · 2006. Szep. 23. (Szo), 19.08
Ez itt egy alap cfg. Mit írjak át h mûködjön nálam is?
  1. <?php  
  2.   
  3. /* $Id: config.sample.inc.php,v 2.1.2.2 2006/08/28 08:14:14 nijel Exp $ */  
  4. // vim: expandtab sw=4 ts=4 sts=4:  
  5.   
  6. /** 
  7.  * phpMyAdmin sample configuration, you can use it as base for  
  8.  * manual configuration. For easier setup you can use scripts/setup.php 
  9.  * 
  10.  * All directives are explained in Documentation.html and on phpMyAdmin  
  11.  * wiki <http://wiki.cihar.com>. 
  12.  */  
  13.   
  14. /*  
  15.  * This is needed for cookie based authentication to encrypt password in  
  16.  * cookie 
  17.  */  
  18. $cfg['blowfish_secret'] = ''/* YOU MUST FILL IN THIS FOR COOKIE AUTH! */  
  19.   
  20. /*  
  21.  * Servers configuration 
  22.  */  
  23. $i = 0;  
  24.   
  25. /*  
  26.  * First server 
  27.  */  
  28. $i++;  
  29. /* Authentication type */  
  30. $cfg['Servers'][$i]['auth_type'] = 'cookie';  
  31. /* Server parameters */  
  32. $cfg['Servers'][$i]['host'] = 'localhost';  
  33. $cfg['Servers'][$i]['connect_type'] = 'tcp';  
  34. $cfg['Servers'][$i]['compress'] = false;  
  35. /* Select mysqli if your server has it */  
  36. $cfg['Servers'][$i]['extension'] = 'mysql';  
  37. /* User for advanced features */  
  38. $cfg['Servers'][$i]['controluser'] = 'pmausr';  
  39. $cfg['Servers'][$i]['controlpass'] = 'pmapass';  
  40. /* Advanced phpMyAdmin features */  
  41. $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';  
  42. $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';  
  43. $cfg['Servers'][$i]['relation'] = 'pma_relation';  
  44. $cfg['Servers'][$i]['table_info'] = 'pma_table_info';  
  45. $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';  
  46. $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';  
  47. $cfg['Servers'][$i]['column_info'] = 'pma_column_info';  
  48. $cfg['Servers'][$i]['history'] = 'pma_history';  
  49.   
  50. /*  
  51.  * End of servers configuration 
  52.  */  
  53.   
  54. /* 
  55.  * Directories for saving/loading files from server 
  56.  */  
  57. $cfg['UploadDir'] = '';  
  58. $cfg['SaveDir'] = '';  
  59.   
  60. ?>  
 
1

Minimum...

Anonymous · 2006. Szep. 23. (Szo), 20.07
$cfg['Servers'][$i]['host'] = 'localhost';
A MySql adatbázis IP-címét, ha nem azon a gépen fut a phpMyAdmin, ahol a MySql adatbázis van.

$cfg['Servers'][$i]['controluser'] = 'pmausr';
Az a usernév, akinek tejes jogot adtál a MySQL-ben arról az IP-ről is, ahonnan be akarsz lépni.

$cfg['Servers'][$i]['controlpass'] = 'pmapass';
Az előző felhasználó jelszava (MySQL-ben). Nem feltétlenül azonos a linux-user jelszóval!
2

hiba

Anonymous · 2006. Szep. 23. (Szo), 20.40
#1045 - Access denied for user: 'root@localhost' (Using password: NO)


A phpMyAdmin nem tudja olvasni a konfigurációs fájlt!
Lehet, hogy a php szintaktikai hibát talált benne, vagy nem találja a fájlt.
Használd az alsó linket a konfigurációs fájl helyreállításához, olvasd el a kapott php hibaüzeneteket. Többnyire egy idézőjel vagy egy pontosvessző hiányzik valahol.
Ha üres oldalt kapsz, minden rendben.
3

Az oka...

Anonymous · 2006. Szep. 24. (V), 12.24
A config-ban megadtál jelszót a root-hoz, de a MySQL-ben pedig még nem.

1. a configból vedd ki a jelszót;
2. így be tudsz lépni a phpMyadminba;
3. adj jelszót a root-nak (privilégiumok) - nem azonos a linux-jelszóval!;
4. ezt a jelszót állítsd be a config-ba.
4

:)

Anonymous · 2006. Szep. 24. (V), 21.34
én csak root jelszót adtam a mysqlnek. Ha kitörlöm a myadmin configjából a jelszókat akkor is hibát jelez.
Hogyan tudok jelszót adni a privilégiumokba a rootnak???