Public Repository

Last pushed: 3 months ago
Short Description
all based on ubuntu image, with java and mysql installed
Full Description

docker exec -it spring bash
---docker unbuntu shell---
apt-get update
apt-get install mysql-server
root root
service mysql start
mysqladmin -p -u root version
mysql -u root -p
---mysql shell---
create database hengsha;
use hengsha;
CREATE TABLE co2 (idCO2 INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
datetime DATETIME,
density DOUBLE,
location VARCHAR(10));
insert...
---mysql shell---
docker cp mysql-connector-java-5.1.42-bin.jar spring:/home/test/java
javac -cp lib/mysql-connector-java-5.1.42-bin.jar src/mysql/mysql.java -d ./bin/.
cd bin
java -cp .:../lib/mysql-connector-java-5.1.42-bin.jar mysql/mysql

Docker Pull Command
Owner
lihsup

Comments (0)