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 yo
ERROR 1054 (42S22): Unknown column ‘password‘ in ‘field list‘
最新推荐文章于 2024-01-22 09:25:29 发布