Page MenuHomePhabricator

D9304.id31460.diff
No OneTemporary

D9304.id31460.diff

diff --git a/.gitignore b/.gitignore
--- a/.gitignore
+++ b/.gitignore
@@ -44,6 +44,9 @@
result*
.direnv
+# MariaDB
+.comm.cnf
+
# Electron
desktop/out/
desktop/assets/
diff --git a/nix/mariadb-up-mac.nix b/nix/mariadb-up-mac.nix
--- a/nix/mariadb-up-mac.nix
+++ b/nix/mariadb-up-mac.nix
@@ -13,6 +13,9 @@
text = ''
MARIADB_DIR=''${XDG_DATA_HOME:-$HOME/.local/share}/MariaDB
+ # Create .comm.cnf
+ printf "[mysqld]\nperformance_schema=ON\n" > ".comm.cnf"
+
echo "View MariaDB logs: tail -f $MARIADB_DIR/logs" >&2
echo "Kill MariaDB server: pkill mariadbd" >&2
@@ -22,6 +25,7 @@
# 'exec' allows for us to replace bash process with MariaDB
exec "${mariadb}/bin/mariadbd" \
+ --defaults-extra-file=.comm.cnf \
--socket "$MARIADB_DIR"/mysql.sock \
--datadir "$MARIADB_DIR" \
--innodb-ft-min-token-size=1 \

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 2, 7:32 PM (22 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2608685
Default Alt Text
D9304.id31460.diff (900 B)

Event Timeline