xCav8r
21-01-2005, 07:09
After figuring out that TS2 doesn't work with MySQL 4.1 (http://forum.goteamspeak.com/showthread.php?t=19619), I was able to establish a connection from my Windows TS2 Server to MySQL 4.0.23, both running on the same machine. I have not, however, successfully connected a TS2 server on a remote machine to the MySQL running on my server. Has anyone successfully done this?
Here's the server.ini file of the Windows TS2 Server running on the same machine where MySQL resides. This works without any problems.
[DBEXPRESS]
sqldir=C:/Program Files/Teamspeak2_RC2/mysql_sql/
Drivername=mysql
Database=teamspeak
Hostname=localhost
User_name=db_user (edited for post)
Password=db_pass (edited for post)
GetDriverFunc=getSQLDriverMYSQL
VendorLib=libmySQL.dll
LibraryName=dbexpmysql.dll
Active=1
And here's the one from the remote TS2 Server. This has yet to establish a connection.
[DBEXPRESS]sqldir=C:/Program Files/Teamspeak2_RC2/mysql_sql/
Drivername=mysql
Database=teamspeak
Hostname=192.168.2.100
User_name=db_user (edited for post)
Password=db_pass (edited for post)
GetDriverFunc=getSQLDriverMYSQL
VendorLib=libmySQL.dll
LibraryName=dbexpmysql.dll
Active=1
As you can see, the only difference between the two is the hostname. In addition to the I.P address of my server, I've tried it with the hostname as well, which resolves with no problems in all TCP/IP applications. For example, I can connect to the MySQL server from this PC using MySQL Administrator. Further, there is no firewall to complicate things, since it sits on the other side of my router. Both this PC and the Server are on my LAN, and yes, the I.P address of the server is correct.
The user I created for TS2 has ample access to the db, since it works without problems from the TS2 Server that resides on the same machine as the MySQL server. The host of the user is "%", but I've also tried doing it with the name of this PC and alternatively with the I.P. address of this PC. I can access the MySQL server from this PC using that user with MySQL Administrator with no problems, but I can't get it to work with TS2 Server.
Last but not least, here's the log file for the server on this PC. It's the same message every time.
20-01-05 17:52:47,ALL,Info,server, Server init initialized
20-01-05 17:52:47,ALL,Info,server, Server version: 2.0.20.1 Win32
20-01-05 17:52:47,ERROR,All,SQL, Database initialization error: EDatabaseError.dbExpress Error: Invalid Username/Password
20-01-05 17:52:47,ERROR,All,SERVER, Start_Server: unable to open database
20-01-05 17:52:47,ERROR,All,GENERAL, critical error, shutdown initiated
Anyone have any suggestions? Can this even be done?
Here's the server.ini file of the Windows TS2 Server running on the same machine where MySQL resides. This works without any problems.
[DBEXPRESS]
sqldir=C:/Program Files/Teamspeak2_RC2/mysql_sql/
Drivername=mysql
Database=teamspeak
Hostname=localhost
User_name=db_user (edited for post)
Password=db_pass (edited for post)
GetDriverFunc=getSQLDriverMYSQL
VendorLib=libmySQL.dll
LibraryName=dbexpmysql.dll
Active=1
And here's the one from the remote TS2 Server. This has yet to establish a connection.
[DBEXPRESS]sqldir=C:/Program Files/Teamspeak2_RC2/mysql_sql/
Drivername=mysql
Database=teamspeak
Hostname=192.168.2.100
User_name=db_user (edited for post)
Password=db_pass (edited for post)
GetDriverFunc=getSQLDriverMYSQL
VendorLib=libmySQL.dll
LibraryName=dbexpmysql.dll
Active=1
As you can see, the only difference between the two is the hostname. In addition to the I.P address of my server, I've tried it with the hostname as well, which resolves with no problems in all TCP/IP applications. For example, I can connect to the MySQL server from this PC using MySQL Administrator. Further, there is no firewall to complicate things, since it sits on the other side of my router. Both this PC and the Server are on my LAN, and yes, the I.P address of the server is correct.
The user I created for TS2 has ample access to the db, since it works without problems from the TS2 Server that resides on the same machine as the MySQL server. The host of the user is "%", but I've also tried doing it with the name of this PC and alternatively with the I.P. address of this PC. I can access the MySQL server from this PC using that user with MySQL Administrator with no problems, but I can't get it to work with TS2 Server.
Last but not least, here's the log file for the server on this PC. It's the same message every time.
20-01-05 17:52:47,ALL,Info,server, Server init initialized
20-01-05 17:52:47,ALL,Info,server, Server version: 2.0.20.1 Win32
20-01-05 17:52:47,ERROR,All,SQL, Database initialization error: EDatabaseError.dbExpress Error: Invalid Username/Password
20-01-05 17:52:47,ERROR,All,SERVER, Start_Server: unable to open database
20-01-05 17:52:47,ERROR,All,GENERAL, critical error, shutdown initiated
Anyone have any suggestions? Can this even be done?