phpMyAdmin est un site web en php qui sert a administre des bases de donnees (mysql notamment). Pour l'installer, il faut desarchiver le tout dans un repertoire phpMyAdmin que l'on mettra dans son site web. Creer un repertoire config vide dans phpmyadmin. Apres, il faudra l'initialiser avec http://monsiteweb/phpmyadmin/scripts/setup.php Deplacer le fichier config.inc.php de phpmyadmin/config vers phpmyadmin et mettez des droits en lecture seule. Par la suite, vous pouvez utiliser phpmyadmin via: http://monsiteweb/phpmyadmin/ Changer dans config.inc.php: /* Authentication type and info */ $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'rootpassword'; $cfg['Servers'][$i]['AllowNoPasswordRoot'] = false; Acces Internet pour tous: Modifier dans php.ini (apache) <Directory "${path}/phpmyadmin"> Options FollowSymLinks Indexes AllowOverride None Order deny,allow allow from 127.0.0.1 deny from all </Directory> # On autorise le repertoire modules/phpmyadmin349x120306091039 <Directory "${path}/modules/phpmyadmin349x120306091039/"> Options FollowSymLinks Indexes AllowOverride None Order deny,allow # allow from 127.0.0.1 # deny from all allow from all </Directory> Puis dans config.inc.php a la racine de phpmyadmin: $cfg['Servers'][$i]['auth_type'] = 'http'; /* Server parameters */ $cfg['Servers'][$i]['connect_type'] = 'cookie'; $cfg['Servers'][$i]['user'] = 'rootOuUnAutreLogin'; $cfg['Servers'][$i]['password'] = 'votrepasswordpourphpmyadmin';
PhpMyAdmin - Access denied for user root’@localhost
Cette astuce est destinée à ceux qui ont un problème d’ouverture de PhpMyAdmin (par exemple avec WAMP Server ou EasyPHP) avec l'erreur suivante :
#1045- Access denied for user ‘root’@localhost’
Il est nécessaire d’effectuer quelques manipulations après l’installation :
mysql -u root
SET PASSWORD FOR root@localhost=PASSWORD(' monmotdepasse ');
mysql> GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY ' monmotdepasse ' WITH GRANT OPTION;
mysql -u root -p mysql
password: monmotdepasse
; Default host for mysql_connect() (doesn't apply in safe mode). mysqli.default_host ='localhost'
; Default user for mysql_connect() (doesn't apply in safe mode). mysqli.default_user ='root'
; Default password for mysqli_connect() (doesn't apply in safe mode). ; Note that this is generally a *bad* idea to store passwords in this file. ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") ; and reveal this password! And of course, any users with read access to this ; file will be able to reveal the password as well. mysqli.default_pw ='monmotdepasse'
Il ne reste plus qu’à effectuer l’implantation des noms de host et de compte user par défaut avec le mot de passe dans le fichier ‘config.inc.php’ aux lignes suivantes:
$cfg['Servers'][$i]['host']= 'localhost';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password']= 'monmotdepasse';
Après n’avoir pu ouvrir correctement la page localhost, vous allez avoir l’agréable surprise de pouvoir vous connecter à PhpMyAdmin sans l’erreur #1045- Access denied for user ‘root’@localhost’
Merci à jujuzilla sur le forum pour cette astuce !
ACCES DISTANT a phpmyadmin
Dans config.inc.php du repertoire phpmyadmin passer en $cfg['Servers'][$i]['auth_type'] = 'http';
Dans easyphp httpd.conf
Ajouter:
<Directory "M:/EasyPHP-DevServer-14.1VC11/modules/phpmyadmin414x150331204734"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Allow,Deny Allow from all </Directory>
m:\wamp\bin\mysql\mysql_…\bin\mysql.exe -u root -p RfsChampionsLeague_db select host, user, password from mysql.user; desc mysql.user; show table status; GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION SHOW GRANTS; SHOW GRANTS FOR CURRENT_USER; SHOW GRANTS FOR CURRENT_USER(); SHOW GRANTS FOR 'root'@'localhost'; mysql –user=root mysql CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass'; GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%' WITH GRANT OPTION;
Changer le mot de passe root
cd /d M:\EasyPHP-Devserver-17\eds-binaries\dbserver\mysql5717x86x180728220448\bin mysql mysql -u root update user set password=PASSWORD('foo…') WHERE user='root';
Une fois installe! Demarrer les services un par un → apache →php puis →mysql Chnager dans phpmyadmin.conf <Directory "m:/wamp/apps/phpmyadmin3.3.9/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Allow,Deny Allow from all </Directory> Redemarrer le service apache
ajaxplorer → mieux que phpFileNavigator Pas de base de donnees admin/ snail Ajouter des repos avec le charset ISO8859-1 pour la france!
unzip it to www! In the folder data/conf/ there are a file named "default-example.inc.php" that should be renamed to default.inc.php before to continue with the installation. Dans /data/con/default.inc.php changer: 'descagar' de false a true Modifier dans php.ini: upload_max_filesize a 20G