我试图将我的Spring项目构建成一个JAR file.in我的项目,我使用一个本地MySQL数据库来存储我的数据,但是现在我的项目已经完成,并且准备在一个application.properties服务器上启动它,但是当我从application.properties中更改MySQL连接信息时,maven不能打包这个项目,并且我得到了这个错误
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the serve
rails 3.2.18
mysql2 0.3.18
尝试启动rspec spec
有许多:
19) Reports::TaxReportService should properly generate for rests
Failure/Error: Unable to find matching line from backtrace
ActiveRecord::AdapterNotSpecified:
database configuration does not specify adapter
# /home/drobazko/.rvm/g
我正在使用DAY、MONTH、YEAR mysql的函数()和LiipFunctionalTestBundle。当我做测试的时候:
SQLSTATE[HY000]: General error: 1 no such function: YEAR
最后,测试失败了。我想是因为这个。
这是我的config_test文件:
imports:
- { resource: config_dev.yml }
framework:
test: ~
session:
storage_id: session.storage.filesystem
name
我试图在我的第一个rails应用程序上编写测试文件,但似乎无法与数据库通信。每当我尝试运行"rails test“或任何类似的东西时,我都会得到这样的错误: rails test
Running via Spring preloader in process 29784
Run options: --seed 45825
# Running:
E
Error:
EmployeeTest#test_the_truth:
Mysql2::Error::ConnectionError: Access denied for user 'dataRails'@'l