15avr.2009
Installation et configuration de phpMyAdmin

Suivez moi par la... ->
Tout le monde connait PhpMyAdmin mais bon... un petit rappel ne fait pas de mal.
Super logiciel pour gérer vos bases de données mysql et en plus facile à installer :
Le télécharger :
Deux solutions s'offre à vous.
La première est le meilleur moyen d'avoir toujours la dernière version (à faire dans son dossier apache publié DocumentRoot).
svn checkout https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/tags/STABLE/phpMyAdmin phpMyAdmin-stable
Sinon deuxieme solution classique, le télécharger a cette url : http://www.phpmyadmin.net/home_page/index.php
cd /var/www/ ou /opt/httpd/htdocs/ wget http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-3.1.3-all-languages.tar.bz2#!md5!33d703d268ca10e1443896475b09b433
Ensuite désarchivez le :
tar xvjf phpMyAdmin-3.1.3-all-languages.tar.bz2 ln -s phpMyAdmin-3.1.3-all-languages phpmyadmin
Le lien symbolique sert a simplifier la création de votre vhost si vous en faites un.
Vous avez plus qu'a renommer le fichier de configuration comme si dessous :
cp config.sample.inc.php config.inc.php vi config.inc.php
chercher blowfish_secret et mettez un password entre les guillemets.
Puis vous rendre à l'url du genre http://ip de mon serveur/phpmyadmin
Configuration avancée :
Vous avez la possibilité d'aller plus loin ! et oui !
Connectez vous à cette url : http://localhost/phpmyadmin/setup
La vous pourrez créer différentes sessions (utilisateur pouvant se connecter à tel ou tel base mais pas une autre ou encore se connecter à un autre serveur mysql etc...)
Si vous rencontrez des erreurs de ce genre :
Warning: Cannot modify header information - headers already sent by (output started at /web/www/phpMyAdmin-3.1.3-all-languages/libraries/Error.class.php:359) in /web/www/phpMyAdmin-3.1.3-all-languages/libraries/header_http.inc.php on line 22 Warning: Cannot modify header information - headers already sent by (output started at /web/www/phpMyAdmin-3.1.3-all-languages/libraries/Error.class.php:359) in /web/www/phpMyAdmin-3.1.3-all-languages/libraries/header_http.inc.php on line 23 Warning: Cannot modify header information - headers already sent by (output started at /web/www/phpMyAdmin-3.1.3-all-languages/libraries/Error.class.php:359) in /web/www/phpMyAdmin-3.1.3-all-languages/libraries/header_http.inc.php on line 24 Warning: Cannot modify header information - headers already sent by (output started at /web/www/phpMyAdmin-3.1.3-all-languages/libraries/Error.class.php:359) in /web/www/phpMyAdmin-3.1.3-all-languages/libraries/header_http.inc.php on line 25 Warning: Cannot modify header information - headers already sent by (output started at /web/www/phpMyAdmin-3.1.3-all-languages/libraries/Error.class.php:359) in /web/www/phpMyAdmin-3.1.3-all-languages/libraries/header_http.inc.php on line 28
Pour réparer ça :
Modifier votre php.ini, trouvez le à l'aide de updatedb et locate ou alors il devrait être ici : /etc/php.ini ou la : /opt/php/php.ini
Il faut rajouter votre timezone comme ceci :
Date ;Defines the default timezone used by the date functions date.timezone = Europe/Paris
Si vous créer d'autre connexions/sessions vous aurez ce genre de code a rajouter dans votre config.inc.php :
/* Server: srvtest:3309 [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'srvtest:3306'; $cfg['Servers'][$i]['host'] = '192.142.121.4'; $cfg['Servers'][$i]['port'] = 3306; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysql'; $cfg['Servers'][$i]['auth_type'] = 'http'; $cfg['Servers'][$i]['user'] = 'plop'; $cfg['Servers'][$i]['password'] = '';

Commentaires
dimanche, avril 19 2009 | 22:19
Personnellement, je préfère installer phpmyadmin à l'aide de rpmforge. Une fois rpmforge ajouté à la liste de des repos de yum, on n'a plus qu'à faire #yum install phpmyadmin.
lundi, avril 20 2009 | 23:43
c'est l'open source
plusieurs possibilités pour faire la même chose ! et plusieurs choses pour la faire même possibilité.
belle phrase non ? :p