< MySQL
Content added Content deleted
imported>mutante mNo edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
Give permissions to the user "fnord" on all tables of the db "grudnuk": |
Give permissions to the user "fnord" on all tables of the db "grudnuk": |
||
<pre> |
<pre> |
||
GRANT SELECT, INSERT,UPDATE,DELETE,CREATE,DROP |
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP |
||
ON grudnuk.* TO fnord; |
ON grudnuk.* TO fnord; |
||
</pre> |
</pre> |
Revision as of 18:35, 9 July 2005
Dont use mysql-root because of lazyness ;)
Create a new user "fnord" with password "foobar".:
INSERT INTO mysql.user (user, host, password) VALUES ('fnord', 'localhost', PASSWORD('foobar'));
Create a new database "grudnuk":
CREATE DATABASE grudnuk;
Give permissions to the user "fnord" on all tables of the db "grudnuk":
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP ON grudnuk.* TO fnord;
Dont forget to update permissions:
FLUSH PRIVILEGES;