How do I uninstall MySQL?Uninstall MySQL from Ubuntu 16.04How do I uninstall MySQL completely?Cannot reinstall mysql-server after its purgeNot able to uninstall MySQL with apt-getMySQL unmet dependiciesIs MySQL still running after uninstall it?Unable to uninstall MySQL 5.6.17 from Ubuntu 12.04Using mysql in C programmingHow install or uninstall half-installed mysql-client-5.6 on/from ubuntu 15.10?How to uninstall or remove MySQL database client libraryHow can I restore mysql db?How to install multiple versions (5.5.xx and 5.7) of MySQL in Ubuntu 16.04?mysql -u root doesnt work but sudo mysql -u root does, why?Can't install MySQL Ubuntu 16.04mysql reinstallation still getting problems ubuntu

What is the opposite of 'gravitas'?

Personal Teleportation as a Weapon

Is the destination of a commercial flight important for the pilot?

Teaching indefinite integrals that require special-casing

Everything Bob says is false. How does he get people to trust him?

Where in the Bible does the greeting ("Dominus Vobiscum") used at Mass come from?

If you attempt to grapple an opponent that you are hidden from, do they roll at disadvantage?

Modify casing of marked letters

(Bedrock Edition) Loading more than six chunks at once

Understanding "audieritis" in Psalm 94

How do we know the LHC results are robust?

Do there exist finite commutative rings with identity that are not Bézout rings?

Student evaluations of teaching assistants

What to do with wrong results in talks?

Is this Spell Mimic feat balanced?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

Can a monster with multiattack use this ability if they are missing a limb?

is this a spam?

Short story about space worker geeks who zone out by 'listening' to radiation from stars

How do I rename a LINUX host without needing to reboot for the rename to take effect?

Efficiently merge handle parallel feature branches in SFDX

Should my PhD thesis be submitted under my legal name?

What is the intuitive meaning of having a linear relationship between the logs of two variables?

Ways to speed up user implemented RK4



How do I uninstall MySQL?


Uninstall MySQL from Ubuntu 16.04How do I uninstall MySQL completely?Cannot reinstall mysql-server after its purgeNot able to uninstall MySQL with apt-getMySQL unmet dependiciesIs MySQL still running after uninstall it?Unable to uninstall MySQL 5.6.17 from Ubuntu 12.04Using mysql in C programmingHow install or uninstall half-installed mysql-client-5.6 on/from ubuntu 15.10?How to uninstall or remove MySQL database client libraryHow can I restore mysql db?How to install multiple versions (5.5.xx and 5.7) of MySQL in Ubuntu 16.04?mysql -u root doesnt work but sudo mysql -u root does, why?Can't install MySQL Ubuntu 16.04mysql reinstallation still getting problems ubuntu













147















I installed MySQL using sudo apt-get. Now I need to remove it from my system.



How can I do that?










