MySQL create databases script

CREATE DATABASE mydb_development;
CREATE DATABASE mydb_test;
CREATE DATABASE mydb_production;
GRANT all ON mydb_development.* TO 'my_username'@'localhost';
GRANT all ON mydb_test.* TO 'my_username'@'localhost';
GRANT all ON mydb_production.* TO 'my_username'@'localhost' identified BY 'my_password';

Download this snippet

Make a SQL script that creates 3 databases and assigns all rights to my_username.

Twitter Twitter

1 Comments to “ MySQL create databases script”

  1. Anonymous  on Mar 14, 2010

    p39GWo <a href="http://roaxogjdhsku.com/">roaxogjdhsku</a>, [url=http://rmbcrgkylxzy.com/]rmbcrgkylxzy[/url], [link=http://ytrumytjbtcj.com/]ytrumytjbtcj[/link], http://akdqcvlpocph.com/

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>