My old sql server used to add junk to the table declarations in dumps. For example:
But that last line should just be ENGINE=MyISAM;
I upgraded but now the problem is that the other server won't take the sql file because of this added stuff and it does not support it. I tried a windows search and replace util, but it does not seem to work, it just won't replace it. Is there a tool in linux I can do a search/replace on rediculusly large files? I'm talking 1GB here, so no way I can open that in a windows editor. (I've tried, it ain't pretty)
Code:
CREATE TABLE `ibf_admin_sessions` (
`session_id` varchar(32) NOT NULL default '',
`session_ip_address` varchar(32) NOT NULL default '',
`session_member_name` varchar(250) NOT NULL default '',
`session_member_id` mediumint(8) NOT NULL default '0',
`session_member_login_key` varchar(32) NOT NULL default '',
`session_location` varchar(64) NOT NULL default '',
`session_log_in_time` int(10) NOT NULL default '0',
`session_running_time` int(10) NOT NULL default '0',
PRIMARY KEY (`session_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
But that last line should just be ENGINE=MyISAM;
I upgraded but now the problem is that the other server won't take the sql file because of this added stuff and it does not support it. I tried a windows search and replace util, but it does not seem to work, it just won't replace it. Is there a tool in linux I can do a search/replace on rediculusly large files? I'm talking 1GB here, so no way I can open that in a windows editor. (I've tried, it ain't pretty)