T
T
Tarakanishe2021-04-14 10:11:25
MySQL
Tarakanishe, 2021-04-14 10:11:25

How to download blob via powershell?

It is necessary to remotely load a blob file into the table, but powershell refuses to do this. Here is the request:

$sql.CommandText = "UPDATE field SET config = LOAD_FILE('c:/users.bin') WHERE name = 'DynField'"

If I thus try to load, then in the table value [NULL]. Can you please tell me how to upload a file even not through powershell, does the file have to be on the database server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaxKozlov, 2021-04-14
@MaxKozlov

the command is executed on the server, so the file must be available on the server. you can put in a ball

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question