Operating system error number 5 in a file operation. 问题解决方案


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用户的读写权限,即可解决问题。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM