mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
disable community server mysql connection, because not used, communication runs entirely via json requests
This commit is contained in:
parent
a71a69a619
commit
bc3feaa900
@ -183,7 +183,7 @@ int Gradido_LoginServer::main(const std::vector<std::string>& args)
|
||||
//printf("try connect login server mysql db\n");
|
||||
conn->setConnectionsFromConfig(config(), CONNECTION_MYSQL_LOGIN_SERVER);
|
||||
//printf("try connect php server mysql \n");
|
||||
conn->setConnectionsFromConfig(config(), CONNECTION_MYSQL_PHP_SERVER);
|
||||
//conn->setConnectionsFromConfig(config(), CONNECTION_MYSQL_PHP_SERVER);
|
||||
|
||||
SessionManager::getInstance()->init();
|
||||
// put urandom on linux servers
|
||||
|
||||
@ -28,7 +28,7 @@ public:
|
||||
|
||||
//! \param connectionString example: host=localhost;port=3306;db=mydb;user=alice;password=s3cr3t;compress=true;auto-reconnect=true
|
||||
inline void setConnection(std::string connectionString, ConnectionType type) {
|
||||
if (type == CONNECTION_MYSQL_LOGIN_SERVER || CONNECTION_MYSQL_PHP_SERVER) {
|
||||
if (type == CONNECTION_MYSQL_LOGIN_SERVER) {
|
||||
mSessionPoolNames[type] = Poco::Data::Session::uri(Poco::Data::MySQL::Connector::KEY, connectionString);
|
||||
mSessionPools.add(Poco::Data::MySQL::Connector::KEY, connectionString, 1, 16);
|
||||
//mConnectionData[type] = connectionString;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user