mysql的一些小命令
查看mysql数据库安装版本信息
mysql --version
修改mysql的root密码为123
先登录mysql
set password for 用户名@localhost = password('新密');
创表
use 表名 create table wg (id wg,name char(10));
insert into wg values (1,'zz'),(2,'zzz');
删除数据
delete from 表名 where 判段条件
查看mysql数据库安装版本信息
mysql --version
修改mysql的root密码为123
先登录mysql
set password for 用户名@localhost = password('新密');
创表
use 表名 create table wg (id wg,name char(10));
insert into wg values (1,'zz'),(2,'zzz');
删除数据
delete from 表名 where 判段条件