Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3397797
D9304.id31460.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
900 B
Referenced Files
None
Subscribers
None
D9304.id31460.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9304: [nix] Enable `performance_schema` by default on Nix
Attached
Detach File
Event Timeline
Log In to Comment