start mysql on terminal code example
Example 1: start mysql server linux terminal
sudo /etc/init.d/mysql start
or
systemctl start mysql.service
Example 2: mysql terminal
mysql --user=user_name --password db_name
# Execute a script with logs:
mysql db_name < script.sql > output.tab