我最近迁移我的mysql到另一台服务器, 迁移后,有点奇怪。mysql显示用户之间的不同数据
当我使用MySQL作为远程主机:
$ mysql -u root -p -h remote
mysql> select id from People order by id desc limit 10;
+-----+
| id |
+-----+
| 941 |
| 940 |
| 939 |
| 938 |
| 937 |
| 936 |
| 935 |
| 934 |
| 933 |
| 932 |
+-----+
但是,当我从本地主机使用:
$ mysql -u root -p
mysql> select id from People order by id desc limit 10;
+-----+
| id |
+-----+
| 939 |
| 938 |
| 937 |
| 936 |
| 935 |
| 934 |
| 933 |
| 932 |
| 931 |
| 930 |
+-----+
查询结果缺少2行!
我还要检查的特权:
远程情况下,它显示
mysql> show grants;
+--------------------------------------------------------------------------------------------------------------------------+
| Grants for [email protected] |
+--------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'example.com' IDENTIFIED BY PASSWORD '521f3dd02c6d22f8' WITH GRANT OPTION |
+--------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)
本地主机,它是有相同的权限,
mysql> show grants;
+---------------------------------------------------------------------+
| Grants for [email protected] |
+---------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION |
+---------------------------------------------------------------------+
1 row in set (0.00 sec)
有人可以帮我,为什么查询结果用户@主机有什么不同?
可能是id序列不同。? 。在一种情况下是先进的两个? .. – scaisEdge
我发现原因,其原因是因为桌面崩溃在某种原因...谢谢你。 – SSARCandy