如图所示,mysqlworkbench可以远程连接但mysql客户端却不行,这是为什么?
服务器上的权限应该是没问题的吧。
mysql> show grants for root;+--------------------------------------------------------------------------------------------------------------------------------+| Grants for root@% |+--------------------------------------------------------------------------------------------------------------------------------+| GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY PASSWORD '*2447D497B9A6A15F2776055CB2D1E9F86758182F' WITH GRANT OPTION | +--------------------------------------------------------------------------------------------------------------------------------+