In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to open the loose mode of mysql. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
The way for mysql to turn on loose mode is to add "sql_mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" under the [mysqld] module of mysql's configuration file my.cnf.
How to turn on loose mode in mysql:
Open non-strict mode in mysql
Add under the [mysqld] module of the configuration file my.cnf of mysql
Sql-mode= "STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
If you want to insert the int field into string, you can use the last one, NO_ENGINE_SUBSTITUTION.
Location of the mysql configuration file
On the linux
Vi / etc/mysql/mysql.conf.d/mysqld.cnfmysql.server start
On mac.
Vi / usr/local/etc/my.cnf
The configuration files on mac are not as complete as those in linux, but let's just configure them directly, because the order in which they are executed is
The system will look for my.cnf in this order, and the following three files only find / usr/local/etc/my.cnf
This is the end of etc/my.cnf/etc/mysql/my.cnf/usr/local/etc/my.cnf~/.my.cnf 's method of opening loose mode in mysql. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
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.