mysql实用命令 (1).从第0行开始取,取3行select * from student limit 0,3 (2).查看当前数据库编码 show variables like 'character_set_database'; (3).修改数据库编码(xxx是数据库名) alter database xxx CHARACTER SET gb2312; (4).创建用户名和密码(新版本5.7 Mysql) CREATE USER '用户名'@'localhost' IDENTIFIED BY