Ad Widget

Collapse

Cannot connect to local MySQL server through socket

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • itdweeb99
    Junior Member
    • Apr 2025
    • 3

    #1

    Cannot connect to local MySQL server through socket

    Hi, I am very new to zabbix and am trying to demo zabbix 7.2 using ubuntu/mysql/apache and am not getting far at all. I'm using the platform install instructions and when I get to the step of "create initial database" and run the command, mysql -uroot -p, i get the following error:

    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqlld/msqld.sock' (2).

    How could I already be getting errors? I'm literally 3 commands into the setup, lol. I did run the following command: systemctl status mysql and I get this:

    Unit mysql.service could not be found
  • Moob
    Member
    • Mar 2025
    • 31

    #2
    hi,

    Install MySQL first and then resume your installation steps.
    Code:
    sudo apt install mysql-server
    should do the trick.

    Regards

    Comment

    • BigFrank
      Junior Member
      • Apr 2025
      • 1

      #3
      I'm starting to wonder if this software was actually meant to run. The steps involved are unbelievable .
      I"m in a VM using debain and can't copy/[past command and there seems to be A LOT just to get this going
      it's absolutely ridiculous.
      The SQL etc, etc, etc fails
      crazy.

      Comment

      Working...