Skip to content

Commit

Permalink
Dodat je primer za kombinaciju za prva dva primera
Browse files Browse the repository at this point in the history
  • Loading branch information
Robotmurlock committed Dec 18, 2021
1 parent 2a63aec commit 7e5dd29
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mysql -uroot -pRoot_12345 -h127.0.0.1 -P6603
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
create database dbcustomers;
use dbcustomers;

create table customer(
name varchar(255),
surname varchar(255)
);

insert into
customer (name, surname)
values
('Jeff', 'Mynameis'),
('Robot', 'Murlock'),
('Hell', 'boy');
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
docker run \
--detach \
--name=mysql-server-customers-db \
--env="MYSQL_ROOT_PASSWORD=Root_12345" \
--publish 6603:3306 \
--volume=/root/docker/simple-mysql-server-db/conf.d:/etc/mysql/conf.d \
mysql

sleep 10

mysql -uroot -pRoot_12345 -h127.0.0.1 -P6603 < init-database.sql
1 change: 1 addition & 0 deletions tema07_docker/07_mysql_server/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ovaj primer predstavlja kombinaciju prethodna dva primera.

0 comments on commit 7e5dd29

Please sign in to comment.