[JavaEE] Ubuntu mysql Basic Operation

Download Ubuntu mysql then some basic operations

 

# Landing, -u is the meaning of the login name, -p is the password 
sudo -u root -p MySQL


# Access to those databases
Show Databases;

# which database
use testdatabases;

# see the table in this database
Show talbes;

# create table
create test_table Table (
  name VARCHAR (20 is),
  year VARCHAR (20 is),
  Primary Key (name)
);





 

Guess you like

Origin www.cnblogs.com/zoey686/p/11241713.html