In this chapter of MySQL Tutorial, You will learn how to use database in MySQL. Before executing any operation on database you must need to use that database.
Syntax:
USE database_name;
Example:
ogin to your MySQL server using command line. You will get MySQL database prompt like mysql>
. Now use following command to connect mydb database.
mysql> use mydb;