Results 1 to 7 of 7

Thread: How get local mysql password?

  1. #1
    Join Date
    2013-Jun
    Posts
    2

    How get local mysql password?

    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!

  2. #2
    Join Date
    2013-Mar
    Posts
    17

  3. #3
    Join Date
    2013-Jun
    Posts
    2
    Thanks a lot!

  4. #4
    Join Date
    2013-Jun
    Location
    Italy
    Posts
    4
    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

  5. #5
    Join Date
    2013-Mar
    Posts
    17
    Quote Originally Posted by acme View Post
    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.

  6. #6
    Join Date
    2013-Dec
    Location
    greece
    Posts
    14
    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.
    Code:
     mkdir -p /var/run/mysqld
    2.
    Code:
     chown mysql:mysql /var/run/mysqld

  7. #7
    Join Date
    2013-Jul
    Posts
    844
    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

Similar Threads

  1. Replies: 1
    Last Post: 2022-01-14, 06:20
  2. How to fix messed up mysql
    By shajal16 in forum General Archive
    Replies: 3
    Last Post: 2018-05-16, 15:41
  3. Replies: 5
    Last Post: 2017-08-23, 06:57
  4. Masscan UI // Webpage ~ php5 php5-mysql mysql-server
    By Ceruleancerise in forum General Archive
    Replies: 2
    Last Post: 2017-07-02, 13:16
  5. mysql connecter for gcc
    By Lancha in forum General Archive
    Replies: 0
    Last Post: 2013-05-01, 12:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •