Check to see if MySQL service is running
sudo systemctl status mysql
--
Jerry Feldman
Boston Linux and Unix http://www.blu.org
On Wed, Oct 23, 2024, 12:10 PM dan moylan wrote:
>
> running fc40
>
> root ~[231] dnf install mariadb
> Last metadata expiration check: 0:37:33 ago on Wed 23 Oct 2
On Wed, 23 Oct 2024 12:07:58 -0400
dan moylan wrote:
> root ~[232] mysql -u root
> ERROR 2002 (HY000): Can't connect to local server through
>socket '/var/lib/mysql/mysql.sock' (2)
>
> suggestions?
You probably need to enable and start the service:
systemctl enable --now ma
running fc40
root ~[231] dnf install mariadb
Last metadata expiration check: 0:37:33 ago on Wed 23 Oct 2024 11:25:12 AM
EDT.
Package mariadb-3:10.11.9-1.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
root ~[232] mysql -u root
ERROR 2002 (HY000)