I know similar questions have been asked, and answers state to use the --force or -f parameter in the console window, which I just can't use.
My PHP script generates an .sql file for updating a database of a new shop with the data of an old shop (different but similar systems, almost identical database structures).
This .sql file then needs to be imported in the new database using phpMyAdmin (or similar software running in a web browser), so I just can't use any console options.
I already use CREATE TABLE IF NOT EXISTS and INSERT IGNORE INTO to avoid errors on multiple imports, but I still don't have a solution for ignoring ALTER TABLE table ADD column statements.
My thoughts on this now go in a direction, where the force option might be set in the beginning of the .sql file like a variable using the /!xxxxx syntax like /!40101 SET NAMES utf8 */;, but I can't seem t find any information on that.
Does anyone know the syntax to use if any exists?
Thanks a lot in advance!