mysqladmin -uroot -password ab12

再次修改

mysqladmin -uroot -p ab12 password ad12b

管理权限设定


在任何主机上都可以对数据库进行操作

grant select,insert,update,delete on *.* to test2@”%” Indentified by “abc”;

grant select,insert,update,delete on mydb.* to test2@localhost Indentified by”abc”;

grant select ,insert,update,delete to mydb.* to test2@localhost Indentified by ““;


mysql数据库操作

show databaes;

show tables;

显示数据表的结构

decribe 表明

create table 表名

drop database 数据库名

显示表中的记录

select * from 表明
posted on 2005-03-20 17:13  dayouluo(.Net学生)  阅读(545)  评论(0)    收藏  举报