Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for windows
- docker run --name db2 -p 50000:50000 -e DB2INST1_PASSWORD=db2inst1-pwd -e LICENSE=accept -d ibmcom/db2express-c db2start
- for linux/mac:
- docker run --name db2 -p 50000:50000 -e DB2INST1_PASSWORD=bardzotajnehaslo -e LICENSE=accept -d ibmcom/db2express-c db2start
- open bash in db2 container:
- docker exec -i -t db2 /bin/bash
- su - db2inst1
- create datbase
- db2 create db mydatabase
- jdbc url to created database:
- jdbc:db2://127.0.0.1:50000/mydatabase
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement