mysql installation - sandeepvalapi/DevOps GitHub Wiki
Install MYSQL in Mac OSX
- Download mysql from below link Download here
- Extract and double click on the dmg file
- Once extracted, follow the steps and in the last step you will be show with a popup which has one time root password in it.
- Make note of one time password. Thats all, installation is completed.
- Update environment variables by navigating to ~/.bash_profile and add below line
export PATH=$PATH:/usr/local/mysql/bin - Now after installation, open Terminal and type
mysql -u root -p - Now enter the copied one time password
- Now Change your Master root password to any other by following below steps https://www.variphy.com/kb/mac-os-x-reset-mysql-root-password
Note: As per Mysql 5.7 they changed password column to authentication_string. Please consider this when you try to update your password https://stackoverflow.com/questions/30692812/mysql-user-db-does-not-have-password-columns-installing-mysql-on-osx