1// in config.sample.inc.php change this to true
2$cfg['Servers'][$i]['AllowNoPassword'] = false;
3// in config.sample.inc.php add this
4$cfg['Servers'][$i]['user'] = 'root';
5$cfg['Servers'][$i]['password'] = '123';
6// refresh
1-- DEFAULT: Username:root , Password: – (none)
2mysql> SET PASSWORD FOR root@localhost=PASSWORD('mypassword');
3mysql> GRANT ALL PRIVILEGES ON *.* TO root@localhost
4 IDENTIFIED BY 'mypassword' WITH GRANT OPTION;