Index: /trunk/FACT++/src/Configuration.cc
===================================================================
--- /trunk/FACT++/src/Configuration.cc	(revision 19138)
+++ /trunk/FACT++/src/Configuration.cc	(revision 19139)
@@ -350,5 +350,5 @@
 //!      The URL of the database from which the configuration data is
 //!      retrieved. It should be given in the form
-//!          \li [user[:password]@]server.com[:port]/database[/comp]
+//!          \li [user[:password]@]server.com[:port]/database[?compress=0|1]
 //!
 //!      with
@@ -358,5 +358,5 @@
 //!          - port:     the port to which to connect (usually obsolete)
 //!          - database: The name of the database containing the table
-//!          - comp:     Force [comp=+] / prohibit [comp=-] compression
+//!          - compress: Force [=1] / prohibit [=0] compression
 //!
 //!  The default is that connections to the SQL server are compressed
Index: /trunk/FACT++/src/Database.h
===================================================================
--- /trunk/FACT++/src/Database.h	(revision 19138)
+++ /trunk/FACT++/src/Database.h	(revision 19139)
@@ -19,5 +19,5 @@
     DatabaseName(const std::string &database) : compression(0)
     {
-        static const boost::regex expr("(([[:word:].-]+)(:(.+))?@)?([[:word:].-]+)(:([[:digit:]]+))?(/([[:word:].-]+))(/[+-])?");
+        static const boost::regex expr("(([[:word:].-]+)(:(.+))?@)?([[:word:].-]+)(:([[:digit:]]+))?(/([[:word:].-]+))(\\?compress=[01])?");
 
         boost::smatch what;
@@ -33,5 +33,5 @@
         db     = what[9];
 
-        compression = std::string(what[10])[1];
+        compression = std::string(what[10])[10];
 
         try
@@ -65,6 +65,6 @@
         mysqlpp::Connection()
     {
-        if ((compression!='-' && boost::algorithm::to_lower_copy(server)!="localhost" && server!="127.0.0.1")||
-            compression=='+')
+        if ((compression!='0' && boost::algorithm::to_lower_copy(server)!="localhost" && server!="127.0.0.1")||
+            compression=='1')
             set_option(new mysqlpp::CompressOption());
 
Index: /trunk/FACT++/src/calcsource.cc
===================================================================
--- /trunk/FACT++/src/calcsource.cc	(revision 19138)
+++ /trunk/FACT++/src/calcsource.cc	(revision 19139)
@@ -23,5 +23,5 @@
          ->required()
 #endif
-         , "Database link as in\n\tuser:password@server[:port]/database[/comp].")
+         , "Database link as in\n\tuser:password@server[:port]/database[?compress=0|1].")
         //("source-key",     var<uint32_t>(5),                "")
         //("source-name",    var<string>(""),               "")
Index: /trunk/FACT++/src/drivectrl.cc
===================================================================
--- /trunk/FACT++/src/drivectrl.cc	(revision 19138)
+++ /trunk/FACT++/src/drivectrl.cc	(revision 19139)
@@ -3158,5 +3158,5 @@
         ("deviation-count",          var<uint16_t>(3),          "Minimum number of reported deviation below deviation-limit to get 'OnTrack'")
         ("deviation-max",            var<uint16_t>(180),        "Maximum deviation in arcsec allowed to keep status 'OnTrack'")
-        ("source-database",          var<string>(),             "Database link as in\n\tuser:password@server[:port]/database[/comp].")
+        ("source-database",          var<string>(),             "Database link as in\n\tuser:password@server[:port]/database[?compress=0|1].")
         ("source",                   vars<string>(),            "Additional source entry in the form \"name,hh:mm:ss,dd:mm:ss\"")
         ;
Index: /trunk/FACT++/src/fits2sql.cc
===================================================================
--- /trunk/FACT++/src/fits2sql.cc	(revision 19138)
+++ /trunk/FACT++/src/fits2sql.cc	(revision 19139)
@@ -44,5 +44,5 @@
          ->required()
 #endif
