Hey guys, I'm trying to figure out a way to pass parameters after a command has been executed. Basically I want to run a mysql command to import a large sql file within php just in case the web host doesn't allow ssh access. The only problem is that mysql command prompts for password plus you have to press enter after you type in the password. Is there anyway to do this?
You can put the password on the command line with mysql: mysql --password=scalawag -u marvin -e 'select * from pantaloons' hosierydb