ERROR code:1175 you ARE USING SAFE UPDATE MODE an_mysql

Source: Internet
Author: User

Fast and Efficient use: SET sql_safe_updates = 0; don't look at the bottom!

When using MySQL Workbench for database management updates today, the following error message is encountered when executing an updated statement:

Copy Code code as follows:

Error code:1175
You are using Safe update mode and your tried to update a table without a WHERE that uses a KEY column

After a search to find the original MySQL Workbench security settings. This error is prompted when the SQL statement to execute is batch-updated or deleted.

The workaround is as follows:

1. Open the Workbench menu [edit]->[preferences ...]
2. Switch to [SQL Editor] Page
3. Remove the hook before [forbid UPDATE and DELETE statements without a WHERE clause (safe updates)]
4. Click the [OK] button
5. The final step remember to restart the workbench, otherwise you will still get this error hint.

The following figure:

Running the SQL statement again is no problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.