Computer Science Canada Import script?? |
Author: | unknowngiver [ Tue Jul 04, 2006 3:14 pm ] | ||||
Post subject: | Import script?? | ||||
hey i have two databases! one is running through a script..and one is just a database with a table! The second database [without a script] has alot of Game cheats and i wanted to import them into my running database...but they both have different structures, i know its possible to do it because i have seen pplz convert from PHPBB to IPB to Vbulletin which all have different my sql structures!! here are the two structures: Structure of the database that i am running:
Structure of the database that i want to import
can anyone help me out on this? thanks |
Author: | rdrake [ Tue Jul 04, 2006 8:37 pm ] | ||||||
Post subject: | |||||||
Just create a connection to both databases, then retrieve the data from the one and place it in the other.
Oh, and just a quick suggestion. For the following line, typically the id column is named just id. Many frameworks (ie. Rails) expect it to be this way, and it's a good habit to follow that.
Good luck. |
Author: | octopi [ Wed Jul 05, 2006 5:04 pm ] |
Post subject: | |
Hello, Heres what I'd do, I'd make a new table that is the maximum for each field. Then I'd use a program like mysql front for windows, it lets you connect to a database and export data, and then you can connect to the other and import it. You could do it in php, but doing it with mysql-front is way easier. If you want me to do it, pm me and I can help ya out. http://www.mysqlfront.de/ |
Author: | unknowngiver [ Tue Jul 11, 2006 8:17 pm ] |
Post subject: | |
hey guyz i tried but couldnt get it ...can anyone add me and guide me through it? please and thank you |