Page MenuHomePhabricator

[docs] Switch from MySQL to MariaDB
ClosedPublic

Authored by ashoat on Jul 19 2022, 1:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 12:26 AM
Unknown Object (File)
Mon, Dec 16, 12:26 AM
Unknown Object (File)
Mon, Dec 16, 12:26 AM
Unknown Object (File)
Thu, Dec 12, 12:25 PM
Unknown Object (File)
Sat, Dec 7, 3:28 PM
Unknown Object (File)
Wed, Dec 4, 12:17 PM
Unknown Object (File)
Tue, Dec 3, 10:43 AM
Unknown Object (File)
Tue, Nov 26, 3:54 PM

Details

Summary

This updates our dev environment instructions to tell the user to install MariaDB instead of MySQL.

Test Plan

I ran these instructions on my own machine and confirmed things work. I also created this Gist with instructions for migrating

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

docs/dev_environment.md
125 ↗(On Diff #14667)

I added a note here to explain why we're still using "mysql" commands

128 ↗(On Diff #14667)

This isn't necessary anywhere since the Brew mariadb keg isn't "keg-only" like the mysql@5.7 (versioned ones are usually keg-only, but unversioned usually aren't)

Was able to switch over from MySQL to MariaDB on my MacBook. I can confirm that TablePlus continues to work with the steps in this doc.

After following the steps, I ran into:

ERROR 1006 (HY000): Can't create database 'comm' (errno: 2 "No such file or directory")

when I tried running:

CREATE DATABASE comm;

After minimal research online, it seemed like it was a permissions-related issue. I decided to restart my computer on a whim (I'd stopped the mysql service and uninstalled and unlinked mysql@5.7, but figured just in case there was something still lingering from the previous mysql installation?), and that seemed to resolve the issue for me.

I realize "restart your computer" isn't a great solution nor does it help determine the root cause... but it got things working for me.

This revision is now accepted and ready to land.Jul 19 2022, 2:44 PM

Realized that something is a bit borked with backup/restore on MariaDB, so holding off on this for now

This revision is now accepted and ready to land.Jul 26 2022, 4:37 AM
This revision was automatically updated to reflect the committed changes.