• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Problem with TLS/SSL error when starting server

atom114

New Member
Joined
Jan 3, 2011
Messages
3
Reaction score
0
Hey. I got a problem when i try to start server i get :
">> Establishing database connection...
MySQL Error Message: TLS/SSL error: SSL is required, but the server does not support it
ERROR: Failed to connect to database."

Im using Nekiro 8.0 downgrade, and Xampp phpmyadmin MySql as database. Anyone may have a clue, how to disable it?
 
Usually you turn that off in config.lua there is a line that is called sha1 and you change that. But I have no clue if that works for your specific server.
 
Hey. I got a problem when i try to start server i get :
">> Establishing database connection...
MySQL Error Message: TLS/SSL error: SSL is required, but the server does not support it


Im using Nekiro 8.0 downgrade, and Xampp phpmyadmin MySql as database. Anyone may have a clue, how to disable it?
IDK how you compiled it, but it looks like your C++ MySQL library requires SSL by default and your database configuration in XAMPP does not support it.

Someone else reported the same problem - XAMPP + running TFS 1.3 on Windows (Nekiro 1.5 is based on TFS 1.3):
 
It's strange because i downloaded another datapack of 8.0 that come with compiled .exe and it works fine ( i dont know why it not require key.pem) but when i compile from vc17 -> theforgottenserver.sln it's (im using visual 2022) and try to use .exe first is asking for config.lua, then for key.pem and then i get same error even with same config. I was using Xampp for apache and mysql, now i will try with normal mysql.
Post automatically merged:

So i have change all to normal MySql db, now i geting other error
"
> Establishing database connection...
MySQL Error Message: Plugin caching_sha2_password could not be loaded: Nie mo┐na odnalečŠ okreťlonego modu│u. Library path is 'caching_sha2_password.dll'
ERROR: Failed to connect to database."
 
Last edited:
MySQL Error Message: Plugin caching_sha2_password could not be loaded: Nie mo┐na odnalečŠ okreťlonego modu│u. Library path is 'caching_sha2_password.dll'
LUA:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'MYPASSWORD';
 
Had the same issue with Nekiro 1.5 using latest xampp instalation with mariadb.

In database.cpp i had to change:
C++:
// automatic reconnect
  bool reconnect = true;
  mysql_options(handle, MYSQL_OPT_RECONNECT, &reconnect);

into
C++:
  // automatic reconnect
  bool reconnect = true;
  mysql_options(handle, MYSQL_OPT_RECONNECT, &reconnect);

  // Disable SSL/TLS - required for XAMPP's MariaDB which doesn't have SSL
  // configured. MariaDB Connector/C 3.4+ enforces TLS by default. Disable for local development.
  my_bool ssl_enforce = 0;
  my_bool ssl_verify = 0;
  mysql_options(handle, MYSQL_OPT_SSL_ENFORCE, &ssl_enforce);
  mysql_options(handle, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, &ssl_verify);


Im also using vcpkg.json for package managment, in which I had to get libmariadb without defaults.


JSON:
        {
            "name": "libmariadb",
            "default-features": false,
            "features": [
                "iconv"
            ]
        },
 
Had the same issue with Nekiro 1.5 using latest xampp instalation with mariadb.

In database.cpp i had to change:
C++:
// automatic reconnect
  bool reconnect = true;
  mysql_options(handle, MYSQL_OPT_RECONNECT, &reconnect);

into
C++:
  // automatic reconnect
  bool reconnect = true;
  mysql_options(handle, MYSQL_OPT_RECONNECT, &reconnect);

  // Disable SSL/TLS - required for XAMPP's MariaDB which doesn't have SSL
  // configured. MariaDB Connector/C 3.4+ enforces TLS by default. Disable for local development.
  my_bool ssl_enforce = 0;
  my_bool ssl_verify = 0;
  mysql_options(handle, MYSQL_OPT_SSL_ENFORCE, &ssl_enforce);
  mysql_options(handle, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, &ssl_verify);


Im also using vcpkg.json for package managment, in which I had to get libmariadb without defaults.


JSON:
        {
            "name": "libmariadb",
            "default-features": false,
            "features": [
                "iconv"
            ]
        },
Its related to the mariadb or mysql server version installed in your machine.
There is no need to change sources, just install the correct mariadb server and client.
 
Back
Top