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 -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -