Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #186816

Re: mariadb uninstall/reinstall

From Dan Ritter <dsr@randomstring.org>
Newsgroups linux.debian.user
Subject Re: mariadb uninstall/reinstall
Date 2017-09-14 20:10 +0200
Message-ID <upGKn-8qu-11@gated-at.bofh.it> (permalink)
References <upEpc-6NY-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Sep 14, 2017 at 08:36:33AM -0700, larry owens wrote:
> Colleagues
> 
> I've been a loyal Debian user since (I believe) release 4.  I also use
> Debian as the basis for a college course I teach in C programming so the
> students get 'nix exposure in addition to C.  As is my custom I typically
> wait a few months after a new release and then convert to the new Debian.  I
> am just finishing the upgrade to Stretch and have run into an issue.
> Somehow as part of the conversion for my LAMP server I screwed up the Maria
> db.  After trying to repair the installation I have decided to remove and
> reinstall.  Unfortunately I have been unable to find a set of instructions
> to safely remove Maria.  Can anyone point me to a working process (the one's
> on the web currently don't seem to work).  TIA

You can think of it as being three parts:

1. the mariadb program files

2. the configuration for mariadb, some of which is setup
automatically by Debian on install, and some of which you may
have (or may have to) configure yourself.

3. the database data files

apt-get remove mariadb
    will remove the program files, leaving (2) and (3) alone.

apt-get purge mariadb
    will remove the program files and the existing
    configuration, leaving (3) alone

apt-get install mariadb
    will install the program files and re-create the basic
    configuration.

If you want the database datafiles to go away, after doing
a purge, you should delete them. They are probably in
/var/lib/mysql or /var/lib/mariadb, but you could have directed 
the database to put them elsewhere.

-dsr-

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

mariadb uninstall/reinstall "larry owens" <larrydowens6@att.net> - 2017-09-14 17:40 +0200
  Re: mariadb uninstall/reinstall Alberto Luaces <aluaces@udc.es> - 2017-09-14 17:50 +0200
    Re: mariadb uninstall/reinstall Cindy-Sue Causey <butterflybytes@gmail.com> - 2017-09-14 20:00 +0200
      Re: mariadb uninstall/reinstall Alberto Luaces <aluaces@udc.es> - 2017-09-15 10:10 +0200
  Re: mariadb uninstall/reinstall Dan Ritter <dsr@randomstring.org> - 2017-09-14 20:10 +0200

csiph-web