Plastic SCM MySQL Setup

时间:2014-01-13 01:11:48

标签: mysql sql sql-server plasticscm

在全新安装Plastic SCM和MySQL之后,我尝试将数据库后端更改为MySQL,但始终会出现以下错误。

The database rep_1 can't be created. Check the server log (plastic.server.log). Error: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.   at Codice.CM.Data.BaseDataManager.CreateSingleRepository(Int64 repId)
   at admintool.DatabaseCopier.Start()
   at admintool.DatabaseMigrator.MigrateDatabases()
   at admintool.DatabaseMigrator.Start()

有什么想法吗?如何设置MySWL或SQL Server?我有Sqlite工作,但需要切换。

1 个答案:

答案 0 :(得分:2)

看来你的MySQL安装正在抛出超时异常,一些想法:

  • 是否为您指定的用户授予了访问权限
  • 尝试更改IP的服务器名称(有时DNS可以做丑陋的事情),或者如果您指定了IP或localhost,请尝试指定机器名称。
  • 查看服务器日志以获取更多信息(plasticd.log.txt)

如果您想尝试使用MySQL或SqlServer,您可以按照以下教程进行操作,它非常简单,它不会使用Plastic SCM管理工具,但它更强大,因为您可以指定更多参数:

回到你的问题,你可以尝试以下,我猜你的db.conf文件(在Plastic SCM服务器目录中)现在正在尝试连接到MySQL(通过打开它并查看提供者标签来检查它) ,然后尝试以控制台模式启动服务器,为此,打开管理命令行窗口,cd到Plastic SCM服务器目录并输入:

“plasticd.exe --console”

你看到有什么错误吗?从不同的命令行窗口输入“cm lrep”,你能看到默认的仓库吗?如果没有,请查看服务器日志(plasticd.log.txt)以找出问题。

或者您可以将您可以找到的所有日志(plasticd.log.txt)发送到Plastic SCM论坛www.plasticscm.net社区和Plastic SCM人员将帮助您。

相关问题