MySQL Error – The target table xxx of the INSERT is not insertable into

While transferring data from one database to another database, you may receive the following error.

ERROR 1471 (HY000): The target table xxx of the INSERT is not insertable into.

Find out the reason by executing the following command in both source and target servers.

SELECT * FROM information_schema.TABLES WHERE TABLE_NAME = ‘xxx’;

The target table, where the insertion is taking place, is a view rather than a table, which is the main cause. View is a virtual table built from a SQL statement’s result set. You have two options: either ignore the insertions or remove the view from the target server.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s