mysql 5.7数据库体积达到32G,磁盘空间不足,需要迁移,迁移后出现:
2018-09-05T03:17:41.016760Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory. It may also be you have created a subdirectory of the same name as a data file.
百搜不得其解,忽然想到mysql服务启动貌似使用的是net service账号,
因此,将新迁移数据文件的目录增加net service用户的读写权限,即可解决问题。