Page 1 of 1

An error is output when checking the mariadb status with the

PostPosted: 17. July 2019 16:51
by luffy1025
Operating System: Ubuntu 18.04 64bit
Xampp Version: 7.3.1-0

Summary:
I used the mysql command in cmd to check mariadb status on Ubuntu.

However, I get such an error message in cmd.

ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")

1. Is mysql the correct command to check mariadb status?

2. How can I fix the error?

Re: An error is output when checking the mariadb status with

PostPosted: 17. July 2019 18:50
by Nobbie
Obviously, there is already another MySQL installation on your Linux PC. If you enter "mysql" in a terminal, you do NOT trigger Xampps MySQL (MariaDB), but instead the MySQL installation of your distribution. If you like to use Xampp instead, open the the Software Manager of your Ubuntu Linux and de-install MySQL. It collides with Xampps MySQL/MariaDB.

P.S.: Why did you apply "Operating System: windows" into your profile, dont you run Linux (Ubuntu) instead? What is the idea of that nonsense?