How do I uninstall Mysql?

1

Building off of another answer, open a terminal (press Ctrl+Alt+T) and run the following:

sudo -i service mysql stop killall -KILL mysql mysqld_safe mysqld apt-get --yes purge mysql-server mysql-client apt-get --yes autoremove --purge apt-get autoclean deluser --remove-home mysql delgroup mysql rm -rf /etc/apparmor.d/abstractions/mysql /etc/apparmor.d/cache/usr.sbin.mysqld /etc/mysql /var/lib/mysql /var/log/mysql* /var/log/upstart/mysql.log* /var/run/mysqld updatedb exit

If you want to delete the log of what you did while using the mysql client:

rm ~/.mysql_history

If you want to delete the logs of what all users on the system did while using the mysql client (the other users might be unhappy with this):

awk -F : '{ print($6 "/.mysql_history"); }' /etc/passwd | xargs -r -d '\n' -- sudo rm -f --

or for all logs including those outside of existing user home directories:

sudo find / -name .mysql_history...
0 0
2

Before you remove your MySQL installation, try running the following command from the CLI.

mysql_secure_installation

If a password hasn't been set for root (for MySQL), that'll prompt you to set a password and run you through a series of steps to help clean up and secure MySQL (basic security).

Once set, then try running the command below to restart MySQL and see if you receive an error.

service mysql restart

We can troubleshoot to see what the issue is, as long as I know what errors you're receiving, or we can wipe the installation and start from scratch.

To remove MySQL, first you'd want to run:

apt-get remove -y mysql-*

and then:

apt-get purge -y mysql-*

The first command removes MySQL and associated packages while the second wipes...

0 0
3

Re: How do I uninstall MySQL from Mac OSX


Uninstalling MySQL - (Mac - OS)

From a terminal do the following:

1. sudo rm /usr/local/mysql
2. sudo rm -rf /usr/local/mysql*
3. sudo rm -rf /Library/StartupItems/MySQLCOM
4. sudo rm -rf /Library/PreformancPanes/My*
5. (Edit /etc/hostconfig) sudo vi /etc/hostconfig (Remove line MYSQLCOM=-YES)
6. sudo rm -rf /Library/Reciepts/mysql*
7. sudo rm -rf /Library/Reciepts/MySQL*

Regards

Neil


Subject

Written By

Posted

November 04, 2006 06:18PM

November 24, 2006 10:03AM

November 24, 2006 11:16AM

November 24, 2006 02:13PM

November 24, 2006 02:52PM

November 24, 2006 03:04PM

December 02, 2006 07:31AM

December 02, 2006 01:03PM

December 02, 2006 01:31PM

February 09, 2008 02:15AM

February 12, 2008...

0 0
4
...
0 0
5
I

‘m a new Ubuntu Linux user and my cloud hosting company installed MySQL server by default. I need to remove it and delete it from my server as I have no use of MySQL server. How can I uninstall MySQL on a Ubuntu based systems?


Typically following Mysql packages are installed on the Debian or Ubuntu Linux systems:

mysql-client – The latest version of MySQL database client.mysql-server – The latest version of MySQL database server.mysql-common – MySQL database common files.

How do I uninstall Mysql server?

Just use the apt-get command as follows remove both MySQL server and client in Ubuntu Linux:

sudo apt-get --purge remove mysql-client mysql-server mysql-common sudo apt-get autoremove

Sample outputs (pay attention to package names):

Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-3.2.0-31-virtual...
0 0
6

I accidentally installed the PowerPC version of MySQL on my Intel Mac in Snow Leopard, and it installed without a problem but of course doesn't run properly. I just didn't pay enough attention. Now when I try to install the correct x86 version it says that it can't install because a newer version is already installed. A Google query led me to perform these actions/delete these files to uninstall it:

sudo rm /usr/local/mysql sudo rm -rf /usr/local/mysql* sudo rm -rf /Library/StartupItems/MySQLCOM sudo rm -rf /Library/PreferencePanes/MySQL* rm -rf ~/Library/PreferencePanes/MySQL* sudo rm -rf /Library/Receipts/mysql* sudo rm -rf /Library/Receipts/MySQL*

And finally removed the line MYSQLCOM=-YES- from /etc/hostconfig

They haven't seemed to help at all. I am still receiving the same message about there being a newer version. I tried installing an even newer version (the current Beta) and it also gave me the same message about a newer version already being installed. I...

