Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • This is a question about the mysqldump command explicitly, not about shell in general (mysqldump is 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? Commented Apr 23, 2017 at 19:38
  • ...to be entirely explicit -- if they're part of your script, the backticks are wrong. For instance, $(echo "All done.") -- or the version with backticks in place of $() -- tries to run All 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. Commented Apr 23, 2017 at 19:42
  • Thanks for that but i was just copying the example they gave with the quotes not backtics.. and it seems to work fine and prints out done as it should thru out the program.. A little more detail.. when i use mysqldump and the dbname and table it does single out the table and exports that.. but when i try to add table to the import using mysql and no table it does put the table it exported into the correct table just fine.. so guess i am ok but thanks for the helping hand. Commented Apr 24, 2017 at 2:45
  • I'm a little clear about what you meant by your comment above, but if the output of echo is 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. Commented Apr 24, 2017 at 16:03