mysql怎么創(chuàng)建數(shù)據(jù)庫 mysql如何創(chuàng)建新用戶,例如創(chuàng)建一個sss密碼為123的用戶?
mysql如何創(chuàng)建新用戶,例如創(chuàng)建一個sss密碼為123的用戶?1.1登錄MySQL:@>mysql-uroot-p@>密碼1.2創(chuàng)建用戶:MySQL>insertintomysql.us
mysql如何創(chuàng)建新用戶,例如創(chuàng)建一個sss密碼為123的用戶?
1.1登錄MySQL:@>mysql-uroot-p@>密碼1.2創(chuàng)建用戶:MySQL>insertintomysql.user用戶(host,user,password)值(“l(fā)ocalhost”,“test”,password(“1234”),這樣就創(chuàng)建了一個名為:test and password:1234的用戶。
mysql如何創(chuàng)建新用戶,例如創(chuàng)建一個sss密碼為123的用戶?
MySQL add user方法創(chuàng)建數(shù)據(jù)庫gamesp創(chuàng)建數(shù)據(jù)庫gamesp add user grant all on數(shù)據(jù)庫名稱newuser@localhost由“password”標識添加一個名為username的遠程用戶,密碼為passwordgrant all privileges on*。*對用戶名@“%”由“Password”標識的說明:(1)授予所有權(quán)限;(2)gamesp中的所有表。*數(shù)據(jù)庫gamesp;(3)newuser用戶名;(4)本地計算機上的@localhost MySQL server;(5)用“password”標識設(shè)置密碼