command prompt mysql code example
Example 1: connect mysql command line
mysql --host=localhost --port=myport --user=myname --password
mysql -h localhost -u myname -p --port=myport
Example 2: mysql command
mysqladmin -u root -p shutdown
mysqld –uroot –p Or mysql.exe -uroot -p