# Go to the root of your project
cd /path/to/your/project/root
# Enter vagrant
vagrant ssh
# Access MySQL
mysql
# or connect to MySQL as the homestead user (password is: secret)
mysql -u homestead -p
# Execute any mysql-related commands (see the below examples)..
# Show all existing databases
show databases;
# Create a new database
CREATE DATABASE database_name;
# Delete an existing database
DROP DATABASE database_name;
# Select a database to deal with
USE database_name;
# Show all tables of the current database
SHOW tables;
# To exit from MySQL execute the next command..
exit
# To exit from vagrant execute the next command..
exit