Changeset - f18e3570a8a1
[Not reviewed]
0 1 0
HanzZ - 14 years ago 2011-12-07 20:08:01
hanzz.k@gmail.com
Advice to check the log to find out reason when we can't connect the DB
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
spectrum/src/main.cpp
Show inline comments
 
@@ -353,7 +353,7 @@ int main(int argc, char **argv)
 
	if (CONFIG_STRING(&config, "database.type") == "sqlite3") {
 
		storageBackend = new SQLite3Backend(&config);
 
		if (!storageBackend->connect()) {
 
			std::cerr << "Can't connect to database.\n";
 
			std::cerr << "Can't connect to database. Check the log to find out the reason.\n";
 
			return -1;
 
		}
 
	}
 
@@ -362,7 +362,7 @@ int main(int argc, char **argv)
 
	if (CONFIG_STRING(&config, "database.type") == "mysql") {
 
		storageBackend = new MySQLBackend(&config);
 
		if (!storageBackend->connect()) {
 
			std::cerr << "Can't connect to database.\n";
 
			std::cerr << "Can't connect to database. Check the log to find out the reason.\n";
 
			return -1;
 
		}
 
	}
0 comments (0 inline, 0 general)