0 0
7
uninstall mysql - Page 1 - AirySoftware

Speed up you PC 300%

How do I uninstall MySQL? - Ask Ubuntu Rating:6/10https://askubuntu.com/questions/172514/how-do-i-uninstall-mysql I installed MySQL using sudo apt-get. Now I need to remove it from my system. How can I do that? Location: San Francisco, California, United States MySQL :: MySQL Workbench Manual :: 2.3.3 Uninstalling Rating:5/10https://dev.mysql.com/doc/workbench/en/wb-windows-uninstalling.html Removing MySQL Workbench After Installation Using the Installer Package. To uninstall MySQL Workbench, open the Control Panel and Choose Add or ... Location: Belmont, California, United States Uninstall MySQL from Ubuntu 16.04 - Ask Ubuntu Rating:6/10https://askubuntu.com/questions/776845/uninstall-mysql-from-ubuntu-16-04 I am trying to uninstall MySQL completely from Ubuntu 16.04 LTS,but I am facing an issue saying: The following packages have unmet dependencies:...
0 0
8

These are uninstall instructions for the Custom Metrics agent, as run from the installer found on the Custom -> Getting Started page.

Log into the system and run "ls /etc/init/copperegg-metrics.conf".
If it says "/etc/init/copperegg-metrics.conf", run this set of commands:

sudo stop copperegg-metrics sudo killall copperegg-metrics sudo rm -rf /usr/local/copperegg sudo rm /etc/init.d/copperegg-metrics # File may not exist sudo rm /etc/init/copperegg-metrics.conf sudo userdel copperegg sudo gem remove copperegg


If it says "ls: cannot access /etc/init/copperegg-metrics.conf: No such file or directory", run this set:

sudo /etc/init.d/copperegg-metrics stop sudo rm -rf /usr/local/copperegg sudo rm /etc/init.d/copperegg-metrics sudo rm /etc/rc*.d/*copperegg-metrics sudo userdel copperegg sudo gem remove copperegg

NOTE: The init scripts used to be named "copperegg-agent". If the above does not work, try the same, replacing "copperegg-metrics" with...

0 0
9

Yesterday, I was installing MySQL in my PC running Windows 7 x64 and suddenly the installation meshed up while configuring post installation settings. I tried to uninstall/re-install it again but couldn’t get success.

Finally I decided to get rid of MySQL manually and followed these steps to uninstall MySQL from Windows completely.

NOTE: The method will remove all database and instances of MySQL, so if you want to save your existing databases, take backup before going through the steps.
How To:

Run Command Prompt as Administrator and execute the following command to stop and remove MySQL service.

Net stop MySQL
Sc delete MySQL

Go to Control Panel >> Programs >> Programs and Features, select MySQL Server 5.x and click Uninstall. (If you can uninstall MySQL from Control Panel) Open Windows Explorer and go to Organize > Folder and search options, Select the “View” tab and under “Hidden files and Folders” choose “Show hidden files and folders”. Now...
0 0
10

RPM command is used for installing, uninstalling, upgrading, querying, listing, and checking RPM packages on your Linux system.

RPM stands for Red Hat Package Manager.

With root privilege, you can use the rpm command with appropriate options to manage the RPM software packages.

In this article, let us review 15 practical examples of rpm command.

Let us take an rpm of Mysql Client and run through all our examples.

1. Installing a RPM package Using rpm -ivh

RPM filename has packagename, version, release and architecture name.

For example, In the MySQL-client-3.23.57-1.i386.rpm file:

MySQL-client – Package Name 3.23.57 – Version 1 – Release i386 – Architecture

When you install a RPM, it checks whether your system is suitable for the software the RPM package contains, figures out where to install the files located inside the rpm package, installs them on your system, and adds that piece of software into its database of...

0 0
11

Once you have uninstalled a component, you will no longer be able to perform data protection operations. The protected data, however, is still available on the media for the length of time expressed in the Retention Time defined in the associated Storage Policy Copy. If desired, you can browse the backup data from another active client within the same CommCell or perform data recovery operations from the component to another active client within the same CommCell.

You cannot, however, restore the data to the component's original host computer because the necessary software is no longer present. You will have to reinstall the component software to the original computer in order to perform data recovery operations on such data. See Reinstalling Uninstalled Agents for more information.

If you want to browse backup data from a client computer whose component software has been removed, simply follow the standard browse procedures. (See Browse Data for more...

0 0