MySQL安全管理_MySQL
來源:懂視網(wǎng)
責(zé)編:小采
時(shí)間:2020-11-09 19:25:48
MySQL安全管理_MySQL
MySQL安全管理_MySQL:1、創(chuàng)建用戶 create user linda identified by 'linda' 2、查看權(quán)限 show grants for linda 3、授予權(quán)限 grant select on demo.* to linda 4、更改密碼 set password for linda = Password('newbab
導(dǎo)讀MySQL安全管理_MySQL:1、創(chuàng)建用戶 create user linda identified by 'linda' 2、查看權(quán)限 show grants for linda 3、授予權(quán)限 grant select on demo.* to linda 4、更改密碼 set password for linda = Password('newbab

1、創(chuàng)建用戶
create user linda identified by 'linda'
2、查看權(quán)限
show grants for linda
3、授予權(quán)限
grant select on demo.* to linda
4、更改密碼
set password for linda = Password('newbaby');
5、dump數(shù)據(jù)
mysqldump -uusername dataname -h host -P port -ppassword >db.sql
導(dǎo)出表結(jié)構(gòu)
mysqldump -u root -p -d --add-drop-table db>d:/db.sql
-d 沒有數(shù)據(jù) --add-drop-table 在每個(gè)create語句之前增加一個(gè)drop table
導(dǎo)入數(shù)據(jù)
登錄后,source d:/db.sql
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
MySQL安全管理_MySQL
MySQL安全管理_MySQL:1、創(chuàng)建用戶 create user linda identified by 'linda' 2、查看權(quán)限 show grants for linda 3、授予權(quán)限 grant select on demo.* to linda 4、更改密碼 set password for linda = Password('newbab