Secure-file-prev (MySQL)
Naar navigatie springen
Naar zoeken springen
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Foutmelding
Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 0.012 sec
Aanvullende gegevens
Dit betreft een systeemvariabele:
mysql> select @@secure_file_priv; +-----------------------+ | @@secure_file_priv | +-----------------------+ | /var/lib/mysql-files/ | +-----------------------+ 1 row in set (0.00 sec)
Of:
mysql> show variables like "secure_file_priv"; +------------------+-----------------------+ | Variable_name | Value | +------------------+-----------------------+ | secure_file_priv | /var/lib/mysql-files/ | +------------------+-----------------------+ 1 row in set (0.00 sec)
Oftewel, standaard mag je alleen in- & uitvoeren naar deze map.
Oplossing
secure_file_priv=""
toevoegen aan[mysqld]
-gedeelte van/etc/mysql/my.cnf
- Aanpassen in~/.my.cnf
werkt niet.- Nu kun je overal schrijven. Dus handig om een pad mee te geven
- Zie Configuratiebestanden (MySQL) voor details.