Import database
Anyone here knows anything about importing database from script to script ?
Like convert data from one to other with php functions ? I have 2mb database with 1300 entries i need to convert to my script so i'm looking for a way. Any ideas ? |
can you give an example?
|
Code:
INSERT INTO `it_post` (`id`, `autor`, `date`, `short_story`, `full_story`, `xfields`, `title`, `descr`, `keywords`, `category`, `alt_name`, `comm_num`, `allow_comm`, `allow_main`, `allow_rate`, `approve`, `fixed`, `rating`, `allow_br`, `vote_num`, `news_read`, `votes`, `access`, `symbol`, `flag`, `editdate`, `editor`, `reason`, `view_edit`, `tags`, `metatitle`) VALUES convert to Code:
INSERT INTO `pbit_videos` (`video_id`, `member_id`, `filename`, `preview`, `description`, `fcategorie`, `dateadded`, `adult`, `active`, `totalvotes`, `totalscore`, `rated`, `comments`, `totalcomments`, `totalviews`, `notes`) VALUES |
Convert a SQL dump isn't the best solution.
You can migrate datas easily by rename and replace columns from the db source. Don't search complicated ^^ |
it's not easy because new db needs 4 times less data
|
All times are GMT +2. The time now is 13:49. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.