D:\TestSoftware\mysql5731>cd bin
D:\TestSoftware\mysql5731\bin>mysql -uroot -p
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.31 MySQL Community Server (GPL)
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use mysql
Database changed
mysql> update user set host = '%' where user = 'root';
ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'
mysql> select host from user where user ='root'
-> select host from user where user ='root';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select host from user where us
ERROR 1054 (42S22): Unknown column ‘password‘ in ‘field list‘
最新推荐文章于 2024-01-22 09:25:29 发布
在尝试执行MySQL操作时,遇到了错误'ERROR 1054 (42S22): Unknown column 'password' in 'field list''。这通常意味着引用的字段不存在于指定的表中。问题可能源于字段名拼写错误或者该字段已被删除。参考文章链接提供了一个解决方案,指出可能是创建的索引长度超过了1000字节的限制。

最低0.47元/天 解锁文章
4975

被折叠的 条评论
为什么被折叠?



