mac book view mysql version

1. Open the terminal
Enter mysql -uroot -p
If -bash: mysql: command not found appears, try the following method
Mac terminal input mysql -u root -p error: -bash: mysql: command not found
Enter: alias mysql=/usr/local/mysql/bin/mysql
Repeat mysql -u root -p and enter the mysql password

Enter the terminal under Mac and check the version number of mysql through the command line, as shown below:
mysql -uroot -p
Enter mysql password
Enter the mysql interactive environment

Leave a Reply

Your email address will not be published. Required fields are marked *