UBB.Dev
Posted By: monkeyra quick way of exporting tables? - 02/22/2005 11:43 PM
OK, as you know, with ubbthreads, if you wish to export from another program, eg, vbulletin, and import and convert to ubbthreads, you have to manually export each table seperatly as explained here:

http://www.ubbcentral.com/support/docs/ubbthreads/UBBTadmin.html#_Toc80168406


Now then, is there a quick way of doing this?
Posted By: Astaran Re: quick way of exporting tables? - 02/22/2005 11:50 PM
You can use phpMyAdmin if you want to use a GUI to export the database or mysqldum p (commmand line tool).

http://www.phpmyadmin.org
http://dev.mysql.com/doc/mysql/en/mysqldump.html
Posted By: monkeyra Re: quick way of exporting tables? - 02/23/2005 12:15 AM
I didnt think that ubb supports full database imports?
Only table csv files....

Thats my problem, exporting each table one by one is very time consuming, even in phpmyadmin.
Posted By: Astaran Re: quick way of exporting tables? - 02/23/2005 11:53 AM
Both, phpMyAdmin and mysqldump can export to CSV.

If you use mysqldump like this:
mysqldump –u <user> –p –t -T <output directory> --fields-enclosed-by='"' --fields-terminated-by=',' <db_name>

It automatically genereates a seperate file for each table in the database.
Posted By: monkeyra Re: quick way of exporting tables? - 02/23/2005 12:11 PM
hmmm, i'm not too confident using mysqldump command line.

How would you export a whole database into seperate tables in one go using phpmyadmin?
I can only find the option to export it table by table...
Posted By: Astaran Re: quick way of exporting tables? - 02/23/2005 12:26 PM
You can't with phpMyAdmin, you have to do it for each table as stated in the documentation.
Posted By: monkeyra Re: quick way of exporting tables? - 02/23/2005 2:26 PM
Ah bugger.
Thanks mate.
© UBB.Developers