Last active
December 16, 2015 01:09
-
-
Save wjch/5353358 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Properties file with JDBC-related settings. | |
########## | |
# HSQLDB # | |
########## | |
#jdbc.driverClassName=org.hsqldb.jdbcDriver | |
#jdbc.url=jdbc:hsqldb:hsql://localhost:9001/bookstore | |
#jdbc.username=sa | |
#jdbc.password= | |
########### | |
# MySQL 5 # | |
########### | |
jdbc.driverClassName=com.mysql.jdbc.Driver | |
jdbc.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=GBK | |
jdbc.username=root | |
jdbc.password=root | |
############## | |
# PostgreSQL # | |
############## | |
#jdbc.driverClassName=org.postgresql.Driver | |
#jdbc.url=jdbc:postgresql://localhost/bookstore | |
#jdbc.username= | |
#jdbc.password= | |
########## | |
# Oracle # | |
########## | |
#jdbc.driverClassName=oracle.jdbc.driver.OracleDriver | |
#jdbc.url=jdbc:oracle:thin:@192.168.1.250:1521:devdb | |
#jdbc.username=HFOSPSP | |
#jdbc.password=HFOSPSP | |
############################# | |
# MS SQL Server 2000 (JTDS) # | |
############################# | |
#jdbc.driverClassName=net.sourceforge.jtds.jdbc.Driver | |
#jdbc.url=jdbc:jtds:sqlserver://localhost:1433/bookstore | |
#jdbc.username= | |
#jdbc.password= | |
################################## | |
# MS SQL Server 2000 (Microsoft) # | |
################################## | |
#jdbc.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver | |
#jdbc.url=jdbc:sqlserver://192.168.1.130:1433;database=ahos;user=sa;password=ahtec"; | |
#jdbc.username=sa | |
#jdbc.password=ahtec | |
######## | |
# ODBC # | |
######## | |
#jdbc.driverClassName=sun.jdbc.odbc.JdbcOdbcDriver | |
#jdbc.url=jdbc:odbc:bookstore | |
#jdbc.username= | |
#jdbc.password= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create database if not exists test default character set utf8; | |
CREATE TABLE IF NOT EXISTS goods_user( | |
user_id int not null auto_increment primary key, | |
username varchar(50) not null, | |
password varchar(50) not null, | |
email varchar(50), | |
userimg varchar(50) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
CREATE TABLE IF NOT EXISTS goods_good( | |
good_id int not null auto_increment primary key, | |
goodname varchar(50) not null, | |
gooddesc varchar(50), | |
goodprice float not null, | |
goodimg varchar(50), | |
goodeadline timestamp not null, | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment