mysql 赋予权限报错Column count of mysql.user is wrong. Expected 45, found 43. The table is probably corrupted
原因是:5.6 数据迁移到5.7数据没有执行更新
解决办法:
例如我这里mysql 里面mysql.sock目录在/mysql/data
mysql_upgrade -S mysql.sock -p123456
dataexa-insight-ccb.qrtz_simple_triggers OK
dataexa-insight-ccb.qrtz_simprop_triggers OK
...
...
dataexa-insight-ccb-vt.tensorboard_url OK
sys.sys_config OK
Upgrade process completed successfully.
这样问题就解决