Roman Piekarski

Roman Piekarski Programista do
wynajęcia

Temat: mysql - acces denied

Witam,

Mam problem z zapytaniem typu: select ... INTO OUTFILE '/tmp/file.csv'

Dostaje acces denied for user. W momencie gdy to samo zapytanie tworze z poziomu usera z prawami administratora niemam takiego problemu.

Czy mozecie mi wskazać jakie prawa powinienem nadac userowi aby mogl on zapisywac do pliku csv rezultat z bazy danych?

Pozdrawiam

konto usunięte

Temat: mysql - acces denied

Z MySQL Reference Manual:

The SELECT ... INTO OUTFILE 'file_name' form of SELECT writes the selected rows to a file. The file is created on the server host, so you must have the FILE privilege to use this syntax. file_name cannot be an existing file, which among other things prevents files such as /etc/passwd and database tables from being destroyed. As of MySQL 5.1.6, the character_set_filesystem system variable controls the interpretation of the file name.
Roman Piekarski

Roman Piekarski Programista do
wynajęcia

Temat: mysql - acces denied

Dzieki, to wiele wyjasnia:) Wlasnie chciałem wleciec tu i dopisac odpowiedz na swoje pytanie gdyz udalo mi sie znalezc odpowiedz. Jednakze dzieki za twoja pomoc i utwierdzenie mnie w przekonaniu iz jest to wlasciwe rozwiazanie!

Pozdrawiam

Marcin Hłybin:
Z MySQL Reference Manual:

The SELECT ... INTO OUTFILE 'file_name' form of SELECT writes the selected rows to a file. The file is created on the server host, so you must have the FILE privilege to use this syntax. file_name cannot be an existing file, which among other things prevents files such as /etc/passwd and database tables from being destroyed. As of MySQL 5.1.6, the character_set_filesystem system variable controls the interpretation of the file name.
>

Następna dyskusja:

Freebsd + Load Balancing dl...




Wyślij zaproszenie do