Results 1 to 15 of 43
-
20-12-2009, 00:18 #1
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- London
- Posts
- 32
MySQL Issue + how to stop the server
Edit by mod
Please don't use this outdated script anymore! The script got an overhaul long time ago.
Please use the minimal or startscript instead
Hi,
I got two questions actually. First one... I am not able to start the server using the MySQL database, the error is:
And I have no clue what that means, all data is correct. The database is up and running, it has a login incl. a password, all information is entered in the config file I had to create as documented in the TS3 Server manual. Any ideas?Code:Access denied for user 'root'@'localhost' (using password: NO)
The next question: when you start the TS3 server (in this case without the mySQL support)... how do you shut it down? I start it and then (using PuTTY) the command line is not coming back and using the server-connection to send commands always says that the serverstop command is not supported, even though it's documented.Last edited by dante696; 21-02-2011 at 12:12.
-
20-12-2009, 00:22 #2
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- lutz
- Posts
- 39
There has to be an issue with the mysql library. I can not start the server with mysql in any way be it from the command line, or from an ini file.
as far as stopping the server hit "ctrl c".
-
20-12-2009, 00:25 #3
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Norwich, UK
- Posts
- 140
You're not the first to report this issue.
To be safe double check that your root user has permission over the database (generally should be the case).
-
20-12-2009, 00:29 #4
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- lutz
- Posts
- 39
Just for giggles try to start your server using
"./ts3server_linux_x86 dbplugin=ts3db_mysql dbsqlcreatepath=create_mysql/"
And tell us what happens. It shouldn't connect to your actual mysql server database.
-
20-12-2009, 00:29 #5
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- London
- Posts
- 32
There is only one user and that is the root user indeed, thanks a lot for the tips, mates!
edit: no, it's not connecting, because of the error message mentioned above (just in case you're addressing me...
)
-
20-12-2009, 00:58 #6
-= TeamSpeak User =-
- Join Date
- Jun 2006
- Location
- Germany
- Posts
- 13
If you want to use mysql, first you have to create a file.
Call it ts3db_mysql.ini
Put this code into and upload it in the ts3 server folder.Code:[config] host=<your host> username=<username> password=<password> database=<db name>
Second, create a file call it ts3_server.
Put this code into. Copy this file to your ts3 folder.Code:#!/bin/bash DIR="/etc/ts3_server" case "$1" in start) cd ${DIR} ${DIR}/ts3server_linux_x86 dbplugin=ts3db_mysql ;; stop) killall ts3server_linux_x86 ;; *) echo "Usage: 'basename $0' {start|stop}">&2 exit 42 ;; esac exit 0
now you can start and stop your server with this script, and the
mysql function is loaded automatically.
Go into your TS3 folder and start the server: ./ts3_server start
To stop the server: ./ts3_server stop
And finally, sorry for my bad english, try my best.
-
20-12-2009, 01:01 #7
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- London
- Posts
- 32
But the main problem is, that it can't connect to mysql at all. I am not a pro, but that doesn't look like it would solve the issue of not accepting the root login data?
-
20-12-2009, 01:03 #8
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- London
- Posts
- 32
I think that if its working for him hes using a non passworded root account for his mysql... something which most of us will not accept as a solution.
If you are not using a root account, then please explain in further detail how you got it to work because I have been on this issue all day with no joy, and for each server load which fails an orphan dies or a teddy bear is killed in some far east country.
-
20-12-2009, 01:15 #9
-= TeamSpeak User =-
- Join Date
- Jun 2006
- Location
- Germany
- Posts
- 13
The mysql accountname, db name and password was set in the
ts3db_mysql.ini
1. go to your database and create a new database
2. create an db account specially for this new db
the first time you have to start the server with this command.
Go to the TS3 server folder an type:
with this command you create the database tables and start the server.Code:./ts3server_linux_x86 dbplugin=ts3db_mysql dbsqlcreatepath=create_mysql/
after this you can use the startscript.
-
20-12-2009, 01:21 #10
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- London
- Posts
- 32
I did that, maybe its a x64 thing, I see your using 32bit?
-
20-12-2009, 01:29 #11
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- lutz
- Posts
- 39
-
20-12-2009, 01:30 #12
-= TeamSpeak User =-
- Join Date
- Jun 2006
- Location
- Germany
- Posts
- 13
Ok, i try to write it step by step.
1. go to your database and create a new database
2. create an db account specially for this new db
3. Go to your TS3 server folder and create e new file,
call it ts3db_mysql.ini and put this code into:
Fill it out with your database informations. don't type the <>Code:[config] host=<your host> username=<username> password=<password> database=<db name>
4. In your TS3 folder create a new file, call it ts3_server and put
this code into:
5. start your server with this commandCode:#!/bin/bash DIR="/etc/ts3_server" case "$1" in start) cd ${DIR} ${DIR}/ts3server_linux_x86 dbplugin=ts3db_mysql ;; stop) killall ts3server_linux_x86 ;; *) echo "Usage: 'basename $0' {start|stop}">&2 exit 42 ;; esac exit 0
Now the database tables will be created.Code:./ts3server_linux_x86 dbplugin=ts3db_mysql dbsqlcreatepath=create_mysql/
From now, you can start and stop your server with this commands:
Code:./ts3_server start
Code:./ts3_server stop
I hope you all understand my english mismatch ;-)
P.S.: If the database tables are not created, go into your ts3-server_linux-x86\sql\create_mysql
folder. There you will find create_tables.sql which you can directly import in your database
-
20-12-2009, 01:34 #13
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- lutz
- Posts
- 39
I run this.
"./ts3server_linux_x86 dbplugin=ts3db_mysql dbsqlcreatepath=create_mysql/"
I get this.
Code:2009-12-20 01:27:47.976342|INFO |ServerLibPriv | | Server Version: 3.0.0-beta1 [Build: 9366] 2009-12-20 01:27:47.977479|CRITICAL|DatabaseQuery | | unable to load database plugin library, halting!
-
20-12-2009, 01:36 #14
-= TeamSpeak User =-
- Join Date
- Jun 2006
- Location
- Germany
- Posts
- 13
-
20-12-2009, 01:41 #15
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- lutz
- Posts
- 39
I imported...see attachment
my ts3db_mysql.ini
error.Code:[config] host=localhost port=3306 username=xxxxx password=xxxxxxx database=teamspeak socket=
Code:2009-12-20 01:37:23.255314|INFO |ServerLibPriv | | Server Version: 3.0.0-beta1 [Build: 9366] 2009-12-20 01:37:23.256631|CRITICAL|DatabaseQuery | | unable to load database plugin library, halting!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Router problems
By bigteam0385 in forum [TeamSpeak 2] Server SupportReplies: 4Last Post: 24-05-2011, 10:53 -
server on freeBSD 5.3
By Dulithol in forum [TeamSpeak 2] Server SupportReplies: 0Last Post: 01-02-2005, 21:36 -
Sicherheit
By Cuidas in forum [TeamSpeak 2] Server SupportReplies: 12Last Post: 10-09-2004, 18:12 -
Stopped server wont restart
By Black_ice8472 in forum [TeamSpeak 2] Server SupportReplies: 1Last Post: 24-06-2004, 15:27 -
Scheisse habe QDSL alles geht nur keine REG
By Creeper in forum [TeamSpeak 2] Server SupportReplies: 6Last Post: 29-08-2002, 09:06



