Import tables

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
lpantos
Posts: 16
Joined: 24 Jan 2007, 16:51

Import tables

Post by lpantos »

I have managed to create 2 databases - I took my mantis data from another box and thought I was inserting it into my new mantis database; instead,I created another. How do I (running Windows, not UNIX) insert the records from one database to the other.?

Thanks
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

Do you have a SQL client on Windows?
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
lpantos
Posts: 16
Joined: 24 Jan 2007, 16:51

Post by lpantos »

yes, I have phpadmin and mysql....
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

With PHPMyAdmin you can import/export database.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
lpantos
Posts: 16
Joined: 24 Jan 2007, 16:51

Post by lpantos »

when I go to import, I'm told the table already exists; I want to append to the table or update it; when I exported it, I exported as file type 'update' but I'm still having the same error.
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

Open the file and replace all "CREATE TABLE" by "CREATE TABLE IF NOT EXISTS"
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post by Narcissus »

This probably will cause more issues: you're going to have problems as both databases will be using the same IDs which will just cause headaches.

I'd look into using MantisConnect to try and basically read issues from one Mantis instance and write to another.
Post Reply