Whenever I setup a new or re-formatted Mac for development, I always follow the "Setting Up a Dev Machine from Scratch Tutorial" series which I really like. I've used it 5/6 times now in the last few years with no issues, but all of a sudden I'm running into a weird permissions issue with MariaDB not allowing me to create databases. It appears to think I'm logged into MySQL as an anonymous user even though running status from the MySQL command prompt shows me logged in as 'root'@'localhost'.
The console log from my issue as well as the output from running status is commented below. I also describe the issue in greater detail here:
https://stackoverflow.com/questions/60645558/homebrew-mariadb10-4-11-permission-issues-on-osx-catalina-10-15-3
I've tried deleting MariaDB and re-installing and didn't have any luck. Any help or ideas would be greatly appreciated, thanks!
➜ ~ mysql -uroot
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 12
Server version: 10.4.11-MariaDB Homebrew
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database anything_db;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'anything_db'
MariaDB [(none)]> status
--------------
mysql Ver 15.1 Distrib 10.4.11-MariaDB, for osx10.15 (x86_64) using readline 5.1
Connection id: 12
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: less
Using outfile: ''
Using delimiter: ;
Server: MariaDB
Server version: 10.4.11-MariaDB Homebrew
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /tmp/mysql.sock
Uptime: 18 hours 5 min 23 sec
Threads: 7 Questions: 25 Slow queries: 0 Opens: 16 Flush tables: 1 Open tables: 10 Queries per second avg: 0.000