/var/lib/mysql-files/myfile.txt file contain
23/08/2020 mycluster1 192.168.0.10 1515G 22G 1493G 2 15 17
I want to update servercheck table by reading /var/lib/mysql-files/myfile.txt I tried many combination but couldn't find proper solution I also search import command but couldn't find update
mysqlimport -u myuser -pxxXxX1xF databasename UPDATE 'servercheck' (`id`, `date`, `cluster`, `ip`, `totalsize`, `used`, `available`, `-10MBfiles`, `+10MBfiles`, `totalfiles`) VALUES LOAD_FILE('/var/lib/mysql-files/myfile.txt') Where ip='192.168.0.10';
How can I update this table ?
Thanks heap
this is script if any one needed.
srvstat.txt
and this php code reads and update table.