All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xample.brooklyn-example-simple-web-cluster.0.5.0-rc.2.source-code.visitors-creation-script.sql Maven / Gradle / Ivy

There is a newer version: 0.7.0-M1
Show newest version
create database visitors;
use visitors;
create user 'brooklyn' identified by 'br00k11n';
grant usage on *.* to 'brooklyn'@'%' identified by 'br00k11n';
# ''@localhost is sometimes set up, overriding brooklyn@'%', so do a second explicit grant
grant usage on *.* to 'brooklyn'@'localhost' identified by 'br00k11n';
grant all privileges on visitors.* to 'brooklyn'@'%';
flush privileges;

CREATE TABLE MESSAGES (
        id INT NOT NULL AUTO_INCREMENT,
        NAME VARCHAR(30) NOT NULL,
        MESSAGE VARCHAR(400) NOT NULL,
        PRIMARY KEY (ID)
    );

INSERT INTO MESSAGES values (default, 'Isaac Asimov', 'I grew up in Brooklyn' );




© 2015 - 2024 Weber Informatics LLC | Privacy Policy