mysticbunny
Member
- Joined
- Jul 30, 2025
- Messages
- 17
- Reaction score
- 13
Hello everyone,
I’ve been trying to set up The Forgotten Server both on version 1.6 (stable) and the current 1.7 (master), but I’m stuck with different database connection issues on each version. I’d really appreciate some guidance from the community, since I couldn’t get either of them to work correctly.
It looks like the MariaDB connector from vcpkg is forcing SSL, but my MariaDB (XAMPP) doesn’t have it configured. I tried enabling SSL in MariaDB, but it crashes on startup. I also tried disabling it via config, but the flag require_secure_transport is not recognized by MariaDB in XAMPP.
So far I haven’t found a clean way to make TFS 1.7 connect.
---------------------------------------------- ----------------------------------------------
Here the server does connect to the database, I was able to import the schema and also set up MyAAC.
I can access the website, create an account and character, and the database updates correctly.
But when I try to log in with the client, I get the error:
And in the server console I see:
So it seems the SQL syntax that TFS is generating isn’t compatible with MariaDB (XAMPP) when trying to insert the IP using INET6_ATON.
---------------------------------------------- ----------------------------------------------
Has anyone else faced these issues? What would be the recommended fix?
Thanks in advance!
I’ve been trying to set up The Forgotten Server both on version 1.6 (stable) and the current 1.7 (master), but I’m stuck with different database connection issues on each version. I’d really appreciate some guidance from the community, since I couldn’t get either of them to work correctly.
TFS 1.7 (master branch, freshly compiled)
Compilation works fine, no errors. But when I try to run the server, I get this:
Code:
C:\otserv\forgottenserver>tfs.exe
The Forgotten Server - Version 1.7
Compiled with Microsoft Visual C++ version 1944
Compiled on Sep 4 2025 14:12:45 for platform x64
Linked with Lua 5.4.8 for Lua support
>> Loading config
>> Loading RSA key
>> 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.
>> No services running. The server is NOT online.
So far I haven’t found a clean way to make TFS 1.7 connect.
---------------------------------------------- ----------------------------------------------
TFS 1.6 (stable release)
Here the server does connect to the database, I was able to import the schema and also set up MyAAC.
I can access the website, create an account and character, and the database updates correctly.
But when I try to log in with the client, I get the error:
Code:
Login error: "Failed to create session. Please try again later."
Code:
[Error - mysql_real_query] Query: INSERT INTO sessions (token, account_id, ip)
VALUES ('\\÷¯y,▀♣ß║+c%─\Z_►', 1, INET6_ATON(::ffff:127.0.0.1))
Message: You have an error in your SQL syntax; check the manual that corresponds
to your MariaDB server version for the right syntax to use near '::ffff:127.0.0.1))' at line 1
---------------------------------------------- ----------------------------------------------
Summary
- TFS 1.6: connects to DB, but login fails due to SQL syntax error with INET6_ATON
:ffff:127.0.0.1). - TFS 1.7: fails to connect to DB at all, because SSL/TLS is required by the connector but not supported by MariaDB (XAMPP).
Has anyone else faced these issues? What would be the recommended fix?
Thanks in advance!