MySQL management password modification and administration

xiaoxiao2021-03-06  118

MySQLADMIN -UROOT -PASSWORD AB12

Re-modify

MySQLADMIN -UROOT -P AB12 Password AD12B

Management permission setting

Databases can be operated on any host

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 database operation

SHOW DATABAES;

Show table;

Display data table structure

Decribe indicates

CREATE TABLE Name

DROP DATABASE Database Name

Display record in the table

SELECT * from FROM indicates

转载请注明原文地址:https://www.9cbs.com/read-102297.html

New Post(0)