MySQL5.7 FAQ

Regarding the issue that the password does not meet the requirements, if you want to set the password freely, you can lower the password protection
mysql5.7: Your password does not satisfy the current policy requirements

example

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'baifendian';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql> 
mysql> set global validate_password_policy=0;
Query OK, 0 rows affected (0.00 sec)

mysql> set global validate_password_length=4;
Query OK, 0 rows affected (0.00 sec)

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'abcd';
Query OK, 0 rows affected (0.00 sec)

When creating a table or source, an error is
reported , and an error similar to "group by clause..." is reported.

Mainly because mysql5.7 defaults to sql_mode=only_full_group_by, and mysql5.7 can create a table successfully, but it will also report this group by error.

在my.cnf里mysqld下加入
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

Restart mysql, there will be no error

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326007803&siteId=291194637