Difference between revisions of "MySQL"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{{!}} class="wikitable" style="float: right; width: 322px;" border="2"
{{!}}+ Proven on:
{{!}}- --="" debian=""
{{!}} style="text-align: center; width: 60px;" {{!}} [[File:Logo Debian.png{{!}}60px{{!}}link=https://www.debian.org/{{!}}center{{!}}middle{{!}}frameless]]
{{!}} style="text-align: center; width: 40px;" {{!}} 11 (bullseye)
{{!}}
{{!}}}
'''As always...'''
Start with:
*<code>sudo apt update</code>
*<code>sudo apt upgrade</code>
= MySQL on Debian =
= MySQL on Debian =


Line 7: Line 22:
Check the [https://dev.mysql.com/downloads/repo/apt/ MySQL download page] for current version...
Check the [https://dev.mysql.com/downloads/repo/apt/ MySQL download page] for current version...


If you're happy with '''8.0.27''', go ahead, download & install.
If you're happy with '''8.0.28''', go ahead, download & install.
 
(Do note:  <code>apt update</code> may throw errors if you don't use the latest version.)
 
* <code>wget <nowiki>https://dev.mysql.com/get/mysql-apt-config_0.8.22-1_all.deb</nowiki></code>
* <code>wget <nowiki>https://dev.mysql.com/get/mysql-apt-config_0.8.22-1_all.deb</nowiki></code>
* <code>sudo apt install ./mysql-apt-config_0.8.22-1_all.deb</code>
* <code>sudo apt install ./mysql-apt-config_0.8.22-1_all.deb</code>

Revision as of 23:40, 27 January 2022

Proven on:
Logo Debian.png
11 (bullseye)

As always...

Start with:

  • sudo apt update
  • sudo apt upgrade

MySQL on Debian

Debian does not have MySQL in its repositories... :(

We can solve this!

Check the MySQL download page for current version...

If you're happy with 8.0.28, go ahead, download & install.

(Do note: apt update may throw errors if you don't use the latest version.)

  • wget https://dev.mysql.com/get/mysql-apt-config_0.8.22-1_all.deb
  • sudo apt install ./mysql-apt-config_0.8.22-1_all.deb

It may ask about distro version. On LMDE 4 or SparkyLinux 5, Select "debian buster" (It won't ask on Debian...)

Select "Ok"

Select "Ok"

Select "Ok"

Some versions will also ask about Configuring mysql-community-server

  • Pick a good root password...
  • I tend to select Use Legacy Authentication Method because Use Strong Password Encryption is annoying as hell. (Your choice here...)

Update & Upgrade everything now...

  • sudo apt update
  • sudo apt upgrade

Now you can go ahead & pretend they haven't dropped MySQL from the Debian repos...