apply authentication manager for mysql database