h00j Asked: 2012-05-27 04:11:50 +0800 CST2012-05-27 04:11:50 +0800 CST 2012-05-27 04:11:50 +0800 CST MySQL Should each Database be managed by a different user? 772 Should I have a different MySQL user for each database so that if someone gets access to a mysql user they cannot effect the others? If so how would i go about doing this? mysql debian 1 Answers Voted Best Answer Tom 2012-05-27T04:18:54+08:002012-05-27T04:18:54+08:00 Its a principle called "separation of privileges", which reduces the impact of an intrusion. you can do something like GRANT ALL PRIVILEGES ON mydatabase.* TO 'myuser'@'127.0.0.1' IDENTIFIED BY 'somepassword'; FLUSH PRIVILEGES; or you can provide some subset of privileges using a command similar to this; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON mydatabase.* TO 'myuser'@'localhost'; The privileges supported by MySQL (5.1) are documented here; http://dev.mysql.com/doc/refman/5.1/en/grant.html#grant-privileges
Its a principle called "separation of privileges", which reduces the impact of an intrusion.
you can do something like
or you can provide some subset of privileges using a command similar to this;
The privileges supported by MySQL (5.1) are documented here;
http://dev.mysql.com/doc/refman/5.1/en/grant.html#grant-privileges