In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what mysql security mode means, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
What is safe mode? What does mysql security mode mean?
In mysql, if no where condition is added to update and delete, the data will all be modified. Not only developers who are new to mysql will encounter this problem, but engineers with some experience will inevitably forget to write where conditions. In order to avoid all the modification and deletion of data caused by errors, the safe mode of mysql can be turned on.
Opening and closing of safe mode
After connecting to the database, view the status of the current mysql security mode
Mysql > show variables like 'sql_safe_updates';+-+-+ | Variable_name | Value | +-+-+ | sql_safe_updates | ON | +-+-+ 1 row in set (0.00 sec)
The above query command example indicates that the current mysql is open in safe mode.
Set sql_safe_updates=1; / / safe mode on status set sql_safe_updates=0; / / safe mode off statu
In the update operation: the update is rejected when the column (column) in the where condition has no index available and no limit restriction. Updates are rejected when the where condition is constant and there is no limit limit.
In the delete operation: delete is rejected when the ① where condition is constant, the ② or where condition is empty, and the column (column) in the ③ or where condition has no index available and no limit restriction.
The above is all the content of the article "what does mysql Security Mode mean?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.