I\'m working on a website using JetBrains PHPStorm.
I created a database with default settings, when I try to test the connection or connect to the database, this error pops
Had the same issue with PHPStorm on MAMP. Checked the port in localhost where MySQL was installed. It was 8889 and not the default 3306. Updating the port fixed the issue for me.