1. Home
  2. SQL
  3. MySQL Tutorial
  4. MySQL – Select Database

MySQL – Select Database

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;
Tags ,
Was this article helpful to you? Yes 4 No
Advertisement