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用戶的讀寫權限,即可解決問題。