Forum Moderators: open
Basic pipe:
cat batch.sql ¦ mysql -uusername -ppassword databasename Basic pipe with sed substitution of MYUSERNAME -> john:
cat batch.sql ¦ sed 's/MYUSERNAME/John/g' ¦ mysql -uusername -ppassword databasename
My basic dillema is that i need to duplicate 62 tables exactley as i have them in the batch file(which is a dump of the database), but i need to append a username to the begging of each of the new tables. But this must all be done from a form with php.
Any help appreciated!
~3321thec