That’s exactly the problem I had. Here’s how I fixed it:
http://community.wd.com/t5/WD-My-Cloud/Twonky-Server-database-issues-amp-fix/td-p/825165/page/3
I got rid of the 'Shared ’ part in the media folder pathnames. In particular, it seems to be the space that causes problems.
Also check that, if you’ve done a recent firmware upgrade, that media serving is enabled on the Public share.
Note the comments about how MC and Twonky don’t play nice…
I have disabled automatic firmware updates to prevent my Twonky server being broken…