I have a program that works on two identical MySQL databases. One database is on a
remote server and the other is on the same computer on which the program runs.
The program first updates one table in both databases then inserts a new record
in another table in both. Identical SQL statements are used for both databases.
The problem is that while it carries out the updating of both databases
correctly, it inserts the new record in the remote database only but not on
the local one.
I repeat: the databases are identical and the SQL statements are identical.
The program has the proper permissions for inserting on both databases.
I can’t figure out why it’s failing on the local db (without any error
message from the SQL server). And yes, the statements are followed by
db.commit on both cases.