← All Kali Issues
MySQL

Cannot connect

D Database High

🔴 Error Message

ERROR 2002 Cant connect to MySQL server

📖 What This Means

MySQL service not running.

🔧 Step-by-Step Fix

  1. Start: sudo systemctl start mysql
  2. Check socket: ls /var/run/mysqld/
  3. Check port 3306: ss -tlnp | grep 3306

🔗 More MySQL Issues

Found this useful? Share it.
Make it count. Join free to earn XP for what you read and solve, keep a streak, and track your progress.
Join free