here is a very bare minimum development ready phpmyadmin config.inc.php with auto login:
<?php
declare(strict_types=1);
$i = 1;
// Required secret for cookie encryption
$cfg['blowfish_secret'] = '9/kmLZqhRxDcJWrqr4XPs/WNvr1olXFkMIwihQKa44s=';
// Single server auto-login
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'dev';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
// Basic defaults
$cfg['ServerDefault'] = 1;
$cfg['DefaultLang'] = 'en';
just make sure you create a passwordless user with all privileges in your server:
CREATE USER 'dev'@'localhost' IDENTIFIED BY '';
GRANT ALL PRIVILEGES ON *.* TO 'dev'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
have fun 😀
Leave a Reply