Skip to content

Instantly share code, notes, and snippets.

@paulczar
Created May 1, 2014 23:12
Show Gist options
  • Save paulczar/e412cb5e11e6a8e69945 to your computer and use it in GitHub Desktop.
Save paulczar/e412cb5e11e6a8e69945 to your computer and use it in GitHub Desktop.
building and running mysql on solum
vagrant@devstack:~$ solum app create /opt/stack/solum/examples/plans/mysql.yaml
+-------------+---------------------------------------------------------------------+
| Property | Value |
+-------------+---------------------------------------------------------------------+
| description | mysql server |
| uri | http://10.0.2.15:9777/v1/plans/86665816-389c-4c5b-8b8b-e20d536f878b |
| uuid | 86665816-389c-4c5b-8b8b-e20d536f878b |
| name | mysql_server |
+-------------+---------------------------------------------------------------------+
vagrant@devstack:~$ solum assembly create http://10.0.2.15:9777/v1/plans/86665816-389c-4c5b-8b8b-e20d536f878b --assembly=mysql01
+-----------------+--------------------------------------------------------------+
| Property | Value |
+-----------------+--------------------------------------------------------------+
| status | None |
| description | None |
| application_uri | None |
| name | mysql01 |
| trigger_uri | http://10.0.2.15:9777/v1/public/triggers/0e4fe341-6a82-4a5a- |
| | b8e2-e70bc5a30c64 |
| uuid | ecb60748-c23e-4e7d-9e36-22954f79ca14 |
+-----------------+--------------------------------------------------------------+
vagrant@devstack:~$ solum assembly show ecb60748-c23e-4e7d-9e36-22954f79ca14
+-----------------+--------------------------------------------------------------+
| Property | Value |
+-----------------+--------------------------------------------------------------+
| status | READY |
| description | None |
| application_uri | http://10.0.0.2:5000 |
| name | mysql01 |
| trigger_uri | http://10.0.2.15:9777/v1/public/triggers/0e4fe341-6a82-4a5a- |
| | b8e2-e70bc5a30c64 |
| uuid | ecb60748-c23e-4e7d-9e36-22954f79ca14 |
+-----------------+--------------------------------------------------------------+
vagrant@devstack:~$ mysql -umysql -pmysql -h 10.0.0.2
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select now();
+---------------------+
| now() |
+---------------------+
| 2014-05-01 23:10:34 |
+---------------------+
1 row in set (0.01 sec)
mysql> quit
Bye
vagrant@devstack:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment