I have a query that I run once a day that takes certain tables from my database and puts them into a single table so that I can quickly export the information in any format I require.
I am running into a problem however that gives me the following error: "SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction"
From what I understand it sounds like my query is trying to get a lock on the table when there already is a lock in place. However I confess that I do not know anything about table locking or how it works.
Really I am just trying to read the other tables and not write to them, is there a way that I can create the query but not request a lock?
My query is ridiculously long so that's why I did not post it. If there are certain parts that you need let me know and I can post them.