summaryrefslogtreecommitdiff
path: root/scripts/epgd-import-epglv
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/epgd-import-epglv')
-rwxr-xr-xscripts/epgd-import-epglv10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/epgd-import-epglv b/scripts/epgd-import-epglv
new file mode 100755
index 0000000..2d9df0c
--- /dev/null
+++ b/scripts/epgd-import-epglv
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ -z MYSQL_PWD ]; then
+ export MYSQL_PWD=epg
+fi
+
+mysql -u root -e "DROP FUNCTION IF EXISTS epglv;"
+mysql -u root -e "DROP FUNCTION IF EXISTS epglvr;"
+mysql -u root -e "CREATE FUNCTION epglv RETURNS INT SONAME 'mysqlepglv.so';"
+mysql -u root -e "CREATE FUNCTION epglvr RETURNS INT SONAME 'mysqlepglv.so';"