Closed nexxai closed 9 months ago
Ended up solving my own problem.
I went into the downloaded binaries folder the DBngin downloads and creates, and saw that there was a my_print_defaults
executable there. I ran it, and even though it errored out, it did say this:
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf
On a whim, I checked if any of those files existed and the first one (/etc/my.cnf
) actually did, I assume from a previous install of MySQL that I had created and subsequently removed. After opening it, I saw this:
[mysqld]
sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
I deleted the file, recreated the engine in DBngin and it started up perfectly fine.
Please fill out the detail below, it helps me investigate the bug:
Driver (Ex: PostgreSQL 10.0): MySQL 8.0.33
DBngin build number: 6.9 (69)
macOS version: Sonoma 14.0 (23A344)
The steps to reproduce this issue:
The connection will fail but in the
/Users/[USERNAME]/Library/Application Support/com.tinyapp.DBngin/Engines/mysql/[INSTANCE ID]/mysqld.local.err
file, there will be the following logs:mysql.conf
file with onlysql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
in it and setting it as the 'Config` inside the engine's config within DBnginI am able to successfully create a working Redis engine and a working PostgreSQL engine. I've also tried to figure out where the default
mysqld.conf
file is supposed to be located, but cannot find one to manually remove theNO_AUTO_CREATE_USER
flag, as it seems that according to this SO post, that flag is no longer available in MySQL 8