Mysql entries by mutiple line file in Shell -


i can read file, problem insert of string read in file in mysql language. tried add strings contained file database (phpmyadmin).

here shell :

apps="/test/list.txt"   app in $apps;   mysql -utoto -ptiti -h localhost test << eof   insert rpm (applications) values('$app');   eof   done 

the problem result in database not values of file path of file. help...!


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -