Browse Source

changed password to fulfill mysql reqs

master
Sebastian Rieger 6 years ago
parent
commit
5003f7241e
  1. 2
      example-projects/tug-of-war-in-the-clouds/aws-boto3-standalone-db/start.py

2
example-projects/tug-of-war-in-the-clouds/aws-boto3-standalone-db/start.py

@ -21,7 +21,7 @@ userDataDB = ('#!/bin/bash\n'
'\n'
'echo "create table clouds ( cloud_id INT AUTO_INCREMENT, name VARCHAR(255) NOT NULL, value INT, max_value INT, PRIMARY KEY (cloud_id))" | mysql -u root cloud_tug_of_war\n'
'\n'
'echo "CREATE USER \'cloud_tug_of_war\'@\'%\' IDENTIFIED BY \'cloud\';" | mysql -u root\n'
'echo "CREATE USER \'cloud_tug_of_war\'@\'%\' IDENTIFIED BY \'cloudpass\';" | mysql -u root\n'
'echo "GRANT ALL PRIVILEGES ON cloud_tug_of_war.* TO \'cloud_tug_of_war\'@\'%\';" | mysql -u root\n'
'echo "FLUSH PRIVILEGES" | mysql -u root\n'
)

Loading…
Cancel
Save