I downloaded the mysql dmg file and went through the wizard to run. Done. I have also started mysql server under system preferences.
The purpose of me doing this is to w
try with either of the 2 below commands
/usr/local/mysql/bin/mysql -uroot
-- OR --
/usr/local/Cellar/mysql/<version>/bin/mysql -uroot
If you have your MySQL server up and running, then you just need a client to connect to it and start practicing. One is the mysql-client
, which is a command-line tool, or you can use phpMyAdmin
, which is a web-based tool.
This command works for me:
Command:
mysql --host=localhost -uroot -proot
This command works for me:
./mysql -u root -p
(PS: I'm working on mac through terminal)