grant all privileges on [database].* to 'database'@'localhost' identified by 'password'

 

 

例如:

grant all privileges on mytest.* to 'mytest'@'localhost' identified by '123456'

相关文章: