root password
Posted by: markme2012 (---.bb.sky.com)
Date: September 05, 2012 11:46PM

Hi, could anybody please help me i want to set a root password so when i click on the phpmyadmain it asks for a password to enter. I had setup once but had to format my computer and now it goes stright to phpmyadmin can any body help me please

Options: ReplyQuote
Re: root password
Posted by: RiggsFolly (---.as13285.net)
Date: September 11, 2012 01:18AM

Makes the browser ask for a valid Userid/password set when you run the phpMyAdmin link and does not need the new userid/password set to be stored in the config file.

edit [x]:\wamp\apps\phpmyadminX.Y.Z\config.inc.php
Change
$cfg['Servers'][$i]['user'] = 'root'; TO $cfg['Servers'][$i]['user'] = '';

leave the ['password'] entry as '';

Change
$cfg['Servers'][$i]['AllowNoPassword'] = true; TO $cfg['Servers'][$i]['AllowNoPassword'] = false;

Change
$cfg['Servers'][$i]['auth_type'] = 'config'; TO $cfg['Servers'][$i]['auth_type'] = 'http';


add this line to make exiting phpMyAdmin return to a clean url instead of giving an error message
$cfg['Servers'][$i]['LogoutURL'] = 'http://localhost/';

Options: ReplyQuote


Sorry, only registered users may post in this forum.