1Solution #1: Check If MySQL Service is Runnning.
2Solution #2: Connect with 127.0. 0.1.
3Solution #3: Modify the my. cnf file.
4Solution #4: Verify mysql. sock Location.
5Solution #5: Change MySQL Folder Permission.
6Solution #6: Multiple MySQL Instances.