mysqld_safe might not know where your config file is located. You can
specify it's location at the command line with
--defaults-file=file_name
alternatively, you could specify the location of your log file thus:
--log-error=file_name
other options found at
http://dev.mysql.com/doc/refman/5.1/en/mysqld-safe.html
- michael dykman
On Tue, Nov 15, 2011 at 7:31 AM, javad bakhshi javadbakh...@yahoo.com wrote:
Hi,
I am trying to install Mysql on linux which I don't have a root access. I
have done the folowing :
1. Download source files from http://dev.mysql.com/downloads/mysql/ and
un-tar thwm
2. configure the instalation using ./configure as:
CFLAGS=-O3 CXX=gcc CXXFLAGS=-O3 -felide-constructors -fno-exceptions
-fno-rtti ; \
./configure --prefix=/bubo/home/h10/javad/scratch/mysql \
--enable-assembler \
--with-mysqld-ldflags=-all-static \
--with-client-ldflags=-all-static \
--with-mysqld-user=javad \
--with-unix-socket-path=/bubo/home/h10/javad/scratch/mysql/tmp/mysql.sock \
--localstatedir=/bubo/home/h10/javad/scratch/mysql/share \
--datadir=/bubo/home/h10/javad/scratch/mysql/data\
--enable-thread-safe-client
3. execute ./bin/mysql_install_db
4. execute bin/mysqld_safe to run mysql. but at this point I get the
folowing error:
Starting mysqld daemon with databases from
/bubo/home/h10/javad/scratch/mysql/data
./bin/mysqld_safe: line 394: /var/log/mysqld.log: Permission denied
./bin/mysqld_safe: line 402: /var/log/mysqld.log: Permission denied
STOPPING server from pid file
/bubo/home/h10/javad/scratch/mysql/data/the.pid
tee: /var/log/mysqld.log: Permission denied
15 13:14:18 mysqld ended
tee: /var/log/mysqld.log: Permission denied
I don't know why I get this error since I have changed the my.cnf to
err-log=/bubo/home/h10/javad/scratch/mysql/data/the.log
pid-file=/bubo/home/h10/javad/scratch/mysql/data/the.pid
Best regards,
Javad Bakhshi,
--
- michael dykman
- mdyk...@gmail.com
May the Source be with you.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org