MySQL Tutorial
Introduction Installation of MySQL Getting MySQL server information RDBMS Concepts Data Definition Language Data types Managing Databases Managing Tables Managing Views Inserting records in a table Updating records in a table Deleting records from a table Retrieving Records Data Control Language Variables in MySQL Procedures in MySQL Built-In functions in MySQL User Defined functions in MySQL Triggers in MySQL Cursors in MySQL Transaction control Event scheduler Tuning MySQL Server Performance Managing users Importing and Exporting data Database Testing Workbench PHPMyAdminCreating db in MySQL
We would be creating a database (Schema) with name “DEALS” To create a new database, you need to execute below command.
CREATE DATABASE DEALS;
To select the database, you have to use below command.
USE DEALS;
To create and select the database in a single command, you can use below syntax.
CREATE DATABASE DEALS;USE DEALS;
To delete the database, you have to use below command.
DROP DATABASE IF EXISTS DEALS;
There is no easy command to rename the database. Also depending upon the MySQL engine you are using, renaming process varies.Web development and Automation testing
solutions delivered!!