An error was encountered

Error: Unable to connect to MySQL server. MySQL reported: Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled).