Login using Social Account
     Continue with GoogleLogin using your credentials
In MySQL, each database is a collection of tables, indexes, views etc.
Creating a database:
[root@host]# mysqladmin -u root -p create mydb1
Enter password:**
OR
mysql> CREATE DATABASE mydb1;
Dropping a database:
[root@host]# mysqladmin -u root -p drop mydb1
Enter password:**
OR
mysql> DROP DATABASE mydb1;
Switching to a different database:
When a user connects to MySQL Server, user is not connected to any database by default (until and unless specified in local file .my.cnf).
User has to use use
command to switch and connect to the required database.
Example:
mysql> use retail_db;
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Answer is not availble for this assesment
Loading comments...