Last active
May 21, 2021 14:59
-
-
Save clonn/248570e787e487472619eeea0dde4df2 to your computer and use it in GitHub Desktop.
remove complete mariaDB in ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get remove mariadb-server | |
sudo apt-get remove --auto-remove mariadb-server | |
sudo apt-get purge mariadb-server | |
sudo apt-get purge --auto-remove mariadb-server |
its not working man
what is your os version, I am using Ubuntu 14.04.
it's working, thanks!
- 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
to clean/un-install the mysql
@bhattaraisuman that is for remove mysql.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ramana_sharma@ramana:~$ sudo apt-get remove mariadb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 libmecab2
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
mariadb-server
0 upgraded, 0 newly installed, 1 to remove and 481 not upgraded.
2 not fully installed or removed.
After this operation, 62.5 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 269039 files and directories currently installed.)
Removing mariadb-server (10.0.38-0ubuntu0.16.04.1) ...
Setting up mariadb-server-10.0 (10.0.38-0ubuntu0.16.04.1) ...
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
● mysql.service - LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-06-18 11:49:19 IST; 3ms ago
Docs: man:systemd-sysv-generator(8)
Process: 9929 ExecStart=/etc/init.d/mysql start (code=exited, status=127)
Main PID: 958 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/mysql.service
├─ 9958 /bin/bash /usr/bin/mysqld_safe
└─10028 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/lib/mysql/r...
Jun 18 11:49:18 ramana systemd[1]: Starting LSB: Start and stop the mysql database server daemon...
Jun 18 11:49:18 ramana mysql[9929]: * /etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz
Jun 18 11:49:18 ramana mysql[9929]: * Starting MariaDB database server mysqld
Jun 18 11:49:19 ramana mysql[9929]: ...done.
Jun 18 11:49:19 ramana mysql[9929]: /etc/init.d/mysql: line 124: /etc/mysql/debian-start: No such file or directory
Jun 18 11:49:19 ramana systemd[1]: mysql.service: Control process exited, code=exited status=127
dpkg: error processing package mariadb-server-10.0 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mariadb-server-10.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
ramana_sharma@ramana:~$ sudo apt-get remove --auto-remove mariadb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mariadb-server' is not installed, so not removed
The following packages will be REMOVED:
apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 libmecab2
0 upgraded, 0 newly installed, 7 to remove and 481 not upgraded.
1 not fully installed or removed.
After this operation, 3,786 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 269036 files and directories currently installed.)
Removing apache2-data (2.4.18-2ubuntu3.10) ...
Removing libaprutil1-dbd-sqlite3:amd64 (1.5.4-1build1) ...
Removing libaprutil1-ldap:amd64 (1.5.4-1build1) ...
Removing libaprutil1:amd64 (1.5.4-1build1) ...
Removing libapr1:amd64 (1.5.2-3) ...
Removing liblua5.1-0:amd64 (5.1.5-8ubuntu1) ...
Removing libmecab2 (0.996-1.2ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up mariadb-server-10.0 (10.0.38-0ubuntu0.16.04.1) ...