Skip to content
Snippets Groups Projects
Commit 1b77a07e authored by Zijing Wei's avatar Zijing Wei
Browse files

add the schema set up into provision

parent 948b31c1
No related branches found
No related tags found
No related merge requests found
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
......@@ -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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment