Комментарии •

  • @handsomegod7912
    @handsomegod7912 7 лет назад +85

    My mysql version is 5.7.16,
    For those who hasn't solved the problem:
    1. Stop MYSQL Server
    2. Open terminal and enter: cd /usr/local/mysql/bin/ , then enter your mac password
    3. Enter: sudo su
    4. Enter: sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables
    5. Open a new terminal tab and enter: sudo /usr/local/mysql/bin/mysql -u root
    6. Enter: UPDATE mysql.user SET authentication_string=PASSWORD('YOUR NEW MYSQL PASSWORD') WHERE User='root';
    7. Enter: FLUSH PRIVILEGES;
    8.Enter: \q
    Hope this might help you, it took me almost half a day to find the solution, and it works just fine to me.

    • @xlr32x
      @xlr32x 7 лет назад

      Thanks a lot it worked , but now sure why my updated password showed as expired. and i had to launch Workbench to set a new one. thanks a lot you saved my day

    • @handsomegod7912
      @handsomegod7912 7 лет назад

      glad to help :D

    • @handsomegod7912
      @handsomegod7912 7 лет назад

      what did error message say?

    • @handsomegod7912
      @handsomegod7912 7 лет назад

      no just enter this cd /usr/local/mysql/bin/
      and then there should be a key icon to let you enter your mac password

    • @handsomegod7912
      @handsomegod7912 7 лет назад

      did you change installation path while installing sql ?

  • @juniorpena8694
    @juniorpena8694 6 лет назад +8

    When I put in my password (1:17) it doesnt work, returns command not found

  • @fanresponsepodcast4091
    @fanresponsepodcast4091 4 года назад

    Thank you, this was a life saver!

  • @vlaslov-ti
    @vlaslov-ti 7 лет назад

    Great!!! thanks a lot for the tutorial, solved my trouble ...

  • @dcidrummer93
    @dcidrummer93 8 лет назад +9

    After safe mode I get what you got and then I open a new window and run mysql -u root and it says command not found

  • @parinpanjari4973
    @parinpanjari4973 6 лет назад

    Thank you so much...this is done completely

  • @hermanfrancoaguirrejofre8681
    @hermanfrancoaguirrejofre8681 7 лет назад +1

    Thank you very much!. But now in new version of my sql you need this: update user set authentication_string=password('1111') where user='root';

  • @tsunetasora
    @tsunetasora 2 года назад

    Thank you bro! ❤️ from China

  • @danielebeling4436
    @danielebeling4436 7 лет назад

    Note, the column is not called Password anymore but 'authentication_string.

  • @Sharkcode5551
    @Sharkcode5551 6 лет назад +1

    I don't have the password, after entering the following command "sudo mysqld_safe --skip-grant-tables;", I couldn't do anything as I don't have the password, I have just installed mysql and don't know the default password.

  • @user-vv4yz5zc8c
    @user-vv4yz5zc8c 8 лет назад +3

    на 1:34 не коннектится к сиквелу, пишет что не знает команды, что посоветуете
    mysql -u root
    -bash: mysql: command not found

  • @EPrimeify
    @EPrimeify 5 лет назад

    How am I supposed to log into MYSQL if trhe server is turned off?
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

  • @CrystalJoy77
    @CrystalJoy77 Год назад

    Hi. what if I forgot my password and it is not working?
    Any way of recovering or changing password without logging in?

  • @thechhavibansal
    @thechhavibansal 2 года назад

    thank you :)

  • @Levcandy
    @Levcandy 5 лет назад +1

    Great! Thanks, Igor! Correct String is: UPDATE mysql.user SET authentication_string=PASSWORD('password') WHERE User='root’;

    • @laurafosci
      @laurafosci 5 лет назад

      Hello Andriy, thanks for the correction. What do I have to type after I update the password? The Bash terminal just returns on screen '> but it does not notify me that the password has been successfully changed

    • @sheiksenareddy9472
      @sheiksenareddy9472 4 года назад +2

      Us showing ur SQL syntax is incorrect; near '('passoword') where User= ' root''

  • @AnshMehraa
    @AnshMehraa 7 лет назад +5

    after I type the first sudo command, it shows mysqld_safe command not found. Please help how to do this.

    • @adamh9271
      @adamh9271 6 лет назад

      Me too! Help!

    • @DirectorMimi
      @DirectorMimi 5 лет назад

      yes me too i had the same problem@@adamh9271

  • @sugardaddyyakaligbo1458
    @sugardaddyyakaligbo1458 3 года назад

    Tx bro

  • @luisexpert333
    @luisexpert333 Год назад

    Excelent video

  • @gplus46
    @gplus46 7 лет назад +6

    I'm getting a "mysqld_safe: command not found" message

    • @vineettiwari830
      @vineettiwari830 6 лет назад +3

      Try entering this instead:
      sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables

    • @alexisdvt
      @alexisdvt 6 лет назад

      That is happening because in the video, that guy has register the path of mysql's bin folder in his bash profile file, so that's why he can just call it without the folder path of the command

  • @TechEngineers
    @TechEngineers 6 лет назад

    im getting try again

  • @yasingunaydiin
    @yasingunaydiin 2 месяца назад

    BRO IS WEAR TO GOD I CANT GO INTO MYSQL -U ROOT WHY DOES THIS VIDEO EXIST???

  • @user-mw4mt2mt1r
    @user-mw4mt2mt1r 8 лет назад

    hmm.. that is what worked for me. Did you try add sudo to it?

    • @orujgadimov4420
      @orujgadimov4420 8 лет назад +2

      Hey Igor,
      can you please help me with this? I download mysql and didn't write down temporary password. I entered your code it took me to password(as you said computer password) but i enter my computer password it gives me error.
      sudo mysql_safe --skip-grant-tables
      Password:
      sudo: mysql_safe: command not found

    • @hoze1844
      @hoze1844 8 лет назад

      hey Oruj,
      Even am stuck with the same issue. Have you found a solution?

    • @orujgadimov4420
      @orujgadimov4420 8 лет назад

      nothing worked for me. But then i downloaded MAMP which has a MAMP pro version as well. However, i use the simple MAMP that comes MySQL and APAche server. so been developing my website locally using that. try it. I hope it works for you too. Sorry for late reply, man!

  • @rafailmahammadli7456
    @rafailmahammadli7456 5 лет назад +2

    sudo mysqld_safe --skip-grant-tables
    Password:
    Sorry, try again.
    when i wrote that, i get it. can anyone help me please

  • @DirectorMimi
    @DirectorMimi 5 лет назад +1

    please take down this video it doesn't solve the problem, the user would get a "command not found error"

  • @FRIENDSofCAP
    @FRIENDSofCAP 5 лет назад +1

    Dude!!! Your killing me here... WHy don't you do a video where you can read the freak'n text on the terminal screen and quit assuming that the small ass text which is pixelated on the video is imposible to read.. or at least say outloud what noone can read!