I don't know that it's possible to pipe directly into tar
(in general, that doesn't make a lot of sense), however the bzip2
command will accept -
to mean to read from stdin, i.e.:
mdm@deb606:~$ mysqldump --opt test1 -u root -ppassword | bzip2 - > example.bz2