Difference between revisions of "Tutorial: PhpRunner 9.8 and Photo Display"
Line 33: | Line 33: | ||
</source> | </source> | ||
==Script to copy PHPRunner Output Folder on MacBook to Hadoop01== | ==Script to copy PHPRunner Output Folder on MacBook to Hadoop01== | ||
+ | <br /> | ||
+ | * Change '''voidfunction''' to real password | ||
<br /> | <br /> | ||
::<source lang="bash"> | ::<source lang="bash"> | ||
Line 48: | Line 50: | ||
#echo -n "Enter mysql root password on MacBook: " | #echo -n "Enter mysql root password on MacBook: " | ||
− | mysqldump -u root - | + | mysqldump -u root -pvoidfunction NohoSkies >> NohoSkies.sql |
echo "rsyncing dum to hadoop01" | echo "rsyncing dum to hadoop01" | ||
Line 55: | Line 57: | ||
echo "loading up dump on remote db" | echo "loading up dump on remote db" | ||
ssh -tt dominique@hadoop01.dyndns.org <<EOF | ssh -tt dominique@hadoop01.dyndns.org <<EOF | ||
− | mysql -u root - | + | mysql -u root -pvoidfunction < ~/Downloads/NohoSkies.sql |
exit | exit | ||
EOF | EOF |