1. 程式人生 > >linux下mysql創建庫後授權

linux下mysql創建庫後授權

src ima linu mys lin http linux 圖片 分享圖片

grant all privileges on 數據庫名稱.* to 數據庫用戶名@‘授權範圍‘ identified by ‘數據庫用戶名密碼‘;

grant all privileges on wxactivity.* to mysqluser@‘%‘ identified by ‘mysqluseradmin‘;(這是例子,%代表授權全網,localhost代表授權本機)技術分享圖片

linux下mysql創建庫後授權