I know this is an old post however in case anyone has this problem and finds it. I believe your issue is you are trying to register a database to a domain and not assigned it. you need to run
plesk bin database --register sampledb -domain example.com -server localhost:3306
and then you can...