-         , "Database link as in\n\tuser:password@server[:port]/database[/comp].")
+         , "Database link as in\n\tuser:password@server[:port]/database[?compress=0|1].")
         ("file",           var<string>("")
 #if BOOST_VERSION >= 104200
Index: /trunk/FACT++/src/makedata.cc
===================================================================
--- /trunk/FACT++/src/makedata.cc	(revision 19138)
+++ /trunk/FACT++/src/makedata.cc	(revision 19139)
@@ -19,5 +19,5 @@
         ("source-name", var<string>(), "Source name")
         ("date-time", var<string>(), "SQL time (UTC)")
-        ("source-database", var<string>(""), "Database link as in\n\tuser:password@server[:port]/database[/comp].")
+        ("source-database", var<string>(""), "Database link as in\n\tuser:password@server[:port]/database[?compress=0|1].")
         ("max-current", var<double>(75), "Maximum current to display in other plots.")
         ("max-zd", var<double>(75), "Maximum zenith distance to display in other plots")
Index: /trunk/FACT++/src/makeplots.cc
===================================================================
--- /trunk/FACT++/src/makeplots.cc	(revision 19138)
+++ /trunk/FACT++/src/makeplots.cc	(revision 19139)
@@ -48,5 +48,5 @@
         //("dec",       var<double>(), "Source declination")
         ("date-time", var<string>(), "SQL time (UTC)")
-        ("source-database", var<string>(""), "Database link as in\n\tuser:password@server[:port]/database[/comp].")
+        ("source-database", var<string>(""), "Database link as in\n\tuser:password@server[:port]/database[?compress=0|1].")
         ("max-current", var<double>(100), "Maximum current to display in other plots.")
         ("max-zd", var<double>(50), "Maximum zenith distance to display in other plots")
Index: /trunk/FACT++/src/makeschedule.cc
===================================================================
--- /trunk/FACT++/src/makeschedule.cc	(revision 19138)
+++ /trunk/FACT++/src/makeschedule.cc	(revision 19139)
@@ -19,6 +19,6 @@
     control.add_options()
         ("date", var<string>(), "SQL time (UTC), e.g. '2016-12-24' (equiv. '2016-12-24 12:00:00' to '2016-12-25 11:59:59')")
-        ("source-database", var<string>()->required(), "Database link as in\n\tuser:password@server[:port]/database[/comp].")
-        ("schedule-database", var<string>(), "Database link as in\n\tuser:password@server[:port]/database[/comp].")
+        ("source-database", var<string>()->required(), "Database link as in\n\tuser:password@server[:port]/database[?compress=0|1].")
+        ("schedule-database", var<string>(), "Database link as in\n\tuser:password@server[:port]/database[?compress=0|1].")
         ("max-current", var<double>(90), "Global maximum current limit in uA")
         ("max-zd", var<double>(75), "Global zenith distance limit in degree")
Index: /trunk/FACT++/src/root2sql.cc
===================================================================
--- /trunk/FACT++/src/root2sql.cc	(revision 19138)
+++ /trunk/FACT++/src/root2sql.cc	(revision 19139)
@@ -48,5 +48,5 @@
          ->required()
 #endif
-         , "Database link as in\n\tuser:password@server[:port]/database[/comp].")
+         , "Database link as in\n\tuser:password@server[:port]/database[?compress=0|1].")
         ("file",           var<string>("")
 #if BOOST_VERSION >= 104200
Index: /trunk/FACT++/src/rootifysql.cc
===================================================================
--- /trunk/FACT++/src/rootifysql.cc	(revision 19138)
+++ /trunk/FACT++/src/rootifysql.cc	(revision 19139)
@@ -24,5 +24,5 @@
     po::options_description control("Rootify SQL");
     control.add_options()
-        ("uri,u",         var<string>()->required(),   "Database link as in\n\tuser:password@server[:port]/database[/comp].")
+        ("uri,u",         var<string>()->required(),   "Database link as in\n\tuser:password@server[:port]/database[?compress=0|1].")
         ("query,q",       var<string>(""),             "MySQL query (overwrites --file)")
         ("file",          var<string>("rootify.sql"),  "An ASCII file with the MySQL query (overwrites --query)")
Index: /trunk/FACT++/src/smartfact.cc
===================================================================
--- /trunk/FACT++/src/smartfact.cc	(revision 19138)
+++ /trunk/FACT++/src/smartfact.cc	(revision 19139)
@@ -3538,5 +3538,5 @@
         ("pixel-map-file",  var<string>()->required(),     "Pixel mapping file. Used here to get the default reference voltage")
         ("path",            var<string>("www/smartfact/data"), "Output path for the data-files")
-        ("source-database", var<string>(""), "Database link as in\n\tuser:password@server[:port]/database[/comp].")
+        ("source-database", var<string>(""), "Database link as in\n\tuser:password@server[:port]/database[?compress=0|1].")
         ("client",          po_bool(false), "For a standalone client choose this option.")
         ;
