To enter into a mysql database
mysql -u root -p
To view the databases-
>show databases;
To view the tables-
>show tables;
To use a specific database
>use <database>;
To drop a database
>drop <database>;
To reset mysql user password including root password
>Update User set Password=md5(‘test’) where Name=oracle;
>SET PASSWORD FOR root@localhost=PASSWORD(‘thyht’),
To view information about a specific user
>select * from users where Name=’root’;
