HubsInfo Network

General discussions => Servers and Networking [IT & Datacenter] => Topic started by: Remix on March 30, 2019, 03:31:47 AM

Title: Remove MySQL completely from your system Linux Ubuntu
Post by: Remix on March 30, 2019, 03:31:47 AM
Remove MySQL completely from Linux Ubuntu

Open your Terminal (Ctrl+Alt+T):
Code: [Select]
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get autoremove
sudo apt-get autoclean

After above operation you can check if any MySQL server is installed on your Linux Ubuntu:
Code: [Select]
mysql --version
You'll see:
Code: [Select]
bash: /usr/bin/mysql: No such file or directory

When re-installing MySQL again you should install libmysqlclient-dev
Code: [Select]
sudo apt-get install libmysqlclient-dev






Title: Re: Remove MySQL completely from your system Linux Ubuntu
Post by: Madox on April 12, 2019, 06:05:11 AM
Thank You. It's working on Linux Ubuntu 18.04 LTS