8 lines
390 B
Bash
Executable File
8 lines
390 B
Bash
Executable File
create_db() {
|
|
mariadb -u root -p -e "CREATE DATABASE vintagecodingdotnet;"
|
|
mariadb -u root -p -e "USE vintagecodingdotnet; CREATE TABLE articles (article_id INT PRIMARY KEY AUTO_INCREMENT, article_name VARCHAR(255) NOT NULL);"
|
|
mariadb -u root -p -e "USE vintagecodingdotnet; INSERT INTO articles (article_name) VALUES ('test'), ('another test'), ('a third test');"
|
|
}
|
|
|
|
create_db
|