Community Forums Today's Posts     Member List     Archive    
Results 1 to 7 of 7
  1. #1
    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.

  2. #2
    Join Date
    Mar 2010
    Location
    Germany
    Posts
    181
    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

  3. #3
    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.

  4. #4
    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)

  5. #5
    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!

  6. #6
    Join Date
    May 2010
    Posts
    6,372
    Quote Originally Posted by Harry.Fox
    Next step is to tell the server that he should use the MySQL-DB (perhaps someone can post me some hints, what to do).
    For that you have all information in the documentation :
    TeamSpeak 3 Server Quick Start.txt

  7. #7
    Join Date
    Dec 2011
    Posts
    12

    Arrow 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

  1. howto convert database SQLITE to MySQL?
    By meliorus in forum Linux / FreeBSD
    Replies: 1
    Last Post: 05-04-2010, 14:19
  2. sqlite to mysql howto
    By wargave in forum Server Support
    Replies: 1
    Last Post: 02-01-2010, 13:57
  3. Convert MySQL->SQLite
    By AndyGR42 in forum [TeamSpeak 2] Server Support
    Replies: 1
    Last Post: 02-10-2009, 14:06
  4. Convert mysql data to sqllite
    By HerrG in forum [TeamSpeak 2] Server Support
    Replies: 1
    Last Post: 10-01-2007, 10:40
  5. Convert server.dbs to MySQL
    By marcel in forum [TeamSpeak 2] Server Support
    Replies: 2
    Last Post: 18-09-2005, 22:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •