T
T
TRUEC0DER2021-03-24 01:50:54
linux
TRUEC0DER, 2021-03-24 01:50:54

How to solve MySQL problem?

For an hour I have been suffering with the problem of two errors (Before that, I installed MariaDB, but tried to tear everything to hell, like MySQL, nothing helps):
With sudo apt-get install mysql-server

dpkg: error processing package mysql-server-5.7 (--configure):
 installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (237-3ubuntu10.45) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

And with sudo mysql_secure_installation
Securing the MySQL server deployment.

Enter password for user root: 
Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Karasik, 2021-03-24
@TRUEC0DER

I advise you to remove everything (sudo apt-get purge mysql\* libmysql\* ;
sudo apt autoremove) and install MySQL 8 from their repo https://computingforgeeks.com/how-to-install-mysql... .

E
Eugene, 2021-03-24
@Nc_Soft

INSTALL VIA DOKER

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question