1. 首先安装 sql数据库:
sudo aptitude install mysql-client-5.6
sudo aptitude install mysql-server-5.62. 初始化 sql:
mysql -u root -p
create database icescrum character set utf8;
或者
create database if not exist icescrum ;
grant all on icescrum.* to 'charles'@'localhost' identified by 'mypasswd';3.修改配置文件(config.groovy)。在文件末尾增加:
dataSource.dialect = "org.hibernate.dialect.MySQL5InnoDBDialect" dataSource.driverClassName = "com.mysql.jdbc.Driver" dataSource.url = "jdbc:mysql://localhost:3306/icescrum?useUnicode=true&characterEncoding=utf8" dataSource.username = "charles" dataSource.password = "mypasswd"
可以到 /var/lib/mysql
下查看,如果有 icescrum目录创建,表示设置成功了。
/var/lib/mysql$ ls auto.cnf ibdata1 ib_logfile1 mysql performance_schema debian-5.6.flag ib_logfile0 icescrum mysql_upgrade_info