Mysql Console Password
Posted by: fergallad98 (---.b-ras2.lmk.limerick.eircom.net)
Date: February 13, 2010 11:34PM

I have my password set for the mysql console any then when i enter my password into it, the console just closes down

any ideas on why??

thanks in advance smiling smiley

Options: ReplyQuote
Re: Mysql Console Password
Posted by: fergallad98 (---.b-ras2.lmk.limerick.eircom.net)
Date: February 13, 2010 11:36PM

i took away my password and then when i hit enter it works fine
does this mean i cant use a password?

Options: ReplyQuote
Re: Mysql Console Password
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: February 14, 2010 11:48AM

By default there is no password to mysql root account. You can setup a password if you so wish

Options: ReplyQuote
Re: Mysql Console Password
Posted by: fergallad98 (---.b-ras2.lmk.limerick.eircom.net)
Date: February 14, 2010 05:12PM

i did set a password in config.inc.php , it still didnt work, then i noticed that underneath this is a line:
$cfg['Servers'][$i]['AllowNoPassword'] = true;

i changed it to false but it still didnt work, the only way i can get in is to have no password but that can be insecure as i am told


any ideas on it now??

Options: ReplyQuote
Re: Mysql Console Password
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: February 14, 2010 07:28PM

you need to add the password first in mysql using phpmyadmin.. which will then lock you out of phpmyadmin

and then add that password to the config file so that phpmyadmin can log into mysql


in phpmyadmin click privledges > click the hand beside user " root localhost"

then scroll down just a tiny bit and add in ur password.

press go

now if you try login again it will fail

so add your password to the config file..

Once it works ok, you can totally delete that allownorootpassword=true line

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Mysql Console Password
Posted by: fergallad98 (---.b-ras2.lmk.limerick.eircom.net)
Date: February 14, 2010 08:58PM

i did everything you said but still the same story
how bad is it to have no password?

Options: ReplyQuote
Re: Mysql Console Password
Posted by: fergallad98 (---.b-ras2.lmk.limerick.eircom.net)
Date: February 14, 2010 09:12PM

yes got it working, i did everything you said but the problem the last time was a clicked the go button at the bottom of the page not at the password part

thanks very much Steven Martin

Options: ReplyQuote
Re: Mysql Console Password
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: February 14, 2010 11:31PM

no problem. your welcome

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.