假设创建的数据库为data_ana,用户是test。 解决方法: 赋予所有远程用户使用权限。 mysql> grant all privileges on data_ana.* to 'test'@'%' identified by 'test'; 然后 service mysqld restart