
# MySQL: Can't create/write to file

> Organizations using MySQL may see an error message similar to the following when attempting to login to the system: Login failed: An error occurred: Startup task: DatabaseIndexAndKeyManager failed to execute successfully: java.sql.SQLException: Can't create/writeto file 'C:\WINNT\TEMP\#sql_718_0.MYI

URL: https://www.hannonhill.com/cascadecms/latest/articles/cascade-administration/installation-and-upgrades/database/mysql-cant-create-write-file.html
category: Cascade Administration
article-type: reference
content-kind: faq
release-availability: all
tags: errors, installation, database
updated: 2026-10-06

Organizations using MySQL may see an error message similar to the following when attempting to login to the system:

```xml
Login failed: An error occurred: Startup task: DatabaseIndexAndKeyManager
failed to execute successfully: java.sql.SQLException: Can't create/write
to file 'C:\WINNT\TEMP\#sql_718_0.MYI'
```

This typically occurs immediately after an upgrade has been performed. In most cases, the problem can be attributed to anti-virus software running on the application server.

It is recommended that any on-access scanning be temporarily disabled so that MySQL is able to write files to the directory specified in the error message.
