mysql5.7 用戶表操做

1.建立一個用戶   CREATE USER username@localhost IDENTIFIED BY '123456';   ( username 表示用戶名,localhost爲是來源的主機,%表示全部主機均可以訪問) 2.賦予權限   grant all privileges on dbname.* to username@'%'   (dbname.*   賦予dbname 這個這
相關文章
相關標籤/搜索