mysql connect command
snippet in sql

mysql cmd command to run

user8583

mysql.exe –uroot –p

login to database mysql terminal

user5206

mysql -u USERNAME -p

mysql connect command

user1272

mysql --host=localhost --user=myname --password mydb
mysql -h localhost -u myname -p mydb

login to database mysql terminal

user3919

show databases;