MySQL Error MY-010097 – ER_SEC_FILE_PRIV_EMPTY

MySQL Error Message

Insecure configuration for –secure-file-priv: Current
value does not restrict location of generated files. Consider
setting it to a valid, non-empty path.

Reason for the Error

ER_SEC_FILE_PRIV_EMPTY was added
in 8.0.2.