2

I would like to logging into phpmyadmin without using password.

However I changed AllowNoPassword to TRUE in /etc/webapps/phpmyadmin/config.inc.php :

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

But, phpmyadmin asks me for password again!

P.S:

MySQL root user has no password.

2
  • did you reastart service after the changing of configuration – Nidal Jul 18 '14 at 18:02
  • 1
    Yes I did that. – Hamed Kamrava Jul 18 '14 at 18:02
0

first, stop apache before editing this file with this:

/etc/init.d/apache stop

then, if you are trying to log in as root, you should have the following lines in your config:

$cfg['Servers'][$i]['user'] = 'root';# add this line
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;

finally, start apache again:

/etc/init.d/apache start
1
  • I added $cfg['Servers'][$i]['user'] = 'root'; line. But doesn't work! – Hamed Kamrava Jul 18 '14 at 20:05
0

as suggested at Archlinux BBS: add /etc/webapps to open_basedir in your php.ini

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.