Bug #9624 mysqld_safe fails
Submitted: 4 Apr 2005 20:17 Modified: 6 Apr 2005 18:22
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S1 (Critical)
Version:4.1.10a OS:Linux (Red Hat Linux release 9 (Shrike))
Assigned to: CPU Architecture:Any

[4 Apr 2005 20:17] [ name withheld ]
Description:
After compiling the configuration below, mysqld_safe returns:

Starting mysqld daemon with databases from /usr2/people/niels/GOFFICE/Data_bases
Software/bin/mysqld_safe: line 311: /var/log/mysqld.log: No such file or directory
Software/bin/mysqld_safe: line 1: /var/log/mysqld.log: No such file or directory
STOPPING server from pid file /var/run/mysqld/mysqld.pid
tee: /var/log/mysqld.log: Permission denied
050404 12:29:06  mysqld ended
tee: /var/log/mysqld.log: Permission denied

This might be caused by my_print_defaults returning the following:

Software/Package_installs/MySQL/bin/my_print_defaults mysqld
--datadir=/var/lib/mysql
--socket=/var/lib/mysql/mysql.sock
--pid-file=/usr2/people/niels/GOFFICE/Admin/MySQL/yuma.pid
--port=3306
--socket=/usr2/people/niels/GOFFICE/Admin/MySQL/mysql.sock
--tmpdir=/usr2/people/niels/GOFFICE/Scratch
--datadir=/usr2/people/niels/GOFFICE/Data_bases
--skip-locking
--skip-networking
--ft_min_word_len=3
--ft_stopword_file=
--key_buffer=256M
--bulk_insert_buffer_size=128M
--max_allowed_packet=16M
--table_cache=512
--read_buffer_size=16M
--sort_buffer_size=16M
--myisam_sort_buffer_size=128M
--record_buffer=8M
--thread_cache=8
--read_rnd_buffer_size=16M
--query_cache_limit=5M
--query_cache_size=256M
--query_cache_type=1
--log=/usr2/people/niels/GOFFICE/Logs/MySQL/query.log
--log-error=/usr2/people/niels/GOFFICE/Logs/MySQL/error.log
--log-slow-queries=/usr2/people/niels/GOFFICE/Logs/MySQL/slow_query.log
--server-id=1

There are two datadir and socket lines, which I think upsets mysqld_safe. 

How to repeat:
My configuration is

    $options = "";
    $options .= " --prefix=/usr2/people/niels/GOFFICE/Package_installs/MySQL";
    $options .= " --localstatedir=/usr2/people/niels/GOFFICE/Admin/MySQL";
    $options .= " --with-unix-socket-path=/usr2/people/niels/GOFFICE/Admin/MySQL/mysql.sock";
    $options .= " --enable-assembler";
    $options .= " --enable-local-infile";
    $options .= " --enable-thread-safe-client";
    $options .= " --disable-shared";
    $options .= " --without-innodb";
    $options .= " --with-isam";
    $options .= " --with-pthreads";
    $options .= " --with-raid";
        
    $ENV{"CC"} = "gcc";
    $ENV{"CFLAGS"} = "-O3";
    $ENV{"CXX"} = "gcc";
    $ENV{"CXXFLAGS"} = "-O3 -felide-constructors -fno-exceptions -fno-rtti";
[6 Apr 2005 18:22] Jorge del Conde
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html