summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/mysql/mysqld
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/mysql/mysqld')
-rwxr-xr-xabs/core-testing/mysql/mysqld11
1 files changed, 3 insertions, 8 deletions
diff --git a/abs/core-testing/mysql/mysqld b/abs/core-testing/mysql/mysqld
index 7621ac1..843397e 100755
--- a/abs/core-testing/mysql/mysqld
+++ b/abs/core-testing/mysql/mysqld
@@ -22,21 +22,16 @@ if [ ! `egrep '^mysql:' /etc/passwd` ]; then
fi
if [ ! -d $MYSQLD_ROOT ]; then
- mkdir -p $MYSQLD_ROOT 2> /dev/null
- /usr/bin/mysql_install_db --datadir=$MYSQLD_ROOT --user=mysql 2>/dev/null > /dev/null
+ mkdir $MYSQLD_ROOT
+ /usr/bin/mysql_install_db --datadir=$MYSQLD_ROOT --user=mysql
chown -R mysql.mysql $MYSQLD_ROOT
fi
-if [ ! -e /var/log/mysqld.log ]; then
- touch /var/log/mysqld.log
- chown mysql /var/log/mysqld.log
-fi
-
case "$1" in
start)
stat_busy "Starting MySQL"
if [ -z "$PID" ]; then
- /usr/bin/mysqld_safe --skip-name-resolve --datadir=$MYSQLD_ROOT 2>/dev/null >/dev/null &
+ /usr/bin/mysqld_safe --datadir=$MYSQLD_ROOT &>/dev/null &
if [ $? -gt 0 ]; then
stat_fail
exit 1