使用这个数据库名db-mcms-open,不行;
create database db_mcms_open character set utf8;
CREATE DATABASE db_mcms_open DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
$ cd /usr/local/mysql/bin
$ ./mysql -u root -p
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
mysql> CREATE DATABASE db_mcms_open DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql> use db_mcms_open
mysql> source /Users/Kokia/web_workspace/MCMS/doc/db-mcms-open-4.5.8.sql
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| db_mcms_open |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set (0.00 sec)
3、
[类文件的搜索路径: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Content
在类路径或引导类路径中找不到程序包 java.lang
解决:参考这个链接求教关于maven编译找不到java.lang包的问题
正确配置如下:
Windows(分隔符英文分号):
<bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath>
linux(分隔符英文冒号):
<bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath>
MS
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.2.v20140723</version>
</plugin>
$ mvn jetty:run
http://localhost:8080/mcms/ms/login.do
http://www.iteye.com/topic/545708
Maven 是怎样创建War 包?
http://my.oschina.net/u/939534/blog/173863
$ mvn package
http://localhost:8080/mcms/ms/login.do
管理员账号,用户名:msopen 密码:msopen
MAC 电脑如何启用root用户
http://jingyan.baidu.com/article/1709ad80b3aff44634c4f0f8.html