Last active
May 21, 2018 14:01
-
-
Save novohool/79535d4c858f7491a374386ea4b35c5c to your computer and use it in GitHub Desktop.
web管理svn
This file contains hidden or 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
下载svn包 | |
```shell | |
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jsvnadmin/svnadmin-3.0.5.zip | |
``` | |
安装好数据库、svnserve和tomcat;其中mysql编码要先设置成utf8; | |
再创建svnadmin数据库 | |
``` | |
CREATE DATABASE svnadmin CHARACTER SET utf8; | |
``` | |
数据库配置: | |
``` | |
CREATE DATABASE svnadmin CHARACTER SET utf8; | |
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; | |
导入 jsvnadmin解压包下db文件夹下的数据库 | |
更改配置文件 /usr/local/tomcat/webapps/svnadmin/WEB-INF/jdbc.properties | |
``` | |
附 | |
编码问题报错: | |
注意:在测试svnadmin是否运行正常的时遇到 Incorrect string value: ‘\xE7\x99\xBB\xE5\xBD\x95‘ for column ‘lbl‘ 错误 | |
解决:进入svnadmin数据库执行下面的语句 | |
删除数据库,重新创建导入 | |
 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment