[MySQL]: Note
SQL
09/18/2019
Command line for MySQL
BASH
mysql-ctl start # Start mySQL servermysql-ctl stop # Stop mySQL servermysql-ctl cli # Restart mySQl server & open up CommandLineInterface
# Alternative (alias)sudo service mysql start # Start mysql service # Same as mysql-ctl startsudo service mysql stopmysql # Start mySql # Same as mysql-ctl cli
In MySQL shell
BASH
mysql> exit # Exit out of mySQL shellmysql> ctrl + C # ALso exitmysql> source <path>/fileName.sql # Run sql file # absolute path or path from where you start 'mysql' command