1、使用SHOW语句找出在服务器上当前存在什么数据库
mysql>use database;
mysql>update infos set sex=”f” where name=’hyq’;
mysql> show databases;
mysql>create database bugs;
mysql> use bugs ; (按回车键出现Database changed 时说明操作成功!)
mysql> SHOW TABLES;
mysql> create table infos(name VARCHAR(20), sex CHAR(1));
mysql> describe infos;
mysql> insert into infos values (”hyq”,”M”);
mysql> load data local infile “D:/mysql.txt” into table infos;
mysql>use database;
mysql>source d:/mysql.sql;
mysql>drop TABLE infos;
mysql>delete from infos;
mysql>update infos set sex=”f” where name=’hyq’;