grant all privileges on [database].* to 'database'@'localhost' identified by 'password'
例如:
grant all privileges on mytest.* to 'mytest'@'localhost' identified by '123456'
grant all privileges on [database].* to 'database'@'localhost' identified by 'password'
例如:
grant all privileges on mytest.* to 'mytest'@'localhost' identified by '123456'
转载于:https://www.cnblogs.com/huanhang/p/7350750.html