Start the MySQL service (from Task Manager)
sudo service mysql start
Go to Settings > Mysql > Start MySQL Service
or (if installed via Homebrew)
mysqld.service start
Without root password -
mysql -u root
mysql>
With root password -
mysql -u root -p
Enter Password:
mysql>
CREATE DATABASE mytestdb;
CREATE USER myuser IDENTIFIED BY 'mypass';
USE mytestdb;
GRANT ALL PRIVILEGES ON mytestdb.* TO myuser;
FLUSH PRIVILEGES;
mysql -u myuser -p
Enter Password: (enter 'mypass' here)
mysql>