How to Set Up MySQL on MacOS

Поделиться
HTML-код
  • Опубликовано: 16 окт 2024
  • Continuation of setting up a MAMP stack on your Mac.
    To add the path to the .bash_profile
    export PATH=$PATH:/usr/local/mysql/bin
    To Login to the Terminal:
    mysql -u root -p
    To update the root password:
    ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
    Buy Me Coffee
    buymeacoffee.c...

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

  • @ViisSarvik
    @ViisSarvik 7 лет назад +7

    Correct bash line is:
    export PATH=${PATH}:/usr/local/mysql/bin/
    The one given in the description did not work for me.

  • @meghaagarwal9352
    @meghaagarwal9352 6 лет назад +2

    When I installed the server, I wasn't given a password. I tried removing the server and re-installing and it still didn't happen. What to do?

  • @Ali-uh5th
    @Ali-uh5th 6 лет назад +1

    Instead of temporary password, mysql just ask me to enter the strong passord. And eventually it doesn't the same as your instruction. How should i do?

  • @KT-ut9zg
    @KT-ut9zg 7 лет назад

    Might be 'just another dang how to' channel, but it got me up and running. Clear and concise, thanks. By the way, very small mistake on the vid where you are setting the PATH variable, you say "semi-colon" instead of "colon" :-)

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

    Hey i changed the host password but again whenever i try to login it show error, not connecting .pls help. I need to reset password.

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

    Hi, I saved the file .bash_profile with the path but when I say mysql in the terminal it says bash command not found

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

      Hey there, first check mysql is running in system prefs.

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

      yes it is running

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

      Make sure the export path syntax is correct. There is a colon on export PATH = $PATH:/usr/local/mysql/bin

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

      Yes I did as u said. but it says bash command not found

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

      go to the terminal and go to /usr/local/mysql/bin and type mysql, tell me if that works. if it fails then something went wrong with the installation. If it works. paste in here your .bash_profile settings.

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

    Thank you! Worked for me.

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

    Hi, I have latest MacOS Sierra 10.12.5 and MySQL version 5.7.19. All installation is done perfectly but when I click on start server, it asks for password and after I write in the password the window just fluctuates and nothing more happens and server remains in stopped state.

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

      Hard to tell. Try checking the error logs to see what is happening. On the terminal type cat /var/log/apache/error_log

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

    Here is your god damn LIKE!

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

    THANK YOU!!
    helped me very well

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

    easy fizzy right

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

    how to put that temporary password in terminal.

  • @beatcent3336
    @beatcent3336 7 лет назад +9

    In MacOS SIERRA, just go to dir:
    /usr/local/mysql/bin/
    then just run: ./mysql -u root -p
    Remaining is in the video. Thank you! It works!

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

      Great!! I was not able to connect with MYSQL with only using ./mysql - u root, then searched for a video and found your comment. It helped.

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

    Thank you for the video bro!
    But when I install Mysql the temporary password is not coming up, it just saying "ting" like I got a massage. please help me to solve the problem! Thank you in advance!