bestlong 怕失憶論壇

 

 

搜索
bestlong 怕失憶論壇 論壇 Database - 資料庫 MySQL MySQL 之認證與授權篇
查看: 4693|回復: 0
go

MySQL 之認證與授權篇

Rank: 9Rank: 9Rank: 9

發表於 2006-9-26 15:22 |顯示全部帖子
設定密碼:
  1. mysql> set password for root@localhost = password('XXXX');
複製代碼


建立連線帳號、權限:
  1. mysql> GRANT ALL privileges ON *.* TO 'root'@'localhost' IDENTIFIED BY 'XXXX' ;
複製代碼


要讓權限修改立即生效:
  1. mysql> FLUSH PRIVILEGES ;
複製代碼
我是雪龍
http://blog.bestlong.idv.tw
http://www.bestlong.idv.tw

Archiver|怕失憶論壇

GMT+8, 2024-9-11 14:14 , Processed in 0.017516 second(s), 11 queries .

Powered by Discuz! X1.5

© 2001-2010 Comsenz Inc.