Can not use my mysql db for user auth

I have two problems:

My first question is: how I can use a password in another mysql db? The password field in mysql looks like


I have tested it with:

     <passwordSQL>SELECT password FROM user WHERE username=?</passwordSQL>

he run this query but I can’t login to my admin console

Later I have testet a more simple one. I create a db oftest with user table and plain password.

If I change the database settings and set passwordType to plain. It doesn’t work too…

Any idea?