分类: Mysql/postgreSQL
2014-04-13 09:21:29
1. 安装mysql
安装成功之后 修改
my-default.ini为my.ini
启动服务:mysqld.exe
进入mysql修改密码 首次密码为空
SET PASSWORD FOR = PASSWORD('1234');
SET character_set_client='utf8';
SET character_set_connection='utf8';
SET character_set_results='utf8';
DROP database IF EXISTS `crud`;
CREATE DATABASE IF NOT EXISTS `crud` DEFAULT CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';
USE `crud`;
然后创建数据库,创建表crud.sql
ALTER TABLE `Student` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
2. 安装jdk 添加环境变量
3. 运行tomcat
直接运行startup.bat