MySQL-server installation does not complete
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
When I run the command, sudo apt-get install mysql-server
, I get the following errors...
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libevent-core-2.0-5 mysql-client-5.7 mysql-common mysql-server-5.7
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
libevent-core-2.0-5 mysql-client-5.7 mysql-common mysql-server
mysql-server-5.7
0 upgraded, 5 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/4,497 kB of archives.
After this operation, 82.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 288832 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.7.21-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-common (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-client-5.7.
Preparing to unpack .../mysql-client-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package libevent-core-2.0-5:amd64.
Preparing to unpack .../libevent-core-2.0-5_2.0.21-stable-2ubuntu0.16.04.1_amd64.deb ...
Unpacking libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up mysql-common (5.7.21-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 288884 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.7.21-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-server (5.7.21-0ubuntu0.16.04.1) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-client-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Setting up libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Setting up mysql-server-5.7 (5.7.21-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
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
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
I read through a lot of forums and websites before posting here. The list of things I have already tried :
- Ubuntu 15.10 mysql error 1524 - unix_socket | Ask Ubuntu
- Changed the
my.conf
file - purged
mysql-*
files, reinstalled them
Configure MySQL server on Ubuntu | rackspace.com
I am really stuck so it would be immensely helpful if someone guided me a way out of this.
apt mysql
add a comment |Â
up vote
1
down vote
favorite
When I run the command, sudo apt-get install mysql-server
, I get the following errors...
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libevent-core-2.0-5 mysql-client-5.7 mysql-common mysql-server-5.7
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
libevent-core-2.0-5 mysql-client-5.7 mysql-common mysql-server
mysql-server-5.7
0 upgraded, 5 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/4,497 kB of archives.
After this operation, 82.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 288832 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.7.21-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-common (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-client-5.7.
Preparing to unpack .../mysql-client-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package libevent-core-2.0-5:amd64.
Preparing to unpack .../libevent-core-2.0-5_2.0.21-stable-2ubuntu0.16.04.1_amd64.deb ...
Unpacking libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up mysql-common (5.7.21-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 288884 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.7.21-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-server (5.7.21-0ubuntu0.16.04.1) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-client-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Setting up libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Setting up mysql-server-5.7 (5.7.21-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
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
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
I read through a lot of forums and websites before posting here. The list of things I have already tried :
- Ubuntu 15.10 mysql error 1524 - unix_socket | Ask Ubuntu
- Changed the
my.conf
file - purged
mysql-*
files, reinstalled them
Configure MySQL server on Ubuntu | rackspace.com
I am really stuck so it would be immensely helpful if someone guided me a way out of this.
apt mysql
Did you have installed mariadb-server before you try install mysql-server? Do you have any databases in this MySQL instance or it is the clear (new) installation?
â mariaczi
Apr 12 at 7:23
It is a new installation with no database, and yes i did install maria-db before mysql-server @mariaczi
â Chintan Mehta
Apr 12 at 8:59
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
When I run the command, sudo apt-get install mysql-server
, I get the following errors...
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libevent-core-2.0-5 mysql-client-5.7 mysql-common mysql-server-5.7
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
libevent-core-2.0-5 mysql-client-5.7 mysql-common mysql-server
mysql-server-5.7
0 upgraded, 5 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/4,497 kB of archives.
After this operation, 82.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 288832 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.7.21-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-common (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-client-5.7.
Preparing to unpack .../mysql-client-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package libevent-core-2.0-5:amd64.
Preparing to unpack .../libevent-core-2.0-5_2.0.21-stable-2ubuntu0.16.04.1_amd64.deb ...
Unpacking libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up mysql-common (5.7.21-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 288884 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.7.21-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-server (5.7.21-0ubuntu0.16.04.1) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-client-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Setting up libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Setting up mysql-server-5.7 (5.7.21-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
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
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
I read through a lot of forums and websites before posting here. The list of things I have already tried :
- Ubuntu 15.10 mysql error 1524 - unix_socket | Ask Ubuntu
- Changed the
my.conf
file - purged
mysql-*
files, reinstalled them
Configure MySQL server on Ubuntu | rackspace.com
I am really stuck so it would be immensely helpful if someone guided me a way out of this.
apt mysql
When I run the command, sudo apt-get install mysql-server
, I get the following errors...
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libevent-core-2.0-5 mysql-client-5.7 mysql-common mysql-server-5.7
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
libevent-core-2.0-5 mysql-client-5.7 mysql-common mysql-server
mysql-server-5.7
0 upgraded, 5 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/4,497 kB of archives.
After this operation, 82.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 288832 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.7.21-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-common (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-client-5.7.
Preparing to unpack .../mysql-client-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package libevent-core-2.0-5:amd64.
Preparing to unpack .../libevent-core-2.0-5_2.0.21-stable-2ubuntu0.16.04.1_amd64.deb ...
Unpacking libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up mysql-common (5.7.21-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 288884 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.21-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.7.21-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-server (5.7.21-0ubuntu0.16.04.1) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-client-5.7 (5.7.21-0ubuntu0.16.04.1) ...
Setting up libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Setting up mysql-server-5.7 (5.7.21-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
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
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
I read through a lot of forums and websites before posting here. The list of things I have already tried :
- Ubuntu 15.10 mysql error 1524 - unix_socket | Ask Ubuntu
- Changed the
my.conf
file - purged
mysql-*
files, reinstalled them
Configure MySQL server on Ubuntu | rackspace.com
I am really stuck so it would be immensely helpful if someone guided me a way out of this.
apt mysql
apt mysql
edited Apr 14 at 11:33
Drakonoved
7321415
7321415
asked Apr 12 at 7:17
![](https://lh5.googleusercontent.com/-A0tV0sUIKI8/AAAAAAAAAAI/AAAAAAAABfA/TNEBlx0GU8U/photo.jpg?sz=32)
![](https://lh5.googleusercontent.com/-A0tV0sUIKI8/AAAAAAAAAAI/AAAAAAAABfA/TNEBlx0GU8U/photo.jpg?sz=32)
Chintan Mehta
165
165
Did you have installed mariadb-server before you try install mysql-server? Do you have any databases in this MySQL instance or it is the clear (new) installation?
â mariaczi
Apr 12 at 7:23
It is a new installation with no database, and yes i did install maria-db before mysql-server @mariaczi
â Chintan Mehta
Apr 12 at 8:59
add a comment |Â
Did you have installed mariadb-server before you try install mysql-server? Do you have any databases in this MySQL instance or it is the clear (new) installation?
â mariaczi
Apr 12 at 7:23
It is a new installation with no database, and yes i did install maria-db before mysql-server @mariaczi
â Chintan Mehta
Apr 12 at 8:59
Did you have installed mariadb-server before you try install mysql-server? Do you have any databases in this MySQL instance or it is the clear (new) installation?
â mariaczi
Apr 12 at 7:23
Did you have installed mariadb-server before you try install mysql-server? Do you have any databases in this MySQL instance or it is the clear (new) installation?
â mariaczi
Apr 12 at 7:23
It is a new installation with no database, and yes i did install maria-db before mysql-server @mariaczi
â Chintan Mehta
Apr 12 at 8:59
It is a new installation with no database, and yes i did install maria-db before mysql-server @mariaczi
â Chintan Mehta
Apr 12 at 8:59
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
Try these. Hope it helps.
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
sudo apt-get install mysql-server
Still the same error persists.. as in the question
â Chintan Mehta
Apr 12 at 9:02
My solution is the same thing as you've written as an answer..
â surjit
Apr 12 at 12:49
mysql*
means all the packages in your system which name starts withmysql
â surjit
Apr 12 at 12:51
I tried that, it did not delete the config files and the dependencies in /var/lib as well as etc/mysql @surjit
â Chintan Mehta
Apr 13 at 15:55
add a comment |Â
up vote
0
down vote
I finally was able to solve the problem by removing all the dependencies and configuration files of the mysql as well as maria-db first. To do that, go to /var/lib
and delete all the files related to mysql (You will have to have root permissions to delete them so dont forget to write sudo su
before that). You can delete all the files by typing rm -r /var/lib/mysql*
.
After that you have to delete all the files in the /etc directory by typing rm -r /etc/mysql*
Then perform the following commands and you will be set to go :
sudo apt purge mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7 mysql-server
sudo apt update && sudo apt dist-upgrade && sudo apt autoremove && sudo apt -f install
sudo apt install mysql-server
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Try these. Hope it helps.
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
sudo apt-get install mysql-server
Still the same error persists.. as in the question
â Chintan Mehta
Apr 12 at 9:02
My solution is the same thing as you've written as an answer..
â surjit
Apr 12 at 12:49
mysql*
means all the packages in your system which name starts withmysql
â surjit
Apr 12 at 12:51
I tried that, it did not delete the config files and the dependencies in /var/lib as well as etc/mysql @surjit
â Chintan Mehta
Apr 13 at 15:55
add a comment |Â
up vote
1
down vote
Try these. Hope it helps.
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
sudo apt-get install mysql-server
Still the same error persists.. as in the question
â Chintan Mehta
Apr 12 at 9:02
My solution is the same thing as you've written as an answer..
â surjit
Apr 12 at 12:49
mysql*
means all the packages in your system which name starts withmysql
â surjit
Apr 12 at 12:51
I tried that, it did not delete the config files and the dependencies in /var/lib as well as etc/mysql @surjit
â Chintan Mehta
Apr 13 at 15:55
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Try these. Hope it helps.
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
sudo apt-get install mysql-server
Try these. Hope it helps.
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
sudo apt-get install mysql-server
edited Apr 12 at 17:13
![](https://i.stack.imgur.com/h5FrU.png?s=32&g=1)
![](https://i.stack.imgur.com/h5FrU.png?s=32&g=1)
anonymous2
3,14541746
3,14541746
answered Apr 12 at 7:32
surjit
115116
115116
Still the same error persists.. as in the question
â Chintan Mehta
Apr 12 at 9:02
My solution is the same thing as you've written as an answer..
â surjit
Apr 12 at 12:49
mysql*
means all the packages in your system which name starts withmysql
â surjit
Apr 12 at 12:51
I tried that, it did not delete the config files and the dependencies in /var/lib as well as etc/mysql @surjit
â Chintan Mehta
Apr 13 at 15:55
add a comment |Â
Still the same error persists.. as in the question
â Chintan Mehta
Apr 12 at 9:02
My solution is the same thing as you've written as an answer..
â surjit
Apr 12 at 12:49
mysql*
means all the packages in your system which name starts withmysql
â surjit
Apr 12 at 12:51
I tried that, it did not delete the config files and the dependencies in /var/lib as well as etc/mysql @surjit
â Chintan Mehta
Apr 13 at 15:55
Still the same error persists.. as in the question
â Chintan Mehta
Apr 12 at 9:02
Still the same error persists.. as in the question
â Chintan Mehta
Apr 12 at 9:02
My solution is the same thing as you've written as an answer..
â surjit
Apr 12 at 12:49
My solution is the same thing as you've written as an answer..
â surjit
Apr 12 at 12:49
mysql*
means all the packages in your system which name starts with mysql
â surjit
Apr 12 at 12:51
mysql*
means all the packages in your system which name starts with mysql
â surjit
Apr 12 at 12:51
I tried that, it did not delete the config files and the dependencies in /var/lib as well as etc/mysql @surjit
â Chintan Mehta
Apr 13 at 15:55
I tried that, it did not delete the config files and the dependencies in /var/lib as well as etc/mysql @surjit
â Chintan Mehta
Apr 13 at 15:55
add a comment |Â
up vote
0
down vote
I finally was able to solve the problem by removing all the dependencies and configuration files of the mysql as well as maria-db first. To do that, go to /var/lib
and delete all the files related to mysql (You will have to have root permissions to delete them so dont forget to write sudo su
before that). You can delete all the files by typing rm -r /var/lib/mysql*
.
After that you have to delete all the files in the /etc directory by typing rm -r /etc/mysql*
Then perform the following commands and you will be set to go :
sudo apt purge mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7 mysql-server
sudo apt update && sudo apt dist-upgrade && sudo apt autoremove && sudo apt -f install
sudo apt install mysql-server
add a comment |Â
up vote
0
down vote
I finally was able to solve the problem by removing all the dependencies and configuration files of the mysql as well as maria-db first. To do that, go to /var/lib
and delete all the files related to mysql (You will have to have root permissions to delete them so dont forget to write sudo su
before that). You can delete all the files by typing rm -r /var/lib/mysql*
.
After that you have to delete all the files in the /etc directory by typing rm -r /etc/mysql*
Then perform the following commands and you will be set to go :
sudo apt purge mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7 mysql-server
sudo apt update && sudo apt dist-upgrade && sudo apt autoremove && sudo apt -f install
sudo apt install mysql-server
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I finally was able to solve the problem by removing all the dependencies and configuration files of the mysql as well as maria-db first. To do that, go to /var/lib
and delete all the files related to mysql (You will have to have root permissions to delete them so dont forget to write sudo su
before that). You can delete all the files by typing rm -r /var/lib/mysql*
.
After that you have to delete all the files in the /etc directory by typing rm -r /etc/mysql*
Then perform the following commands and you will be set to go :
sudo apt purge mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7 mysql-server
sudo apt update && sudo apt dist-upgrade && sudo apt autoremove && sudo apt -f install
sudo apt install mysql-server
I finally was able to solve the problem by removing all the dependencies and configuration files of the mysql as well as maria-db first. To do that, go to /var/lib
and delete all the files related to mysql (You will have to have root permissions to delete them so dont forget to write sudo su
before that). You can delete all the files by typing rm -r /var/lib/mysql*
.
After that you have to delete all the files in the /etc directory by typing rm -r /etc/mysql*
Then perform the following commands and you will be set to go :
sudo apt purge mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7 mysql-server
sudo apt update && sudo apt dist-upgrade && sudo apt autoremove && sudo apt -f install
sudo apt install mysql-server
answered Apr 12 at 9:25
![](https://lh5.googleusercontent.com/-A0tV0sUIKI8/AAAAAAAAAAI/AAAAAAAABfA/TNEBlx0GU8U/photo.jpg?sz=32)
![](https://lh5.googleusercontent.com/-A0tV0sUIKI8/AAAAAAAAAAI/AAAAAAAABfA/TNEBlx0GU8U/photo.jpg?sz=32)
Chintan Mehta
165
165
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1024263%2fmysql-server-installation-does-not-complete%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Did you have installed mariadb-server before you try install mysql-server? Do you have any databases in this MySQL instance or it is the clear (new) installation?
â mariaczi
Apr 12 at 7:23
It is a new installation with no database, and yes i did install maria-db before mysql-server @mariaczi
â Chintan Mehta
Apr 12 at 8:59