1. Install mysql
yum install mysql -y
yum install mysql-server -y
2.Start mysql
/etc/init.d/mysqld start
3.Config user and passwd
mysqladmin -u root password ****
4.Login mysql
mysql -u root -p****
5.Commands
mysql> show database;
mysql> use hive;
mysql> show tables;
mysql> select * from TBLS; --you can show what tables in hive;