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 表明

相关文章:

  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2021-06-20
  • 2022-01-01
  • 2021-12-22
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-14
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
相关资源
相似解决方案