Try DISABLE KEYS
or
SET FOREIGN_KEY_CHECKS=0;
Make sure to
SET FOREIGN_KEY_CHECKS=1;
after.
More Related Contents:
- Problems with contenttypes when loading a fixture in Django
- How to use django models with foreign keys in different DBs?
- how to delete data from table A besides the customer service and director data in table B?
- Error related to only_full_group_by when executing a query in MySql
- SQL split values to multiple rows
- Get records with max value for each group of grouped SQL results
- How to declare a variable in MySQL?
- How to populate a table with a range of dates?
- Error Code: 2013. Lost connection to MySQL server during query
- SQL Performance UNION vs OR
- Using an Alias in SQL Calculations
- How do I select an entire row which has the largest ID in the table?
- Using SQL to determine word count stats of a text field
- MySQL/MariaDB – order by inside subquery
- How to transpose mysql table rows into columns
- View’s SELECT contains a subquery in the FROM clause
- Can MySQL replace multiple characters?
- MySQL incorrect key file for tmp table when making multiple joins
- Using ORDER BY and GROUP BY together
- Does the order of conditions in a WHERE clause affect MySQL performance?
- Difference between these two joining table approaches?
- Select a column with a keyword name
- MySQL Stored Procedures not working with SELECT (basic question)
- ERROR 1148: The used command is not allowed with this MySQL version
- MySQL export into outfile : CSV escaping chars
- Simple Random Samples from a MySQL Sql database
- Use Composite Primary Key as Foreign Key
- MySQL Select minimum/maximum among two (or more) given values
- Update multiple rows with multiple ‘where’ clauses for each individual row
- django cannot connect mysql in docker-compose