Forums:
buenas! estoy creando un modulo especifico para cargar rips, se suben en modo txt y lo introduce a la bd de mysql, esto me funcionaba bien pero de repente ahora me sale este error que he buscado en Internet pero no encuentro nada al respecto
The MariaDB server is running with the --secure-file-priv option so it cannot execute this statement
1290
Os suena? alguna idea?
Utilizo Centos 7.1 con mariadb de serie :)
ejecuta el servicio sin la
ejecuta el servicio sin la opción "--secure-file-priv" ;)
bye
;)
Un poco más de información:
Un poco más de información:
[quote=https://mariadb.com/kb/en/mariadb/server-system-variables/#secure_file_priv]Description: LOAD DATA, SELECT ... INTO and LOAD FILE() will only work with files in the specified path. If not set, the default, the statements will work with any files that can be accessed.
Commandline: --secure-file-priv=path
Scope: Global
Dynamic: No
Data Type: path name
Default Value: None[/quote]
Así que puedes ver cual es el directorio especificado y cargar los archivos que necesites ahí o simplemente levantar el servicio sin esa opción especificada ;)
Fuente:
https://mariadb.com/kb/en/mariadb/server-system-variables/#secure_file_priv
https://www.percona.com/doc/percona-server/5.5/management/secure_file_priv_extended.html
bye
;)