You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
534B

  1. CREATE TABLE `db`.`users` (
  2. `userid` INT AUTO_INCREMENT,
  3. `username` VARCHAR(45) NULL,
  4. `password` VARCHAR(45) NULL,
  5. PRIMARY KEY (`userid`)
  6. );
  7. CREATE TABLE `db`.`guestbook` (
  8. `entryid` INT AUTO_INCREMENT,
  9. `text` VARCHAR(255) NULL,
  10. PRIMARY KEY (`entryid`)
  11. );
  12. insert into users values (NULL, "admin", "password");
  13. insert into users values (NULL, "bernt", "inge");
  14. insert into guestbook values (NULL, "Hello World");
  15. CREATE USER 'root'@'10.5.0.6' IDENTIFIED BY 'root';
  16. GRANT ALL PRIVILEGES ON db.* TO 'root'@'10.5.0.6';