Mailinglisten-Archive |
hier dahinter:
/usr/bin/safe_mysqld --defaults-file=/etc/my.cnf >/dev/null 2>&1 &
also dann so (ohne zeilenumbruch!):
/usr/bin/safe_mysqld --local-infile=1 --defaults-file=/etc/my.cnf
>/dev/null 2>&1 &
das enspricht dann aber dem was ich schon vorher gepostet hatte...
Bernd Schulz wrote:
> Hallo,
>
> den Daemon mit den angegebenen Optionen zu starten bringt nichts. In einem Forum war folgendes zu lesen:
> My problem was solved by doing the following:
>
> WORKAROUND!
>
> 1) Edit /etc/rc.d/init.d/mysqld to add a switch of --local-infile=1 to the statement that invokes mysql.
>
> 2) Stop and restart the daemon with /etc/rc.d/init.d restart
>
> Die Datei mysqld sieht so aus:
> #!/bin/bash
> #
> # mysqld This shell script takes care of starting and stopping
> # the MySQL subsystem (mysqld).
> #
> # chkconfig: - 78 12
> # description: MySQL database server.
> # processname: mysqld
> # config: /etc/my.cnf
> # pidfile: /var/run/mysqld/mysqld.pid
>
> # Source function library.
> . /etc/rc.d/init.d/functions
>
> # Source networking configuration.
> . /etc/sysconfig/network
>
>
> prog="MySQL"
>
> datadir="/var/lib/mysql"
>
> start(){
>
> touch /var/log/mysqld.log
> chown mysql.mysql /var/log/mysqld.log
> chmod 0640 /var/log/mysqld.log
> if [ ! -d $datadir/mysql ] ; then
> action $"Initializing MySQL database: " /usr/bin/mysql_install_db
> ret=$?
> chown -R mysql.mysql $datadir
> if [ $ret -ne 0 ] ; then
> return $ret
> fi
> fi
> chown -R mysql.mysql $datadir
> chmod 0755 $datadir
> /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf >/dev/null 2>&1 &
> ret=$?
> if [ $ret -eq 0 ]; then
> action $"Starting $prog: " /bin/true
> else
> action $"Starting $prog: " /bin/false
> fi
> [ $ret -eq 0 ] && touch /var/lock/subsys/mysqld
> return $ret
> }
>
> stop(){
> /bin/kill `cat /var/run/mysqld/mysqld.pid 2> /dev/null ` > /dev/null 2>&1
> ret=$?
> if [ $ret -eq 0 ]; then
> action $"Stopping $prog: " /bin/true
> else
> action $"Stopping $prog: " /bin/false
> fi
> [ $ret -eq 0 ] && rm -f /var/lock/subsys/mysqld
> [ $ret -eq 0 ] && rm -f $datadir/mysql.sock
> return $ret
> }
>
> restart(){
> stop
> start
> }
>
> condrestart(){
> [ -e /var/lock/subsys/mysqld ] && restart || :
> }
>
> # See how we were called.
> case "$1" in
> start)
> start
> ;;
> stop)
> stop
> ;;
> status)
> status mysqld
> ;;
> restart)
> restart
> ;;
> condrestart)
> condrestart
> ;;
> *)
> echo $"Usage: $0 {start|stop|status|condrestart|restart}"
> exit 1
> esac
>
> exit $?
>
>
> Wo soll man jetzt diese Option einfuegen? Habe hinter start(){ versucht
> --local-infile=1
> beim Neustart kam die Meldung, dass das command not found
>
> Was koennte hier noch helfen?
>
> Gruss
> Bernd
>
--
Sebastian Mendel
info at sebastianmendel.de
www.sebastianmendel.de
www.tekkno4u.de
www.nofetish.com
--
Infos zur Mailingliste, zur Teilnahme und zum An- und Abmelden unter
-->> http://www.4t2.com/mysql
php::bar PHP Wiki - Listenarchive