mysql建立视图的时候,需要执行以下命令: grant all privileges on *.* to xxxx@"%" identified by "."; 刷新配置 flush privileges;