share|improve this question




























    147















    I installed MySQL using sudo apt-get. Now I need to remove it from my system.



    How can I do that?










    share|improve this question


























      147












      147








      147


      57






      I installed MySQL using sudo apt-get. Now I need to remove it from my system.



      How can I do that?










      share|improve this question
















      I installed MySQL using sudo apt-get. Now I need to remove it from my system.



      How can I do that?







      mysql software-uninstall






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 26 '17 at 23:51









      David Foerster

      28.5k1367113




      28.5k1367113










      asked Aug 6 '12 at 8:44









      batmanbatman

      3,001163036




      3,001163036




















          9 Answers
          9






          active

          oldest

          votes


















          243














          To remove mysql completely from your system Just type in terminal



          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





          share|improve this answer




















          • 1





            I guess this doesn't work. After I do these steps, I tried : sudo apt-get install mysql-client-core-5.5. But it shows : mysql-client-core-5.5 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.. Is that mean still mysql resides in my pc?

            – batman
            Aug 6 '12 at 9:35












          • Try sudo dpkg --purge mysql-server mysql-client mysql-common

            – Ketan Patel
            Aug 6 '12 at 10:46






          • 1





            If I try sudo dpkg --purge mysql-server mysql-client mysql-common I get : dpkg: warning: there's no installed package matching mysql-server dpkg: warning: there's no installed package matching mysql-client dpkg: warning: there's no installed package matching mysql-common . I'm bit confused now. Is that mysql have been removed or not?

            – batman
            Aug 6 '12 at 11:17






          • 4





            this wasn't sufficient for me, a few more things had to be done: stackoverflow.com/a/16178696/447661

            – Mihai Rotaru
            Jul 26 '14 at 21:07






          • 3





            This also wasn't sufficient for me - for me, also, the answer here instead worked: stackoverflow.com/a/16178696/368896

            – Dan Nissenbaum
            Oct 9 '15 at 8:35



















          57














          all the above solutions are correct but I would try with



          sudo apt-get remove --purge mysql*
          sudo apt-get autoremove
          sudo apt-get autoclean


          This will uninstall all mysql related packages.






          share|improve this answer




















          • 10





            This is the easiest/simplest way to get rid of everything mysql-related. Though the wildcard here will match pretty much any package with 'mysq' in it's name, so you might want to specify sudo apt-get remove --purge -s 'mysql*' to be more specific.

            – geerlingguy
            May 23 '14 at 18:52











          • Seconded on the use of a more specific regex. I ended up using the regex of '^mysql-' Initially, I was going to run mysql, but found out it caught a ton of stuff unrelated...like:Note, selecting 'mysql-testsuite' for regex '^mysql*' Note, selecting 'mysql-server' for regex '^mysql*' Note, selecting 'mysql-server-core' for regex '^mysql*' Note, selecting 'mysqmail' for regex '^mysql*' Note, selecting 'mysqmail-pure-ftpd-logger' for regex '^mysql*'

            – MaasSql
            Mar 11 '15 at 16:18












          • I tried all the commands listed here and afterwards if I type 'mysql' into the terminal and press tab twice I still see some option come up for mysql, does this mean anything? > mysql mysqld mysql_upgrade mysqlcheck mysql_install_db

            – GoProCameraByGoPro
            Mar 26 '15 at 20:45











          • This only worked for me when I used sudo apt-get -f autoremove

            – Simon D
            Oct 21 '15 at 5:33











          • this gives me a couple of errors like ` E: Unable to locate package mysql `. my installation seems to be a bit messed up. and it kind of frightening that i cant even re-install it.

            – Blauhirn
            Aug 3 '16 at 20:17


















          24














          This will remove mysql 5.6 from ubuntu 15.04



          sudo apt-get remove --purge mysql-server mysql-client mysql-common
          sudo apt-get autoremove
          sudo apt-get autoclean
          sudo rm -rf /var/lib/mysql
          sudo rm -rf /etc/mysql





          share|improve this answer


















          • 1





            Manually removing the directories seemed necessary for me (so +1), perhaps because my directories were symbolic links?

            – Jonathan
            Dec 13 '15 at 9:20






          • 1





            I felt like your anwser was the most concise, so I wantedo comment here. I did something similar for mariadb, however i noticed I had a dangling system service. I had to remove it using: superuser.com/a/936976/260852

            – Mario Olivio Flores
            Sep 28 '16 at 14:28






          • 1





            Thanks, this also works for mysql 5.7 on ubuntu 16.04.

            – tated
            Jan 22 '18 at 22:52


















          6














          First you need to stop your mysql server from service.



          sudo service mysql stop


          Then You can use purge command to uninstall



          sudo apt-get purge mysql-server mysql-client


          Note: the above based on your package list. I have installed both server and client. This will for your convineient






          share|improve this answer























          • Stopping the MySQL service was key for me. I had it running and kept getting an error: dpkg: unrecoverable fatal error, aborting: fork failed: Cannot allocate memory E: Sub-process /usr/bin/dpkg returned an error code (2) Stopping MySQL, then running sudo dpkg --configure -a followed by sudo apt-get remove --purge mysql* worked for me.

            – tww0003
            Aug 14 '18 at 14:44


















          4














          I don't use Ubuntu much but what I think you should try is what I did.



          I first typed this in command line : sudo apt-get remove --purge mysql-server mysql-client mysql-common,



          then followed with this below : sudo apt-get autoremove



          and finally typed this : sudo apt-get autoclean.



          I found that it was removed.






          share|improve this answer
































            3














            I forgot the mysql root password and needed to reset.
            I tried this http://www.rackspace.com/knowledge_center/article/mysql-resetting-a-lost-mysql-root-password and didn't work because it kept saying can't write logs or similar.
            Now my solution was to completely remove mysql from Ubuntu13.10 and fresh installation.



            sudo apt-get remove --purge mysql-server mysql-client mysql-common
            sudo apt-get autoremove
            sudo rm -rf /var/lib/mysql


            I had to run the last commandline, because Ubuntu sometimes keeps some libs even you try purge them all.
            Now install mysql server and client



            sudo apt-get install mysql-client mysql-server





            share|improve this answer






























              1














              When I tried sudo apt-get purge mysql* it didn't work.



              Purged mysql5 with:



              sudo apt-get purge mysql-*


              Then for cleaning up:



              sudo apt-get autoremove
              sudo apt-get autoclean





              share|improve this answer
































                0














                Completly uninstall mysql:



                sudo -i
                service mysql stop
                killall -KILL mysql mysqld_safe mysqld
                apt-get --yes purge mysql*
                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 ~/.mysql_history
                updatedb


                Based on this answer and many others...






                share|improve this answer
































                  0














                  Try this, It will fully wipeout out every single file of MySQL from your system:



                  sudo service mysql stop #or mysqld
                  sudo killall -9 mysql
                  sudo killall -9 mysqld
                  sudo apt-get remove --purge mysql-server mysql-client mysql-common
                  sudo apt-get autoremove
                  sudo apt-get autoclean
                  sudo deluser -f mysql
                  sudo rm -rf /var/lib/mysql
                  sudo apt-get purge mysql-server-core-5.7
                  sudo apt-get purge mysql-client-core-5.7
                  sudo rm -rf /var/log/mysql
                  sudo rm -rf /etc/mysql





                  share|improve this answer





















                    protected by Byte Commander Feb 25 '16 at 7:53



                    Thank you for your interest in this question.
                    Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                    Would you like to answer one of these unanswered questions instead?














                    9 Answers
                    9






                    active

                    oldest

                    votes








                    9 Answers
                    9






                    active

                    oldest

                    votes









                    active

                    oldest

                    votes






                    active

                    oldest

                    votes









                    243














                    To remove mysql completely from your system Just type in terminal



                    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





                    share|improve this answer




















                    • 1





                      I guess this doesn't work. After I do these steps, I tried : sudo apt-get install mysql-client-core-5.5. But it shows : mysql-client-core-5.5 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.. Is that mean still mysql resides in my pc?

                      – batman
                      Aug 6 '12 at 9:35












                    • Try sudo dpkg --purge mysql-server mysql-client mysql-common

                      – Ketan Patel
                      Aug 6 '12 at 10:46






                    • 1





                      If I try sudo dpkg --purge mysql-server mysql-client mysql-common I get : dpkg: warning: there's no installed package matching mysql-server dpkg: warning: there's no installed package matching mysql-client dpkg: warning: there's no installed package matching mysql-common . I'm bit confused now. Is that mysql have been removed or not?

                      – batman
                      Aug 6 '12 at 11:17






                    • 4





                      this wasn't sufficient for me, a few more things had to be done: stackoverflow.com/a/16178696/447661

                      – Mihai Rotaru
                      Jul 26 '14 at 21:07






                    • 3





                      This also wasn't sufficient for me - for me, also, the answer here instead worked: stackoverflow.com/a/16178696/368896

                      – Dan Nissenbaum
                      Oct 9 '15 at 8:35
















                    243














                    To remove mysql completely from your system Just type in terminal



                    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





                    share|improve this answer




















                    • 1





                      I guess this doesn't work. After I do these steps, I tried : sudo apt-get install mysql-client-core-5.5. But it shows : mysql-client-core-5.5 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.. Is that mean still mysql resides in my pc?

                      – batman
                      Aug 6 '12 at 9:35












                    • Try sudo dpkg --purge mysql-server mysql-client mysql-common

                      – Ketan Patel
                      Aug 6 '12 at 10:46






                    • 1





                      If I try sudo dpkg --purge mysql-server mysql-client mysql-common I get : dpkg: warning: there's no installed package matching mysql-server dpkg: warning: there's no installed package matching mysql-client dpkg: warning: there's no installed package matching mysql-common . I'm bit confused now. Is that mysql have been removed or not?

                      – batman
                      Aug 6 '12 at 11:17






                    • 4





                      this wasn't sufficient for me, a few more things had to be done: stackoverflow.com/a/16178696/447661

                      – Mihai Rotaru
                      Jul 26 '14 at 21:07






                    • 3





                      This also wasn't sufficient for me - for me, also, the answer here instead worked: stackoverflow.com/a/16178696/368896

                      – Dan Nissenbaum
                      Oct 9 '15 at 8:35














                    243












                    243








                    243







                    To remove mysql completely from your system Just type in terminal



                    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





                    share|improve this answer















                    To remove mysql completely from your system Just type in terminal



                    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






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Mar 10 '18 at 16:18

























                    answered Aug 6 '12 at 8:49









                    Ketan PatelKetan Patel

                    10.4k94465




                    10.4k94465







                    • 1





                      I guess this doesn't work. After I do these steps, I tried : sudo apt-get install mysql-client-core-5.5. But it shows : mysql-client-core-5.5 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.. Is that mean still mysql resides in my pc?

                      – batman
                      Aug 6 '12 at 9:35












                    • Try sudo dpkg --purge mysql-server mysql-client mysql-common

                      – Ketan Patel
                      Aug 6 '12 at 10:46






                    • 1





                      If I try sudo dpkg --purge mysql-server mysql-client mysql-common I get : dpkg: warning: there's no installed package matching mysql-server dpkg: warning: there's no installed package matching mysql-client dpkg: warning: there's no installed package matching mysql-common . I'm bit confused now. Is that mysql have been removed or not?

                      – batman
                      Aug 6 '12 at 11:17






                    • 4





                      this wasn't sufficient for me, a few more things had to be done: stackoverflow.com/a/16178696/447661

                      – Mihai Rotaru
                      Jul 26 '14 at 21:07






                    • 3





                      This also wasn't sufficient for me - for me, also, the answer here instead worked: stackoverflow.com/a/16178696/368896

                      – Dan Nissenbaum
                      Oct 9 '15 at 8:35













                    • 1





                      I guess this doesn't work. After I do these steps, I tried : sudo apt-get install mysql-client-core-5.5. But it shows : mysql-client-core-5.5 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.. Is that mean still mysql resides in my pc?

                      – batman
                      Aug 6 '12 at 9:35












                    • Try sudo dpkg --purge mysql-server mysql-client mysql-common

                      – Ketan Patel
                      Aug 6 '12 at 10:46






                    • 1





                      If I try sudo dpkg --purge mysql-server mysql-client mysql-common I get : dpkg: warning: there's no installed package matching mysql-server dpkg: warning: there's no installed package matching mysql-client dpkg: warning: there's no installed package matching mysql-common . I'm bit confused now. Is that mysql have been removed or not?

                      – batman
                      Aug 6 '12 at 11:17






                    • 4





                      this wasn't sufficient for me, a few more things had to be done: stackoverflow.com/a/16178696/447661

                      – Mihai Rotaru
                      Jul 26 '14 at 21:07






                    • 3





                      This also wasn't sufficient for me - for me, also, the answer here instead worked: stackoverflow.com/a/16178696/368896

                      – Dan Nissenbaum
                      Oct 9 '15 at 8:35








                    1




                    1





                    I guess this doesn't work. After I do these steps, I tried : sudo apt-get install mysql-client-core-5.5. But it shows : mysql-client-core-5.5 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.. Is that mean still mysql resides in my pc?

                    – batman
                    Aug 6 '12 at 9:35






                    I guess this doesn't work. After I do these steps, I tried : sudo apt-get install mysql-client-core-5.5. But it shows : mysql-client-core-5.5 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.. Is that mean still mysql resides in my pc?

                    – batman
                    Aug 6 '12 at 9:35














                    Try sudo dpkg --purge mysql-server mysql-client mysql-common

                    – Ketan Patel
                    Aug 6 '12 at 10:46





                    Try sudo dpkg --purge mysql-server mysql-client mysql-common

                    – Ketan Patel
                    Aug 6 '12 at 10:46




                    1




                    1





                    If I try sudo dpkg --purge mysql-server mysql-client mysql-common I get : dpkg: warning: there's no installed package matching mysql-server dpkg: warning: there's no installed package matching mysql-client dpkg: warning: there's no installed package matching mysql-common . I'm bit confused now. Is that mysql have been removed or not?

                    – batman
                    Aug 6 '12 at 11:17





                    If I try sudo dpkg --purge mysql-server mysql-client mysql-common I get : dpkg: warning: there's no installed package matching mysql-server dpkg: warning: there's no installed package matching mysql-client dpkg: warning: there's no installed package matching mysql-common . I'm bit confused now. Is that mysql have been removed or not?

                    – batman
                    Aug 6 '12 at 11:17




                    4




                    4





                    this wasn't sufficient for me, a few more things had to be done: stackoverflow.com/a/16178696/447661

                    – Mihai Rotaru
                    Jul 26 '14 at 21:07





                    this wasn't sufficient for me, a few more things had to be done: stackoverflow.com/a/16178696/447661

                    – Mihai Rotaru
                    Jul 26 '14 at 21:07




                    3




                    3





                    This also wasn't sufficient for me - for me, also, the answer here instead worked: stackoverflow.com/a/16178696/368896

                    – Dan Nissenbaum
                    Oct 9 '15 at 8:35






                    This also wasn't sufficient for me - for me, also, the answer here instead worked: stackoverflow.com/a/16178696/368896

                    – Dan Nissenbaum
                    Oct 9 '15 at 8:35














                    57














                    all the above solutions are correct but I would try with



                    sudo apt-get remove --purge mysql*
                    sudo apt-get autoremove
                    sudo apt-get autoclean


                    This will uninstall all mysql related packages.






                    share|improve this answer




















                    • 10





                      This is the easiest/simplest way to get rid of everything mysql-related. Though the wildcard here will match pretty much any package with 'mysq' in it's name, so you might want to specify sudo apt-get remove --purge -s 'mysql*' to be more specific.

                      – geerlingguy
                      May 23 '14 at 18:52











                    • Seconded on the use of a more specific regex. I ended up using the regex of '^mysql-' Initially, I was going to run mysql, but found out it caught a ton of stuff unrelated...like:Note, selecting 'mysql-testsuite' for regex '^mysql*' Note, selecting 'mysql-server' for regex '^mysql*' Note, selecting 'mysql-server-core' for regex '^mysql*' Note, selecting 'mysqmail' for regex '^mysql*' Note, selecting 'mysqmail-pure-ftpd-logger' for regex '^mysql*'

                      – MaasSql
                      Mar 11 '15 at 16:18












                    • I tried all the commands listed here and afterwards if I type 'mysql' into the terminal and press tab twice I still see some option come up for mysql, does this mean anything? > mysql mysqld mysql_upgrade mysqlcheck mysql_install_db

                      – GoProCameraByGoPro
                      Mar 26 '15 at 20:45











                    • This only worked for me when I used sudo apt-get -f autoremove

                      – Simon D
                      Oct 21 '15 at 5:33











                    • this gives me a couple of errors like ` E: Unable to locate package mysql `. my installation seems to be a bit messed up. and it kind of frightening that i cant even re-install it.

                      – Blauhirn
                      Aug 3 '16 at 20:17















                    57














                    all the above solutions are correct but I would try with



                    sudo apt-get remove --purge mysql*
                    sudo apt-get autoremove
                    sudo apt-get autoclean


                    This will uninstall all mysql related packages.






                    share|improve this answer




















                    • 10





                      This is the easiest/simplest way to get rid of everything mysql-related. Though the wildcard here will match pretty much any package with 'mysq' in it's name, so you might want to specify sudo apt-get remove --purge -s 'mysql*' to be more specific.

                      – geerlingguy
                      May 23 '14 at 18:52











                    • Seconded on the use of a more specific regex. I ended up using the regex of '^mysql-' Initially, I was going to run mysql, but found out it caught a ton of stuff unrelated...like:Note, selecting 'mysql-testsuite' for regex '^mysql*' Note, selecting 'mysql-server' for regex '^mysql*' Note, selecting 'mysql-server-core' for regex '^mysql*' Note, selecting 'mysqmail' for regex '^mysql*' Note, selecting 'mysqmail-pure-ftpd-logger' for regex '^mysql*'

                      – MaasSql
                      Mar 11 '15 at 16:18












                    • I tried all the commands listed here and afterwards if I type 'mysql' into the terminal and press tab twice I still see some option come up for mysql, does this mean anything? > mysql mysqld mysql_upgrade mysqlcheck mysql_install_db

                      – GoProCameraByGoPro
                      Mar 26 '15 at 20:45











                    • This only worked for me when I used sudo apt-get -f autoremove

                      – Simon D
                      Oct 21 '15 at 5:33











                    • this gives me a couple of errors like ` E: Unable to locate package mysql `. my installation seems to be a bit messed up. and it kind of frightening that i cant even re-install it.

                      – Blauhirn
                      Aug 3 '16 at 20:17













                    57












                    57








                    57







                    all the above solutions are correct but I would try with



                    sudo apt-get remove --purge mysql*
                    sudo apt-get autoremove
                    sudo apt-get autoclean


                    This will uninstall all mysql related packages.






                    share|improve this answer















                    all the above solutions are correct but I would try with



                    sudo apt-get remove --purge mysql*
                    sudo apt-get autoremove
                    sudo apt-get autoclean


                    This will uninstall all mysql related packages.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited May 13 '14 at 14:17









                    Avinash Raj

                    52.5k41170219




                    52.5k41170219










                    answered May 13 '14 at 14:08









                    NaveenNaveen

                    57142




                    57142







                    • 10





                      This is the easiest/simplest way to get rid of everything mysql-related. Though the wildcard here will match pretty much any package with 'mysq' in it's name, so you might want to specify sudo apt-get remove --purge -s 'mysql*' to be more specific.

                      – geerlingguy
                      May 23 '14 at 18:52











                    • Seconded on the use of a more specific regex. I ended up using the regex of '^mysql-' Initially, I was going to run mysql, but found out it caught a ton of stuff unrelated...like:Note, selecting 'mysql-testsuite' for regex '^mysql*' Note, selecting 'mysql-server' for regex '^mysql*' Note, selecting 'mysql-server-core' for regex '^mysql*' Note, selecting 'mysqmail' for regex '^mysql*' Note, selecting 'mysqmail-pure-ftpd-logger' for regex '^mysql*'

                      – MaasSql
                      Mar 11 '15 at 16:18












                    • I tried all the commands listed here and afterwards if I type 'mysql' into the terminal and press tab twice I still see some option come up for mysql, does this mean anything? > mysql mysqld mysql_upgrade mysqlcheck mysql_install_db

                      – GoProCameraByGoPro
                      Mar 26 '15 at 20:45











                    • This only worked for me when I used sudo apt-get -f autoremove

                      – Simon D
                      Oct 21 '15 at 5:33











                    • this gives me a couple of errors like ` E: Unable to locate package mysql `. my installation seems to be a bit messed up. and it kind of frightening that i cant even re-install it.

                      – Blauhirn
                      Aug 3 '16 at 20:17












                    • 10





                      This is the easiest/simplest way to get rid of everything mysql-related. Though the wildcard here will match pretty much any package with 'mysq' in it's name, so you might want to specify sudo apt-get remove --purge -s 'mysql*' to be more specific.

                      – geerlingguy
                      May 23 '14 at 18:52











                    • Seconded on the use of a more specific regex. I ended up using the regex of '^mysql-' Initially, I was going to run mysql, but found out it caught a ton of stuff unrelated...like:Note, selecting 'mysql-testsuite' for regex '^mysql*' Note, selecting 'mysql-server' for regex '^mysql*' Note, selecting 'mysql-server-core' for regex '^mysql*' Note, selecting 'mysqmail' for regex '^mysql*' Note, selecting 'mysqmail-pure-ftpd-logger' for regex '^mysql*'

                      – MaasSql
                      Mar 11 '15 at 16:18












                    • I tried all the commands listed here and afterwards if I type 'mysql' into the terminal and press tab twice I still see some option come up for mysql, does this mean anything? > mysql mysqld mysql_upgrade mysqlcheck mysql_install_db

                      – GoProCameraByGoPro
                      Mar 26 '15 at 20:45











                    • This only worked for me when I used sudo apt-get -f autoremove

                      – Simon D
                      Oct 21 '15 at 5:33











                    • this gives me a couple of errors like ` E: Unable to locate package mysql `. my installation seems to be a bit messed up. and it kind of frightening that i cant even re-install it.

                      – Blauhirn
                      Aug 3 '16 at 20:17







                    10




                    10





                    This is the easiest/simplest way to get rid of everything mysql-related. Though the wildcard here will match pretty much any package with 'mysq' in it's name, so you might want to specify sudo apt-get remove --purge -s 'mysql*' to be more specific.

                    – geerlingguy
                    May 23 '14 at 18:52





                    This is the easiest/simplest way to get rid of everything mysql-related. Though the wildcard here will match pretty much any package with 'mysq' in it's name, so you might want to specify sudo apt-get remove --purge -s 'mysql*' to be more specific.

                    – geerlingguy
                    May 23 '14 at 18:52













                    Seconded on the use of a more specific regex. I ended up using the regex of '^mysql-' Initially, I was going to run mysql, but found out it caught a ton of stuff unrelated...like:Note, selecting 'mysql-testsuite' for regex '^mysql*' Note, selecting 'mysql-server' for regex '^mysql*' Note, selecting 'mysql-server-core' for regex '^mysql*' Note, selecting 'mysqmail' for regex '^mysql*' Note, selecting 'mysqmail-pure-ftpd-logger' for regex '^mysql*'

                    – MaasSql
                    Mar 11 '15 at 16:18






                    Seconded on the use of a more specific regex. I ended up using the regex of '^mysql-' Initially, I was going to run mysql, but found out it caught a ton of stuff unrelated...like:Note, selecting 'mysql-testsuite' for regex '^mysql*' Note, selecting 'mysql-server' for regex '^mysql*' Note, selecting 'mysql-server-core' for regex '^mysql*' Note, selecting 'mysqmail' for regex '^mysql*' Note, selecting 'mysqmail-pure-ftpd-logger' for regex '^mysql*'

                    – MaasSql
                    Mar 11 '15 at 16:18














                    I tried all the commands listed here and afterwards if I type 'mysql' into the terminal and press tab twice I still see some option come up for mysql, does this mean anything? > mysql mysqld mysql_upgrade mysqlcheck mysql_install_db

                    – GoProCameraByGoPro
                    Mar 26 '15 at 20:45





                    I tried all the commands listed here and afterwards if I type 'mysql' into the terminal and press tab twice I still see some option come up for mysql, does this mean anything? > mysql mysqld mysql_upgrade mysqlcheck mysql_install_db

                    – GoProCameraByGoPro
                    Mar 26 '15 at 20:45













                    This only worked for me when I used sudo apt-get -f autoremove

                    – Simon D
                    Oct 21 '15 at 5:33





                    This only worked for me when I used sudo apt-get -f autoremove

                    – Simon D
                    Oct 21 '15 at 5:33













                    this gives me a couple of errors like ` E: Unable to locate package mysql `. my installation seems to be a bit messed up. and it kind of frightening that i cant even re-install it.

                    – Blauhirn
                    Aug 3 '16 at 20:17





                    this gives me a couple of errors like ` E: Unable to locate package mysql `. my installation seems to be a bit messed up. and it kind of frightening that i cant even re-install it.

                    – Blauhirn
                    Aug 3 '16 at 20:17











                    24














                    This will remove mysql 5.6 from ubuntu 15.04



                    sudo apt-get remove --purge mysql-server mysql-client mysql-common
                    sudo apt-get autoremove
                    sudo apt-get autoclean
                    sudo rm -rf /var/lib/mysql
                    sudo rm -rf /etc/mysql





                    share|improve this answer


















                    • 1





                      Manually removing the directories seemed necessary for me (so +1), perhaps because my directories were symbolic links?

                      – Jonathan
                      Dec 13 '15 at 9:20






                    • 1





                      I felt like your anwser was the most concise, so I wantedo comment here. I did something similar for mariadb, however i noticed I had a dangling system service. I had to remove it using: superuser.com/a/936976/260852

                      – Mario Olivio Flores
                      Sep 28 '16 at 14:28






                    • 1





                      Thanks, this also works for mysql 5.7 on ubuntu 16.04.

                      – tated
                      Jan 22 '18 at 22:52















                    24














                    This will remove mysql 5.6 from ubuntu 15.04



                    sudo apt-get remove --purge mysql-server mysql-client mysql-common
                    sudo apt-get autoremove
                    sudo apt-get autoclean
                    sudo rm -rf /var/lib/mysql
                    sudo rm -rf /etc/mysql





                    share|improve this answer


















                    • 1





                      Manually removing the directories seemed necessary for me (so +1), perhaps because my directories were symbolic links?

                      – Jonathan
                      Dec 13 '15 at 9:20






                    • 1





                      I felt like your anwser was the most concise, so I wantedo comment here. I did something similar for mariadb, however i noticed I had a dangling system service. I had to remove it using: superuser.com/a/936976/260852

                      – Mario Olivio Flores
                      Sep 28 '16 at 14:28






                    • 1





                      Thanks, this also works for mysql 5.7 on ubuntu 16.04.

                      – tated
                      Jan 22 '18 at 22:52













                    24












                    24








                    24







                    This will remove mysql 5.6 from ubuntu 15.04



                    sudo apt-get remove --purge mysql-server mysql-client mysql-common
                    sudo apt-get autoremove
                    sudo apt-get autoclean
                    sudo rm -rf /var/lib/mysql
                    sudo rm -rf /etc/mysql





                    share|improve this answer













                    This will remove mysql 5.6 from ubuntu 15.04



                    sudo apt-get remove --purge mysql-server mysql-client mysql-common
                    sudo apt-get autoremove
                    sudo apt-get autoclean
                    sudo rm -rf /var/lib/mysql
                    sudo rm -rf /etc/mysql






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered May 3 '15 at 18:34









                    VaskoVasko

                    35123




                    35123







                    • 1





                      Manually removing the directories seemed necessary for me (so +1), perhaps because my directories were symbolic links?

                      – Jonathan
                      Dec 13 '15 at 9:20






                    • 1





                      I felt like your anwser was the most concise, so I wantedo comment here. I did something similar for mariadb, however i noticed I had a dangling system service. I had to remove it using: superuser.com/a/936976/260852

                      – Mario Olivio Flores
                      Sep 28 '16 at 14:28






                    • 1





                      Thanks, this also works for mysql 5.7 on ubuntu 16.04.

                      – tated
                      Jan 22 '18 at 22:52












                    • 1





                      Manually removing the directories seemed necessary for me (so +1), perhaps because my directories were symbolic links?

                      – Jonathan
                      Dec 13 '15 at 9:20






                    • 1





                      I felt like your anwser was the most concise, so I wantedo comment here. I did something similar for mariadb, however i noticed I had a dangling system service. I had to remove it using: superuser.com/a/936976/260852

                      – Mario Olivio Flores
                      Sep 28 '16 at 14:28






                    • 1





                      Thanks, this also works for mysql 5.7 on ubuntu 16.04.

                      – tated
                      Jan 22 '18 at 22:52







                    1




                    1





                    Manually removing the directories seemed necessary for me (so +1), perhaps because my directories were symbolic links?

                    – Jonathan
                    Dec 13 '15 at 9:20





                    Manually removing the directories seemed necessary for me (so +1), perhaps because my directories were symbolic links?

                    – Jonathan
                    Dec 13 '15 at 9:20




                    1




                    1





                    I felt like your anwser was the most concise, so I wantedo comment here. I did something similar for mariadb, however i noticed I had a dangling system service. I had to remove it using: superuser.com/a/936976/260852

                    – Mario Olivio Flores
                    Sep 28 '16 at 14:28





                    I felt like your anwser was the most concise, so I wantedo comment here. I did something similar for mariadb, however i noticed I had a dangling system service. I had to remove it using: superuser.com/a/936976/260852

                    – Mario Olivio Flores
                    Sep 28 '16 at 14:28




                    1




                    1





                    Thanks, this also works for mysql 5.7 on ubuntu 16.04.

                    – tated
                    Jan 22 '18 at 22:52





                    Thanks, this also works for mysql 5.7 on ubuntu 16.04.

                    – tated
                    Jan 22 '18 at 22:52











                    6














                    First you need to stop your mysql server from service.



                    sudo service mysql stop


                    Then You can use purge command to uninstall



                    sudo apt-get purge mysql-server mysql-client


                    Note: the above based on your package list. I have installed both server and client. This will for your convineient






                    share|improve this answer























                    • Stopping the MySQL service was key for me. I had it running and kept getting an error: dpkg: unrecoverable fatal error, aborting: fork failed: Cannot allocate memory E: Sub-process /usr/bin/dpkg returned an error code (2) Stopping MySQL, then running sudo dpkg --configure -a followed by sudo apt-get remove --purge mysql* worked for me.

                      – tww0003
                      Aug 14 '18 at 14:44















                    6














                    First you need to stop your mysql server from service.



                    sudo service mysql stop


                    Then You can use purge command to uninstall



                    sudo apt-get purge mysql-server mysql-client


                    Note: the above based on your package list. I have installed both server and client. This will for your convineient






                    share|improve this answer























                    • Stopping the MySQL service was key for me. I had it running and kept getting an error: dpkg: unrecoverable fatal error, aborting: fork failed: Cannot allocate memory E: Sub-process /usr/bin/dpkg returned an error code (2) Stopping MySQL, then running sudo dpkg --configure -a followed by sudo apt-get remove --purge mysql* worked for me.

                      – tww0003
                      Aug 14 '18 at 14:44













                    6












                    6








                    6







                    First you need to stop your mysql server from service.



                    sudo service mysql stop


                    Then You can use purge command to uninstall



                    sudo apt-get purge mysql-server mysql-client


                    Note: the above based on your package list. I have installed both server and client. This will for your convineient






                    share|improve this answer













                    First you need to stop your mysql server from service.



                    sudo service mysql stop


                    Then You can use purge command to uninstall



                    sudo apt-get purge mysql-server mysql-client


                    Note: the above based on your package list. I have installed both server and client. This will for your convineient







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Feb 25 '16 at 6:47









                    Vijayaprakash PVijayaprakash P

                    6711




                    6711












                    • Stopping the MySQL service was key for me. I had it running and kept getting an error: dpkg: unrecoverable fatal error, aborting: fork failed: Cannot allocate memory E: Sub-process /usr/bin/dpkg returned an error code (2) Stopping MySQL, then running sudo dpkg --configure -a followed by sudo apt-get remove --purge mysql* worked for me.

                      – tww0003
                      Aug 14 '18 at 14:44

















                    • Stopping the MySQL service was key for me. I had it running and kept getting an error: dpkg: unrecoverable fatal error, aborting: fork failed: Cannot allocate memory E: Sub-process /usr/bin/dpkg returned an error code (2) Stopping MySQL, then running sudo dpkg --configure -a followed by sudo apt-get remove --purge mysql* worked for me.

                      – tww0003
                      Aug 14 '18 at 14:44
















                    Stopping the MySQL service was key for me. I had it running and kept getting an error: dpkg: unrecoverable fatal error, aborting: fork failed: Cannot allocate memory E: Sub-process /usr/bin/dpkg returned an error code (2) Stopping MySQL, then running sudo dpkg --configure -a followed by sudo apt-get remove --purge mysql* worked for me.

                    – tww0003
                    Aug 14 '18 at 14:44





                    Stopping the MySQL service was key for me. I had it running and kept getting an error: dpkg: unrecoverable fatal error, aborting: fork failed: Cannot allocate memory E: Sub-process /usr/bin/dpkg returned an error code (2) Stopping MySQL, then running sudo dpkg --configure -a followed by sudo apt-get remove --purge mysql* worked for me.

                    – tww0003
                    Aug 14 '18 at 14:44











                    4














                    I don't use Ubuntu much but what I think you should try is what I did.



                    I first typed this in command line : sudo apt-get remove --purge mysql-server mysql-client mysql-common,



                    then followed with this below : sudo apt-get autoremove



                    and finally typed this : sudo apt-get autoclean.



                    I found that it was removed.






                    share|improve this answer





























                      4














                      I don't use Ubuntu much but what I think you should try is what I did.



                      I first typed this in command line : sudo apt-get remove --purge mysql-server mysql-client mysql-common,



                      then followed with this below : sudo apt-get autoremove



                      and finally typed this : sudo apt-get autoclean.



                      I found that it was removed.






                      share|improve this answer



























                        4












                        4








                        4







                        I don't use Ubuntu much but what I think you should try is what I did.



                        I first typed this in command line : sudo apt-get remove --purge mysql-server mysql-client mysql-common,



                        then followed with this below : sudo apt-get autoremove



                        and finally typed this : sudo apt-get autoclean.



                        I found that it was removed.






                        share|improve this answer















                        I don't use Ubuntu much but what I think you should try is what I did.



                        I first typed this in command line : sudo apt-get remove --purge mysql-server mysql-client mysql-common,



                        then followed with this below : sudo apt-get autoremove



                        and finally typed this : sudo apt-get autoclean.



                        I found that it was removed.







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Dec 4 '12 at 15:57









                        VedVals

                        1,60662543




                        1,60662543










                        answered Dec 4 '12 at 14:54









                        TaretoTareto

                        411




                        411





















                            3














                            I forgot the mysql root password and needed to reset.
                            I tried this http://www.rackspace.com/knowledge_center/article/mysql-resetting-a-lost-mysql-root-password and didn't work because it kept saying can't write logs or similar.
                            Now my solution was to completely remove mysql from Ubuntu13.10 and fresh installation.



                            sudo apt-get remove --purge mysql-server mysql-client mysql-common
                            sudo apt-get autoremove
                            sudo rm -rf /var/lib/mysql


                            I had to run the last commandline, because Ubuntu sometimes keeps some libs even you try purge them all.
                            Now install mysql server and client



                            sudo apt-get install mysql-client mysql-server





                            share|improve this answer



























                              3














                              I forgot the mysql root password and needed to reset.
                              I tried this http://www.rackspace.com/knowledge_center/article/mysql-resetting-a-lost-mysql-root-password and didn't work because it kept saying can't write logs or similar.
                              Now my solution was to completely remove mysql from Ubuntu13.10 and fresh installation.



                              sudo apt-get remove --purge mysql-server mysql-client mysql-common
                              sudo apt-get autoremove
                              sudo rm -rf /var/lib/mysql


                              I had to run the last commandline, because Ubuntu sometimes keeps some libs even you try purge them all.
                              Now install mysql server and client



                              sudo apt-get install mysql-client mysql-server





                              share|improve this answer

























                                3












                                3








                                3







                                I forgot the mysql root password and needed to reset.
                                I tried this http://www.rackspace.com/knowledge_center/article/mysql-resetting-a-lost-mysql-root-password and didn't work because it kept saying can't write logs or similar.
                                Now my solution was to completely remove mysql from Ubuntu13.10 and fresh installation.



                                sudo apt-get remove --purge mysql-server mysql-client mysql-common
                                sudo apt-get autoremove
                                sudo rm -rf /var/lib/mysql


                                I had to run the last commandline, because Ubuntu sometimes keeps some libs even you try purge them all.
                                Now install mysql server and client



                                sudo apt-get install mysql-client mysql-server





                                share|improve this answer













                                I forgot the mysql root password and needed to reset.
                                I tried this http://www.rackspace.com/knowledge_center/article/mysql-resetting-a-lost-mysql-root-password and didn't work because it kept saying can't write logs or similar.
                                Now my solution was to completely remove mysql from Ubuntu13.10 and fresh installation.



                                sudo apt-get remove --purge mysql-server mysql-client mysql-common
                                sudo apt-get autoremove
                                sudo rm -rf /var/lib/mysql


                                I had to run the last commandline, because Ubuntu sometimes keeps some libs even you try purge them all.
                                Now install mysql server and client



                                sudo apt-get install mysql-client mysql-server






                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Feb 24 '14 at 14:01









                                TennomTennom

                                1145




                                1145





















                                    1














                                    When I tried sudo apt-get purge mysql* it didn't work.



                                    Purged mysql5 with:



                                    sudo apt-get purge mysql-*


                                    Then for cleaning up:



                                    sudo apt-get autoremove
                                    sudo apt-get autoclean





                                    share|improve this answer





























                                      1














                                      When I tried sudo apt-get purge mysql* it didn't work.



                                      Purged mysql5 with:



                                      sudo apt-get purge mysql-*


                                      Then for cleaning up:



                                      sudo apt-get autoremove
                                      sudo apt-get autoclean





                                      share|improve this answer



























                                        1












                                        1








                                        1







                                        When I tried sudo apt-get purge mysql* it didn't work.



                                        Purged mysql5 with:



                                        sudo apt-get purge mysql-*


                                        Then for cleaning up:



                                        sudo apt-get autoremove
                                        sudo apt-get autoclean





                                        share|improve this answer















                                        When I tried sudo apt-get purge mysql* it didn't work.



                                        Purged mysql5 with:



                                        sudo apt-get purge mysql-*


                                        Then for cleaning up:



                                        sudo apt-get autoremove
                                        sudo apt-get autoclean






                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Jul 25 '17 at 10:06









                                        simhumileco

                                        224310




                                        224310










                                        answered Aug 8 '16 at 17:37









                                        The WiseThe Wise

                                        612




                                        612





















                                            0














                                            Completly uninstall mysql:



                                            sudo -i
                                            service mysql stop
                                            killall -KILL mysql mysqld_safe mysqld
                                            apt-get --yes purge mysql*
                                            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 ~/.mysql_history
                                            updatedb


                                            Based on this answer and many others...






                                            share|improve this answer





























                                              0














                                              Completly uninstall mysql:



                                              sudo -i
                                              service mysql stop
                                              killall -KILL mysql mysqld_safe mysqld
                                              apt-get --yes purge mysql*
                                              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 ~/.mysql_history
                                              updatedb


                                              Based on this answer and many others...






                                              share|improve this answer



























                                                0












                                                0








                                                0







                                                Completly uninstall mysql:



                                                sudo -i
                                                service mysql stop
                                                killall -KILL mysql mysqld_safe mysqld
                                                apt-get --yes purge mysql*
                                                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 ~/.mysql_history
                                                updatedb


                                                Based on this answer and many others...






                                                share|improve this answer















                                                Completly uninstall mysql:



                                                sudo -i
                                                service mysql stop
                                                killall -KILL mysql mysqld_safe mysqld
                                                apt-get --yes purge mysql*
                                                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 ~/.mysql_history
                                                updatedb


                                                Based on this answer and many others...







                                                share|improve this answer














                                                share|improve this answer



                                                share|improve this answer








                                                edited Jul 26 '17 at 9:19

























                                                answered Jul 25 '17 at 10:16









                                                simhumilecosimhumileco

                                                224310




                                                224310





















                                                    0














                                                    Try this, It will fully wipeout out every single file of MySQL from your system:



                                                    sudo service mysql stop #or mysqld
                                                    sudo killall -9 mysql
                                                    sudo killall -9 mysqld
                                                    sudo apt-get remove --purge mysql-server mysql-client mysql-common
                                                    sudo apt-get autoremove
                                                    sudo apt-get autoclean
                                                    sudo deluser -f mysql
                                                    sudo rm -rf /var/lib/mysql
                                                    sudo apt-get purge mysql-server-core-5.7
                                                    sudo apt-get purge mysql-client-core-5.7
                                                    sudo rm -rf /var/log/mysql
                                                    sudo rm -rf /etc/mysql





                                                    share|improve this answer



























                                                      0














                                                      Try this, It will fully wipeout out every single file of MySQL from your system:



                                                      sudo service mysql stop #or mysqld
                                                      sudo killall -9 mysql
                                                      sudo killall -9 mysqld
                                                      sudo apt-get remove --purge mysql-server mysql-client mysql-common
                                                      sudo apt-get autoremove
                                                      sudo apt-get autoclean
                                                      sudo deluser -f mysql
                                                      sudo rm -rf /var/lib/mysql
                                                      sudo apt-get purge mysql-server-core-5.7
                                                      sudo apt-get purge mysql-client-core-5.7
                                                      sudo rm -rf /var/log/mysql
                                                      sudo rm -rf /etc/mysql





                                                      share|improve this answer

























                                                        0












                                                        0








                                                        0







                                                        Try this, It will fully wipeout out every single file of MySQL from your system:



                                                        sudo service mysql stop #or mysqld
                                                        sudo killall -9 mysql
                                                        sudo killall -9 mysqld
                                                        sudo apt-get remove --purge mysql-server mysql-client mysql-common
                                                        sudo apt-get autoremove
                                                        sudo apt-get autoclean
                                                        sudo deluser -f mysql
                                                        sudo rm -rf /var/lib/mysql
                                                        sudo apt-get purge mysql-server-core-5.7
                                                        sudo apt-get purge mysql-client-core-5.7
                                                        sudo rm -rf /var/log/mysql
                                                        sudo rm -rf /etc/mysql





                                                        share|improve this answer













                                                        Try this, It will fully wipeout out every single file of MySQL from your system:



                                                        sudo service mysql stop #or mysqld
                                                        sudo killall -9 mysql
                                                        sudo killall -9 mysqld
                                                        sudo apt-get remove --purge mysql-server mysql-client mysql-common
                                                        sudo apt-get autoremove
                                                        sudo apt-get autoclean
                                                        sudo deluser -f mysql
                                                        sudo rm -rf /var/lib/mysql
                                                        sudo apt-get purge mysql-server-core-5.7
                                                        sudo apt-get purge mysql-client-core-5.7
                                                        sudo rm -rf /var/log/mysql
                                                        sudo rm -rf /etc/mysql






                                                        share|improve this answer












                                                        share|improve this answer



                                                        share|improve this answer










                                                        answered 20 mins ago









                                                        Akshay PethaniAkshay Pethani

                                                        1313




                                                        1313















                                                            protected by Byte Commander Feb 25 '16 at 7:53



                                                            Thank you for your interest in this question.
                                                            Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                                                            Would you like to answer one of these unanswered questions instead?



                                                            Popular posts from this blog

                                                            Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                                                            Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                                                            Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org