grant select,insert,update,delete on mydb.* to test2@localhost identified by "abc";
【程序编程相关:需求—— 指导我前进】 【推荐阅读:uClinux在S3C4510上的启动分】如果你不想test2有密码,可以再打一个命令将密码消掉. 【扩展信息:利用VSFTP配置ftp服务器】 grant select,insert,update,delete on mydb.* to test2@localhost identified by "";[root@proxy bin]# ./mysql -uroot -pmysql
welcome to the mysql monitor. commands end with ; or \g. your mysql connection id is 23 to server version: 4.0.24-standard type help; or \h for help. type \c to clear the buffer. mysql>1.显示数据库列表.
show databases; 刚开始时才两个数据库:mysql与test.mysql库很重要它里面有mysql的系统信息,我们改密码与新增用户,实际上就是用这个库进行操作. 2.显示库中的数据表: show tables; 3.显示数据表的结构: describe 表名; 4.建库: create database 库名; 5.建表: 库名; create table 表名 (字段设定列表); 6.删库与删表: drop database 库名; drop table 表名; 7.将表中记录清空: delete from 表名; 8.显示表中的记录: select * from 表名;