Ad Widget

Collapse

installation fails: Can't connect to local MySQL server through socket

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hsv
    Junior Member
    • Jun 2020
    • 14

    #1

    installation fails: Can't connect to local MySQL server through socket

    Hi
    A new installed Ubuntu 20.04.2 fully updated

    Following steps has been used (Steps are from here: Download Zabbix)
    #Install Zabbix repository
    wget https://repo.zabbix.com/zabbix/5.4/u...u20.04_all.deb
    sudo dpkg -i zabbix-release_5.4-1+ubuntu20.04_all.deb
    sudo apt update
    #Install Zabbix server, frontend, agent
    sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent
    #Create initial database
    sudo mysql -uroot -p
    "passwod"

    And now the following error:
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

    ls -ll /var/run/mysqld/
    ls: cannot access '/var/run/mysqld/': No such file or directory

    So what has gone wrong here?

    regards
    Henning
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please install MySQL server. If you use the official Zabbix package, you may use a remote MySQL server, so the MySQL server will not be installed locally automatically.

    Comment

    Working...