bishless.com

Daniel Bishop mumbles in hypertext

Fix for ‘error establishing a database connection’ after homebrew update

I build WordPress websites in a local development environment powered by Laravel Valet. I’ve been using this setup for a couple years now. It’s fast, light weight, and it’s been awesome – until it isn’t. 😉

This has happened to me twice in the last 6 months.

I run an alias for a few homebrew update commands…

brew update; brew upgrade; brew cleanup; brew doctor;

At the end of the summary of what’s been updated, sometimes a little advisory pops up and advises me to run brew prune to remove unneeded files.

brew prune

All of the sudden, my local development sites start failing to find their associated local database.

The first time it happened, I couldn’t find a good solution and ended up losing some data and starting over–completely rebuilding my development environment.

When it happened again yesterday…

I hunted for a solution for a little longer. I did not want go through that again.

Turns out there’s a really simple fix.

Apparently, when brew prune gets run, a temp directory gets removed. I figured I’d write this down to save myself a headache next time this happens.

Recreating that directory and restarting MariaDB or MySQL will restore access to your local databases.

mkdir /usr/local/etc/my.cnf.d
brew services restart mariadb

BINGO!

Leathering No More

I figured I should probably explain why the Leathering posts just stopped in November.

The iPhone 8 Plus I got back in September was provided by my employer. To make a long story short, that cell phone reimbursement/provision benefit has ended.

So, I had to purchase a new phone and plan of my own… ended up going with a different phone that doesn't fit that beautiful leather case. As much as I liked that gorgeous, enormous screen and the portrait photo mode, the Plus is just too big in my book. I decided to go back to something similar in size to the 6s I recently replaced.

I debated just deleting all the leathering posts since I didn't do a very good job keeping lighting conditions consistent for the photos… but, I think I'll just leave them. They tell a good short story about how the leather case can change over several weeks. Who knows… maybe I'll eventually get a leather case for the new phone? If I do, I'll certainly apply what I've learned about lighting mistakes when I document the changes.

Tokaido makes The Wirecutter’s 2017 Holiday Gift Guide

Tokaido is in The Wirecutter's 2017 Holiday Gift Guide.

I saw this the other day and grinned. This headline is pretty much how I introduce new players to this game at Dice & Decks game nights.

Why we like it: Tokaido is a board game with beautiful art and a relaxing concept: Whoever has the chillest vacation wins. You and your companions journey through Japan, staying at inns, eating delicious food, taking baths, buying trinkets, admiring art, and visiting temples along the way. Many competitive board games encourage cutthroat tactics, but Tokaido’s simple concept and peaceful atmosphere make for a wholly pleasant group activity.

The Wirecutter
Whoever has the chillest vacation wins - Tokaido sits on a table
Tokaido is a beautiful experience.

If you feel like picking up a copy, here's an Amazon referral link. Do what you will. And be chill about it.

Leathering – week 8

51 days in.

I'm realizing that while my location and time of day have been fairly consistent for these photos. The lighting conditions have varied drastically… might have to setup a rudimentary light box in the garage or something.

Leathering – week 7

44 days in.

Leathering – week 6

37 days in.

This photo may look a little different… I got delayed by an event and wasn’t able to take the picture at the same time of day. In addition, we had a beautifully cloudy day that affected the lighting for sure.

That said, the case looks great; I’m still really happy with it.

Leathering – week 5

30 days in. I think – when comparing this to some of my earlier photos – I’m starting to see a little more character emerge.  I'll admit the idea of being able to charge my phone wirelessly was one of the reasons I felt compelled to upgrade from my 6s. Earlier this week, I picked up an Anker wireless charger for my iPhone 8 Plus. I was a little hesitant to order one because I was worried I'd have to remove the case every time. Turns out I don't. It works great. I can just drop it on the pad and it starts charging away.  I'm thrilled.

Leathering – week 4

23 days in.

Still really happy with this case. Feels really nice in my hand.

Leathering – week 3

16 days in.

Leathering – week 2

9 days in.

« Older posts

© 2018 bishless.com

Theme by Anders NorenUp ↑