I have an update query that tries to update a set of entities in my database but it gives me this error
Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.
This were the two queries i tried
UPDATE persona
,tagged
,facedetails
,facelog
,`name`
,comments
,likes
,dislikes
SET persona.`name` = "tobi",
persona.face_id = "nfd",
tagged.face_id = "nfd",
facedetails.face_id = "nfd",
facelog.face_id = "nfd",
`name`.face_id = "nfd",
comments.face_id = "nfd",
likes.face_id = "nfd",
dislikes.face_id = "nfd"
WHERE persona.face_id = "JD55ab"
This works in phpmyadmin but doesn;t work in mysql work bench 6.3 CE
the second query is the same, works in phpmyadmin but not the other
UPDATE persona
INNER JOIN tagged USING (face_id)
INNER JOIN facedetails USING (face_id)
INNER JOIN facelog USING (face_id)
INNER JOIN name USING (face_id)
INNER JOIN comments USING (face_id)
INNER JOIN likes USING (face_id)
INNER JOIN dislikes USING (face_id)
SET persona.name = "tobi",
persona.face_id = "nfd",
tagged.face_id = "nfd",
facedetails.face_id = "nfd",
facelog.face_id = "nfd",
name.face_id = "nfd",
comments.face_id = "nfd",
likes.face_id = "nfd"
dislikes.face_id = "nfd"
WHERE persona.face_id = "JD55a"
is the query correct for the mysql workbench? because my where
clause is present.