File indexing completed on 2025-01-05 04:46:55

0001 #! /bin/sh
0002 # connect to mysqld started by akonadi
0003 # useful for developing
0004 
0005 if [ -z "$1" ]; then
0006   akonadisocket="$HOME/.local/share/akonadi/socket-`hostname`/mysql.socket"
0007 else
0008   if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
0009     echo "Usage: $0 [instance identifier]"
0010     exit 1;
0011   fi
0012   akonadisocket="$HOME/.local/share/akonadi/instance/$1/socket-`hostname`/mysql.socket"
0013 fi
0014 
0015 mysql --socket=$akonadisocket akonadi