Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
group_04_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
acheng27
group_04_project
Commits
1b77a07e
Commit
1b77a07e
authored
1 year ago
by
Zijing Wei
Browse files
Options
Downloads
Patches
Plain Diff
add the schema set up into provision
parent
948b31c1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mysql/create_schema.sql
+11
-0
11 additions, 0 deletions
mysql/create_schema.sql
mysql/provision_scripts/install_mysql.sh
+3
-0
3 additions, 0 deletions
mysql/provision_scripts/install_mysql.sh
with
14 additions
and
0 deletions
mysql/create_schema.sql
0 → 100644
+
11
−
0
View file @
1b77a07e
CREATE
DATABASE
network_latency
;
USE
network_latency
;
CREATE
TABLE
ping_pong
(
id
INT
AUTO_INCREMENT
PRIMARY
KEY
,
source_ip
VARCHAR
(
20
)
NOT
NULL
,
ping_time
TIMESTAMP
NOT
NULL
,
pong_time
TIMESTAMP
NOT
NULL
,
latency
FLOAT
NOT
NULL
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
mysql/provision_scripts/install_mysql.sh
+
3
−
0
View file @
1b77a07e
...
...
@@ -34,5 +34,8 @@ DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%';
FLUSH PRIVILEGES;
_EOF_
echo
"Creating database schema"
mysql
-u
root
-pvagrant
< /vagrant/create_schema.sql
echo
"Finished configuring MySQL"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment