mysql command terminal code example
Example 1: mysql terminal
mysql --user=user_name --password db_name
# Execute a script with logs:
mysql db_name < script.sql > output.tab
Example 2: mysql command
mysqladmin -u root -p shutdown
mysqld –uroot –p Or mysql.exe -uroot -p