How to fix

ERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number in MySQL / MariaDB

MySQL is an open source relational database management system. MariaDB is a fork of MySQL. In MySQL / MariaDB you can create a user and he will be authenticated by password. But sometimes we all make mistakes… Error: mysql> GRANT USAGE ON *.* TO ‘user’@’localhost’ IDENTIFIED BY PASSWORD ‘s3cr3t’;ERROR 1372 (HY000): Password hash should beContinue Reading


How to fix

Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’

When working with MySQL / MariaDB database you can catch a strange error: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) The same error in log files: [ERROR] Can’t start server : Bind on unix socket: No such file or directory [ERROR] Do you already have another mysqld server runningContinue Reading