MySQL报错解决

1、ERROR 1045 (28000): Access denied for user ‘zabbix’@‘192.168.75.129’ (using password: YES)

解决办法:

重设密码
[root@ansible ~]# mysql
MariaDB [(none)]> grant all on *.* to [email protected] identified by '123456';
MariaDB [(none)]> flush privileges;

2、ERROR 1118 (42000) at line 1284: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.

解决方法:

MariaDB [(none)]> set global innodb_strict_mode  = 0;
MariaDB [(none)]> flush privileges;

你可能感兴趣的:(运维笔记,mysql,linux,数据库)