A phpmyadmin beállítása az alap konfigurációs fájlbók kiindulva
Ez itt egy alap cfg. Mit írjak át h mûködjön nálam is?
■ - <?php
- /* $Id: config.sample.inc.php,v 2.1.2.2 2006/08/28 08:14:14 nijel Exp $ */
- // vim: expandtab sw=4 ts=4 sts=4:
- /**
- * phpMyAdmin sample configuration, you can use it as base for
- * manual configuration. For easier setup you can use scripts/setup.php
- *
- * All directives are explained in Documentation.html and on phpMyAdmin
- * wiki <http://wiki.cihar.com>.
- */
- /*
- * This is needed for cookie based authentication to encrypt password in
- * cookie
- */
- $cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
- /*
- * Servers configuration
- */
- $i = 0;
- /*
- * First server
- */
- $i++;
- /* Authentication type */
- $cfg['Servers'][$i]['auth_type'] = 'cookie';
- /* Server parameters */
- $cfg['Servers'][$i]['host'] = 'localhost';
- $cfg['Servers'][$i]['connect_type'] = 'tcp';
- $cfg['Servers'][$i]['compress'] = false;
- /* Select mysqli if your server has it */
- $cfg['Servers'][$i]['extension'] = 'mysql';
- /* User for advanced features */
- $cfg['Servers'][$i]['controluser'] = 'pmausr';
- $cfg['Servers'][$i]['controlpass'] = 'pmapass';
- /* Advanced phpMyAdmin features */
- $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
- $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
- $cfg['Servers'][$i]['relation'] = 'pma_relation';
- $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
- $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
- $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
- $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
- $cfg['Servers'][$i]['history'] = 'pma_history';
- /*
- * End of servers configuration
- */
- /*
- * Directories for saving/loading files from server
- */
- $cfg['UploadDir'] = '';
- $cfg['SaveDir'] = '';
- ?>
Minimum...
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!
hiba
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.
Az oka...
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.
:)
Hogyan tudok jelszót adni a privilégiumokba a rootnak???