Closed jmwri closed 6 years ago
Short Answer: No.
Setting the library path manually is not nessary for the dockerfile as it already sets up everything correctly.
Your problem is that the TS3SERVER_DB_PLUGIN
you want to use is called ts3db_mariadb
not ts3db_mysql
.
Here is a example.
@muenchow didn't make it really clear: mysql is not supported anymore. Your only options are MariaDB or SQLite.
@Bluscream that is not correct. @jmwri you can use a mysql server with the mariadb plugin, they are compatible.
@muenchow I saw mariadb was used in the example but I also noticed lobts3db_mysql.so
in /var/ts3server
.
@Bluscream Is MySQL not supported by ts3, or just this container?
@muenchow I tried that but got an error about the database not being in the correct format for mariadb. So far I just made the sqlite dump compatible with MySQL.
@jmwri The docker does not contain a file called lobts3db_mysql.so
. I do not know what docker you are using, but apparently it is not this one.
@muenchow That was a typo, I meant libts3db_mysql.so
and may have been copied from a previous installation before I was using the container.
I have switched to the MariaDB plugin and am getting the following error:
Could not connect to mariadb server: Plugin caching_sha2_password could not be loaded
Is it possible that we can get this password plugin installed on the container?
In the meantime I have set a mysql_native_password for the user and have got a fresh instance up and running. Is there a guide anywhere on how to migrate from sqlite to mysql/mariadb?
@jmwri it seams you are using a mysql 8.0 server. Unfortunately we won't be able to support caching_sha2_password
as mariadb is not going to support it. See https://jira.mariadb.org/browse/CONC-312
The libts3db_mysql.so
will also not be of any help, as it is too old to have support for the authentication method.
As a possible solutions i would recommend changing the authentication back to mysql_native_password
or using mariadb.
@muenchow Got it working with MySQL apart from hopefully the last error...
This database does not seem to be prepared for the new mariadb format. Please read the file on updating the database in doc/update_mysql_to_mariadb.txt
I can't seem to find the file anywhere, could you point me in the right direction please?
@jmwri You can find the file in the docker at /opt/ts3server/doc/update_mysql_to_mariadb.txt
.
Alternatively the file can also be found in any of the server releases found here
@muenchow Thanks for all your help. Running on MySQL now :)!
I am unable to start up ts3 using the
ts3db_mysql
plugin.I am trying to use MySQL instead of sqlite so added all of the env vars as described in the readme, but changed MariaDB to MySQL as I am not using MariaDB.
I have set the following env vars:
Have I missed something?
EDIT:
If I set
LD_LIBRARY_PATH: /var/ts3server
I get the following error:Maybe there is a missing dependency?