brew install mysql and use code example Example: homebrew install mysql RUN THIS COMMAND : mysql_secure_installation