PAM authentication plugin for MySQL, Percona Server and MariaDB

Comment 4 for bug 901242

Your client has a wrong plugin_dir setting

please add:

[client]
plugin_dir='/db/test/server/lib/mysql/plugin'

This worked in my case