PDA

View Full Version : How get local mysql password?



vlaszlo
2013-06-22, 16:48
I started mysql-server, and i not know the default password.
I have read on net the default username is "root", and password is "toor".
When I have installed the system, set my password, after set it to mysql, but no working with this password as well.
I'd like to ask, how can i login to mysql?

Thanks!

system_crash
2013-06-23, 08:51
http://www.cyberciti.biz/tips/recover-mysql-root-password.html
;)

vlaszlo
2013-06-23, 10:33
Thanks a lot!

acme
2013-06-23, 13:49
In kali linux mysql has no password by default, so you need to set the password for the first time. You can use mysql workbench to have a gui. MySQL Workbench is present in the repository

system_crash
2013-06-23, 20:31
In kali linux mysql has no password by default, so you need to set the password for the first time. You can use mysql workbench to have a gui. MySQL Workbench is present in the repository

Then just connect to your mysql server without password and set your new password.

prompt_32
2013-12-29, 12:24
All the above worked ok, for me too, thanks !,
but after a fresh installation from ' kali 1.05 iso ' ,
you need to do theese steps before follow the above proccess :
1.
mkdir -p /var/run/mysqld
2.
chown mysql:mysql /var/run/mysqld

mmusket33
2014-01-01, 20:27
Try running

/etc/init.d/mysql [Enter]

You should get

mysql>

ie mysql prompt

You can enter commands without password. If you do get a password just type [Enter] and see what happens