1,Jdbc使用mysql-connector-java-3.1.10-bin.jar , 大小:408KB;
2,mysql使用Mysql 5.0.19;
3,设置my.ini:(主要是gbk,utf8的设置,否则会出现中文乱码)
注意:
需要先配置my.ini,然后才创建数据库及表及导入数据!
[client]
port=3306
[mysql]
default-character-set=gbk
[mysqld]
port=3306
basedir="D:/MySQL Server 5.0/"
#Path to the database root
datadir="D:/MySQL Server 5.0/Data/"
default-character-set=utf8
default-storage-engine=INNODB
# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
max_connections=100
query_cache_size=0
table_cache=256
tmp_table_size=5M
thread_cache_size=8
myisam_max_sort_file_size=100G
myisam_max_extra_sort_file_size=100G
myisam_sort_buffer_size=8M
key_buffer_size=8M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=212K
#skip-innodb
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=1M
innodb_buffer_pool_size=8M
innodb_log_file_size=10M
innodb_thread_concurrency=8