Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

MySQL 5.7Create user error report ERROR 1805 (HY000): Column count of mysql.user is wrong

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

MySQL 5.7Create user error report ERROR 1805 (HY000): Column count of mysql.user is wrong. Expected 45, found 42.

Reason for reporting an error:

The database has done the full library import of mysqldump, imported the user table in the mysql library, and the backup of mysqldump comes from MySQL version 5.5.

Solution:

Use mysql_upgrade to upgrade the user table of the database.

# mysql_upgrade-uroot-p

Mysql.time_zone_transition OK

Mysql.time_zone_transition_type OK

Mysql.user OK

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.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report