Skip to content

phpMyAdmin

phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. phpMyAdmin supports a wide range of operations


Install phpmyadmin on Gentoo Linux

emerge --ask dev-db/phpmyadmin

Configure mysql

mysql -u<user> -p<password>
create database phpmyadmin; 
use phpmyadmin;
grant all privileges on *.* TO '<user>'@'%'; 
flush privileges; 
quit;

Generate a string of random bytes

php -r 'echo bin2hex(random_bytes(32)) . PHP_EOL;'
vim /var/www/localhost/htdocs/phpMyAdmin/config.sample.inc.php
  • Now add the hash to default config: $cfg['blowfish_secret'] = '<add_hash>'