--- alx-src/trunk/alxconfig-ng/functions/mysqlfunctions 2005/08/17 22:09:59 286 +++ alx-src/trunk/alxconfig-ng/functions/mysqlfunctions 2005/08/18 08:13:49 298 @@ -6,7 +6,7 @@ # # Niels Rogalla # -# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/mysqlfunctions,v 1.5 2005-08-17 22:09:59 niro Exp $ +# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/mysqlfunctions,v 1.7 2005-08-18 08:13:49 niro Exp $ mysql_command(){ @@ -115,14 +115,14 @@ reach_mysql_server() { - # set connection timeout to 10 secs - mysql --connect_timeout=10 \ + # set connection timeout to 20 secs + mysql --connect_timeout=20 \ --user="${SQL_USER}" \ --password="${SQL_PASS}" \ --host="${SQL_HOST}" \ --database="${SQL_DB}" \ --batch \ - --execute="" $> /dev/null && return 0 || \ + --execute="" &> /dev/null && return 0 || \ ( echo -e ${COLRED} echo "Cannot reach a mysql-server at '${SQL_HOST}'."