Create a database using Navicate

--- --- restore content begins

  Double-click Navicat tool, right mysql80:


 

 

 

  Click on the command-line interface:

 

   We are now beginning to create the database, create CREATE already said it in the first chapter, look down Ha;

  CREATE DATABASE command SQL language is used to create a database; the most important is the semicolon got to be entered in the English state! ! !


 

   In order to verify whether the database system to create a name for the database itcast, you need to look at the database in MySQL, view the database SQL statement is as follows:

  SHOW DATABASES;

  It will be shown below this interface:

 

   After creating the database, in order to view a database of information has been created by SHOW CREATE DATABASE itcase; see the statement; appear will be the following:



 

 

  We have created a database, then how can we modify the database?

  In a statement, we will see on the back of a itcase gbk, we are going to use ALTER DATABASE itcase DEFAULT CHARACTER SET utf8; will appear as shown below:

 

   From the above chart you know you will see gbk into a utf8! Again we see the modified data;

  

 

   The above is how we create a database to determine if the database is established, and modify the database, then how do we delete the database? Then we have to use this statement the DROP

 

  We still have to see whether the time has been removed.




 

   So we basically created a series of data tables on the well.

  We come back to do a data table (provided that this database should exist oh)!


 

 

  The next most important! ! ! !

 

   Finally, still have to check Oh!

  

 

   Well, this is to check finished! So this form will establish complete it!

 

Guess you like

Origin www.cnblogs.com/zww0417/p/11706417.html