6 |
# |
# |
7 |
# Niels Rogalla <niro@magellan-linux.de> |
# Niels Rogalla <niro@magellan-linux.de> |
8 |
# |
# |
9 |
# $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.6 2005-08-18 03:03:25 niro Exp $ |
10 |
|
|
11 |
mysql_command(){ |
mysql_command(){ |
12 |
|
|
122 |
--host="${SQL_HOST}" \ |
--host="${SQL_HOST}" \ |
123 |
--database="${SQL_DB}" \ |
--database="${SQL_DB}" \ |
124 |
--batch \ |
--batch \ |
125 |
--execute="" $> /dev/null && return 0 || \ |
--execute="" &> /dev/null && return 0 || \ |
126 |
( |
( |
127 |
echo -e ${COLRED} |
echo -e ${COLRED} |
128 |
echo "Cannot reach a mysql-server at '${SQL_HOST}'." |
echo "Cannot reach a mysql-server at '${SQL_HOST}'." |