Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #186799 > unrolled thread
| Started by | "larry owens" <larrydowens6@att.net> |
|---|---|
| First post | 2017-09-14 17:40 +0200 |
| Last post | 2017-09-14 20:10 +0200 |
| Articles | 5 — 4 participants |
Back to article view | Back to linux.debian.user
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
| From | "larry owens" <larrydowens6@att.net> |
|---|---|
| Date | 2017-09-14 17:40 +0200 |
| Subject | mariadb uninstall/reinstall |
| Message-ID | <upEpc-6NY-21@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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 Larry
[toc] | [next] | [standalone]
| From | Alberto Luaces <aluaces@udc.es> |
|---|---|
| Date | 2017-09-14 17:50 +0200 |
| Message-ID | <upEyS-6RC-9@gated-at.bofh.it> |
| In reply to | #186799 |
"larry owens" writes: > Colleagues > [...] > 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 Hi, as long as you installed it from Debian packages, you only have to purge (as opposed to only remove) its packages and then reinstall. Populating the new database is the real work, in my opinion. -- Alberto
[toc] | [prev] | [next] | [standalone]
| From | Cindy-Sue Causey <butterflybytes@gmail.com> |
|---|---|
| Date | 2017-09-14 20:00 +0200 |
| Message-ID | <upGAG-88i-13@gated-at.bofh.it> |
| In reply to | #186800 |
On 9/14/17, Alberto Luaces <aluaces@udc.es> wrote: > "larry owens" writes: > >> Colleagues >> > > [...] > >> 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 > > Hi, as long as you installed it from Debian packages, you only have to > purge (as opposed to only remove) its packages and then reinstall. I was wondering about that. I a-sumed maybe it tried to over-purge other important packages the way that happens sometimes. Larry, it might others help you if you gave a hint or two about the methods you found online that didn't work. Others may know of successful work-arounds if they hear more about what misfired. You never know, you may have even stumbled onto a bug.. :) Cindy :) -- Cindy-Sue Causey Talking Rock, Pickens County, Georgia, USA * runs with duct tape *
[toc] | [prev] | [next] | [standalone]
| From | Alberto Luaces <aluaces@udc.es> |
|---|---|
| Date | 2017-09-15 10:10 +0200 |
| Message-ID | <upTRf-5K-5@gated-at.bofh.it> |
| In reply to | #186814 |
Cindy-Sue Causey writes: > I was wondering about that. I a-sumed maybe it tried to over-purge > other important packages the way that happens sometimes. There is no risk: only explicitly named packages are purged. The rest are deleted on demand. -- Alberto
[toc] | [prev] | [next] | [standalone]
| From | Dan Ritter <dsr@randomstring.org> |
|---|---|
| Date | 2017-09-14 20:10 +0200 |
| Message-ID | <upGKn-8qu-11@gated-at.bofh.it> |
| In reply to | #186799 |
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-
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web