Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

example-java-jdbc-Mysql

Sample java app that connects to Mysql via a JDBC adapter. It reads the connection settings from the JDBC_MYSQL_URI env variable.

Deploying

$ apc app create jdbc-mysql -dr --restart no

Binding To Mysql

Create a mysql service using one of your mysql providers

$ apc service create mysql-service -t mysql --provider /apcera/bootstrap::mysql --batch

Bind the app to this new service

$ apc service bind mysql-service -j jdbc-mysql

Start the app

$ apc app start jdbc-mysql