MySQL

来自Gea-Suan Lin's Wiki
跳转至: 导航搜索

MySQL是一套資料庫軟體。

常用指令

開帳號順便開權限:

GRANT ALL ON trac.* TO `trac`@`localhost` IDENTIFIED BY 'password_here';
GRANT ALL ON trac.* TO `trac`@`%` IDENTIFIED BY 'password_here';

刪除(同時也會移除權限):

DROP USER 'trac'@'localhost';

只移除權限(單一資料庫或是全部):

REVOKE ALL ON trac.* FROM 'trac'@'localhost';
REVOKE ALL FROM 'trac'@'localhost';

改密碼:

SET PASSWORD = 'newPassword';

相關連結

外部連結