【发布时间】:2012-04-14 19:16:06
【问题描述】:
我正在尝试设置automated testing on Silverstripe!在 CPanel 中。当我在 url 中运行任何测试时(对于我来说,它是 DOMAIN/dev/tests/AggregateTest),它说
致命错误:无法运行查询:CREATE DATABASE
tmpdb2605857用户访问被拒绝 'todaytes_root'@'localhost' 到数据库 'tmpdb2605857' 中 /home/todaytes/public_html/sapphire/core/model/MySQLDatabase.php 在第 525 行
Silverstripe 会在每次测试执行时创建一个随机命名的数据库,并在测试完成后销毁它。
从 cPanel 的“数据库”菜单中,我只能手动添加数据库和用户,并为其添加一些前缀名称(在我的例子中,我所有的数据库和用户都以 todaytes_ 开头)。如何配置 cPanel/WHM 以向用户授予权限,以便 Silverstripe 自动化测试能够正常工作?
【问题讨论】:
标签: database automated-tests cpanel silverstripe whm