ToW
27-11-2005, 23:00
After much grief I have gotten TS2 to work with MySQL 4.1.12, but not yet error free in the logs.
Here is what I did and what I am using.
OS: CentOS 4.2 Linux 2.6.x
MySQL RPMS
>mysql-4.1.12-3.RHEL4.1
>mysqlclient10-3.23.58-4.RHEL4.1
>MySQL-shared-compat-4.0.25-0
These can be obtained via YUM
ts2_server_rc2_20201.tar.bz2
Steps:
Remove the password for sql-user teamspeak using webmin/shell/mysqladmin or similair tool and set it as
SET PASSWORD FOR '<mysqluser>'@'<host>' = OLD_PASSWORD('<password>'); as IceMatrix (http://member.php?u=105976) posted here: http://forum.goteamspeak.com/showthread.php?t=27200
drop the tables in your teamspeak-database (unforturnally I didnt find a way to avoid this) :(
Then do as mokum (http://member.php?u=90247) posted here http://forum.goteamspeak.com/showthread.php?p=114582#post114582
in ./mysql_sql/read_servers.sql replace the content with
select * from ts2_servers WHERE i_server_id > 0;
and in ./mysql_sql/read_channel_privilege.sql replace everything with
select * from ts2_channel_privileges where i_cp_server_id = :iServerID and i_cp_channel_id = :iChannelID and i_cp_client_id = :iClientID
then copy /usr/lib/mysql/libmysqlclient_r.so.10.0.0 to your TS2 dir (on linux "cp /usr/lib/mysql/libmysqlclient_r.so.10.0.0 /path/to/teamspeak")
You can properly remove the mysqlclient10-3.23.58-4.RHEL4.1 rpm now unless you need it for other things.
edit your server.ini accordingly (see example)
[DBEXPRESS]
sqldir=mysql_sql/
Drivername=mysql
Database=teamspeak-database
Hostname=localhost
User_name=sql-user-username
Password=sql-user-password
GetDriverFunc=getSQLDriverMYSQL
VendorLib=./libmysqlclient_r.so.10.0.0
LibraryName=./libsqlmy.so
Active=1
start teamspeak as a non-root user.
These steps brought my TS2 up and running smoothly
I am getting some errors in the server.log which I dont understand / knows why / how to fix.
ERROR,All,SQL, ExecSQL Error: EDatabaseError.MyISAM table 'ts2_servers' is in use (most likely by a MERGE table). Try FLUSH TABLES. in query: CREATE TABLE `ts2_servers` (
`i_server_id` int(11) NOT NULL auto_increment,
`s_server_name` varchar(40) default NULL,
`s_server_welcomemessage` varchar(80) default NULL,
`i_server_maxusers` int(11) default NULL,
`i_server_udpport` int(11) default NULL,
`s_server_password` varchar(80) default NULL,
`b_server_clan_server` int(11) default NULL,
`b_server_allow_codec_celp51` int(11) default NULL,
`b_server_allow_codec_celp63` int(11) default NULL,
`b_server_allow_codec_gsm148` int(11) default NULL,
`b_server_allow_codec_gsm164` int(11) default NULL,
`b_server_allow_codec_celp52` int(11) default NULL,
`b_server_allow_codec_speex2150` int(11) default NULL,
`b_server_allow_codec_speex3950` int(11) default NULL,
`b_server_allow_codec_speex5950` int(11) default NULL,
`b_server_allow_codec_speex8000` int(11) default NULL,
`b_server_allow_codec_speex11000` int(11) default NULL,
`b_server_allow_codec_speex15000` int(11) default NULL,
`b_server_allow_codec_speex18200` int(11) default NULL,
`b_server_allow_codec_speex24600` int(11) default NULL,
`s_server_webposturl` varchar(200) default NULL,
`s_server_weblinkurl` varchar(200) default NULL,
`b_server_active` int(11) default NULL,
`dt_server_created` varchar(20) default NULL,
`s_server_description` varchar(100) default NULL,
PRIMARY KEY (`i_server_id`)
) TYPE=MyISAM
Maybe you know why I am getting these errors?
On that note, its way past my bedtime, I hope I helped someone and that someone can help me :)
PS: Since more and more people are upgrading to MySQL4/5 then I dont understand why the TS devel team doesnt release a new build of TS2 with support for
libmysqlclient_r.so.14.x (yes yes I know they are busy busy busy with TS3, for a small build upgrade for TS2 cant take that many minutes to do?)
Here is what I did and what I am using.
OS: CentOS 4.2 Linux 2.6.x
MySQL RPMS
>mysql-4.1.12-3.RHEL4.1
>mysqlclient10-3.23.58-4.RHEL4.1
>MySQL-shared-compat-4.0.25-0
These can be obtained via YUM
ts2_server_rc2_20201.tar.bz2
Steps:
Remove the password for sql-user teamspeak using webmin/shell/mysqladmin or similair tool and set it as
SET PASSWORD FOR '<mysqluser>'@'<host>' = OLD_PASSWORD('<password>'); as IceMatrix (http://member.php?u=105976) posted here: http://forum.goteamspeak.com/showthread.php?t=27200
drop the tables in your teamspeak-database (unforturnally I didnt find a way to avoid this) :(
Then do as mokum (http://member.php?u=90247) posted here http://forum.goteamspeak.com/showthread.php?p=114582#post114582
in ./mysql_sql/read_servers.sql replace the content with
select * from ts2_servers WHERE i_server_id > 0;
and in ./mysql_sql/read_channel_privilege.sql replace everything with
select * from ts2_channel_privileges where i_cp_server_id = :iServerID and i_cp_channel_id = :iChannelID and i_cp_client_id = :iClientID
then copy /usr/lib/mysql/libmysqlclient_r.so.10.0.0 to your TS2 dir (on linux "cp /usr/lib/mysql/libmysqlclient_r.so.10.0.0 /path/to/teamspeak")
You can properly remove the mysqlclient10-3.23.58-4.RHEL4.1 rpm now unless you need it for other things.
edit your server.ini accordingly (see example)
[DBEXPRESS]
sqldir=mysql_sql/
Drivername=mysql
Database=teamspeak-database
Hostname=localhost
User_name=sql-user-username
Password=sql-user-password
GetDriverFunc=getSQLDriverMYSQL
VendorLib=./libmysqlclient_r.so.10.0.0
LibraryName=./libsqlmy.so
Active=1
start teamspeak as a non-root user.
These steps brought my TS2 up and running smoothly
I am getting some errors in the server.log which I dont understand / knows why / how to fix.
ERROR,All,SQL, ExecSQL Error: EDatabaseError.MyISAM table 'ts2_servers' is in use (most likely by a MERGE table). Try FLUSH TABLES. in query: CREATE TABLE `ts2_servers` (
`i_server_id` int(11) NOT NULL auto_increment,
`s_server_name` varchar(40) default NULL,
`s_server_welcomemessage` varchar(80) default NULL,
`i_server_maxusers` int(11) default NULL,
`i_server_udpport` int(11) default NULL,
`s_server_password` varchar(80) default NULL,
`b_server_clan_server` int(11) default NULL,
`b_server_allow_codec_celp51` int(11) default NULL,
`b_server_allow_codec_celp63` int(11) default NULL,
`b_server_allow_codec_gsm148` int(11) default NULL,
`b_server_allow_codec_gsm164` int(11) default NULL,
`b_server_allow_codec_celp52` int(11) default NULL,
`b_server_allow_codec_speex2150` int(11) default NULL,
`b_server_allow_codec_speex3950` int(11) default NULL,
`b_server_allow_codec_speex5950` int(11) default NULL,
`b_server_allow_codec_speex8000` int(11) default NULL,
`b_server_allow_codec_speex11000` int(11) default NULL,
`b_server_allow_codec_speex15000` int(11) default NULL,
`b_server_allow_codec_speex18200` int(11) default NULL,
`b_server_allow_codec_speex24600` int(11) default NULL,
`s_server_webposturl` varchar(200) default NULL,
`s_server_weblinkurl` varchar(200) default NULL,
`b_server_active` int(11) default NULL,
`dt_server_created` varchar(20) default NULL,
`s_server_description` varchar(100) default NULL,
PRIMARY KEY (`i_server_id`)
) TYPE=MyISAM
Maybe you know why I am getting these errors?
On that note, its way past my bedtime, I hope I helped someone and that someone can help me :)
PS: Since more and more people are upgrading to MySQL4/5 then I dont understand why the TS devel team doesnt release a new build of TS2 with support for
libmysqlclient_r.so.14.x (yes yes I know they are busy busy busy with TS3, for a small build upgrade for TS2 cant take that many minutes to do?)