Results 1 to 7 of 7
-
28-02-2011, 19:03 #1
-= TeamSpeak Lover =-
- Join Date
- Jan 2010
- Location
- Duesseldorf, Germany
- Posts
- 33
howto convert my sqlite-DB into a MySQL-DB?
Hello,
I'm sure there are some threads about this, but I can't find them. So please help me with my problem.
I'm using my TS3-Server together with a sqlite-DB and don't have any chance to make some changes in this DB (e.g. deleting not longer needed users, chance rights if I can't do this via the client).
Now I'm searching for a way to convert the DB into MySQL because I can use phpMyAdmin to do this things afterwords.
-
28-02-2011, 19:14 #2
Hey,
to be able to edit the database it must not be mySQL.
How you can edit your database:
Follow point 2.1 here.
If you want to convert it to mySQL, use the plugin described in the link and hit "Database" and then "Export Database". That will create you a sql file. Simply import this file via phpmyadmin (or other software) to your database-server
-
28-02-2011, 22:15 #3
-= TeamSpeak Lover =-
- Join Date
- Jan 2010
- Location
- Duesseldorf, Germany
- Posts
- 33
It was a nice tip to modify my sqlitedb directly, but this way is not as comfortable as using phpmyadmin. The database is on my linux-server I rent. It is not at my home and I have no GUI on it. So I can't run Firefox there. I've to transfer the DB to my local PC, modify it and upload it to the server again.
I will try your second idea and import it in a MySQL-DB. I will report here, wether it works or not.
Many thanks so far!
EDIT: It isn't so easy. There are some differences in the syntax between the SQl-File created by SQLITE and MySQL. Therefor I have to find out all of them and edit the File before I will be able to import it in MySQL. Or is there an easier way to do it?
EDIT2: There are not so many differences as i fear. I loaded the file in an editor and use the "replace" function, to do 2 replcements. 1. replace "AUTOINCREMENT" by "AUTO_INCREMENT", 2. replace " by [nothing] (delete all "). Then I was able to import it to a fresh MySQL-Databese. Now I have to found the correct settings to use this Databse instead. But I think, someone here can tell me...Last edited by Harry.Fox; 28-02-2011 at 23:10.
-
01-03-2011, 08:13 #4
-= TeamSpeak Guru =-
- Join Date
- May 2010
- Posts
- 6,372
Add INFO : NEVER USE THE FIREFOX SQLITE PLUGGIN TO MANAGE THE TEAMSPEAK DATABASE FILE
We had to help a lot of server owner (and some hoster) to restructure their file. This pluggin can create inconsistencies of syntax.
It's recommended to use a program like SQliteBrowser or SQLite Expert (free soft)
-
01-03-2011, 08:31 #5
-= TeamSpeak Lover =-
- Join Date
- Jan 2010
- Location
- Duesseldorf, Germany
- Posts
- 33
hm... after I modified the SQL-File the way I discriebed above, I don't have any problems to import it in MySQL and the Database looks fine. Next step is to tell the server that he should use the MySQL-DB (perhaps someone can post me some hints, what to do). I haven't time yet to do so, but when it crashes I know the reason. Thanks!
-
01-03-2011, 08:37 #6
-= TeamSpeak Guru =-
- Join Date
- May 2010
- Posts
- 6,372
For that you have all information in the documentation :
Originally Posted by Harry.Fox
TeamSpeak 3 Server Quick Start.txt
-
30-07-2012, 15:12 #7
-= TeamSpeak User =-
- Join Date
- Dec 2011
- Posts
- 12
how to switch from sqlitedb to mysql database
i want to use the mysql server but I don't know how to. Can I use old data from sqlite to mysql?
Please tell me how to do please. Thanks.
This thread was moved
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
howto convert database SQLITE to MySQL?
By meliorus in forum Linux / FreeBSDReplies: 1Last Post: 05-04-2010, 14:19 -
sqlite to mysql howto
By wargave in forum Server SupportReplies: 1Last Post: 02-01-2010, 13:57 -
Convert MySQL->SQLite
By AndyGR42 in forum [TeamSpeak 2] Server SupportReplies: 1Last Post: 02-10-2009, 14:06 -
Convert mysql data to sqllite
By HerrG in forum [TeamSpeak 2] Server SupportReplies: 1Last Post: 10-01-2007, 10:40 -
Convert server.dbs to MySQL
By marcel in forum [TeamSpeak 2] Server SupportReplies: 2Last Post: 18-09-2005, 22:51


Reply With Quote
