MySQL Interview Questions

Questions : 1 how to do login in mysql with unix shell
Answers :1
By below method if password is pass and user name is root
# [mysql dir]/bin/mysql -h hostname -u root -p pass

Questions : 2 how you will Create a database on the mysql server with unix shell
Answers : 2
mysql> create database databasename;

Questions : 3 how to list or view all databases from the mysql …