mysql on terminal code example
Example 1: how to run mysql on terminal mac
sudo sh -c 'echo /usr/local/mysql/bin > /etc/paths.d/mysql'
Example 2: mysql terminal
mysql --user=user_name --password db_name
# Execute a script with logs:
mysql db_name < script.sql > output.tab