configuration - CakePHP: What to use for MySQL users & permissions? -
i'm getting ready deploy cakephp site first time. i'm using site mysql database, , i'm still little unclear proper use of users & permissions mysql -- i'm talking "login" , "password" fields appear in app/config/database.php. during development, i've been using 'root' , 'root' -- i'm pretty sure can't idea. question is: best practices assigning mysql user cakephp app, , mysql privileges should assigned it?
the least amount of permissions possible, insert, select, update, , delete on database in question, not create/drop privileges. best practice: make password hard guess. you're hardcoding anyways, there's no reason not make terrible monster of password. also, ensure can accessed localhost or ip.
grant insert, select, delete, update on mydb.* 'myuser'@'localhost' identified 'monsterpassword'
Comments
Post a Comment