Re: Inserting a file into mysql database (BLOB)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthew Benjamin wrote:
> Can anyone tell me how to insert a file (BLOB) into a mysql database,
> from the command line NOT from a webpage.
> 
If the file is in the proper format, you can try something like:

mysql -u <user> -p < BLOB
or
mysql -u <user> -p <database> < BLOB

I have used this with mysql backups before. If you do not need a
password, then skip the -p option. If you use it, you will be
prompted for the password.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux