disable community server mysql connection, because not used, communication runs entirely via json requests

This commit is contained in:
Dario 2020-07-21 11:17:20 +02:00
parent a71a69a619
commit bc3feaa900
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;