Been working all day on this one.. when i request the table it gives me the entire data base..
#!/bin/bash # mysqldump --user root --password=mypw sellnjho_realpro wp_posts > atest.sql mysqldump sellnjho_realpro wp_posts > atest.sql echo "All Done." Whether i add the table wp_posts or not it pulls the entire db I included the line with pw too in case that helps but the next line gives me the sql in full w/o the use of user or pw..
I tried user and pass to see and it failed all together telling me that using the user/pass on the command line was dangerous..
mysqldumpis part of MySQL, not part of the shell); I'm updating the title and tags appropriately. BTW, what's with all the backticks? Did you add them as formatting, or are they really there in your actual script?$(echo "All done.")-- or the version with backticks in place of$()-- tries to runAll Done.as a command, which fails for obvious reasons. And if they're part of your question's formatting, they're unnecessary -- the code formatting done by the{}button (or the four-space indents it creates) is sufficient.echois correctly printed, then clearly the backticks aren't really part of your code as you're running it, so I've edited them out of the question.