From: Michael Dykman Date: November 15 2011 1:11pm Subject: Re: PID and LOG file List-Archive: http://lists.mysql.com/mysql/226306 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable mysqld_safe might not know where your config file is located. You can specify it's location at the command line with --defaults-file=3Dfile_name alternatively, you could specify the location of your log file thus: --log-error=3Dfile_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 wro= te: > 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 u= n-tar thwm > 2. configure the instalation using ./configure as: > =A0=A0=A0 CFLAGS=3D"-O3" CXX=3Dgcc CXXFLAGS=3D"-O3 -felide-constructors -= fno-exceptions -fno-rtti" ; \ > ./configure --prefix=3D/bubo/home/h10/javad/scratch/mysql \ > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 --enable-assembler \ > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 --with-mysqld-ldflags=3D-all-static \ > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 --with-client-ldflags=3D-all-static \ > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 --with-mysqld-user=3Djavad \ > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 --with-unix-socket-path=3D/bubo/home/h1= 0/javad/scratch/mysql/tmp/mysql.sock \ > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 --localstatedir=3D/bubo/home/h10/javad/= scratch/mysql/share \ > =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 --datadir=3D/bubo/home/h10/javad/scratch/= mysql/data\ > =A0=A0=A0 =A0=A0 =A0 =A0=A0 --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 fo= lowing error: > =A0=A0=A0 Starting mysqld daemon with databases from /bubo/home/h10/javad= /scratch/mysql/data > =A0=A0=A0 ./bin/mysqld_safe: line 394: /var/log/mysqld.log: Permission de= nied > =A0=A0=A0 ./bin/mysqld_safe: line 402: /var/log/mysqld.log: Permission de= nied > =A0=A0=A0 STOPPING server from pid file /bubo/home/h10/javad/scratch/mysq= l/data/the.pid > =A0=A0=A0 tee: /var/log/mysqld.log: Permission denied > =A0=A0=A0 111115 13:14:18=A0 mysqld ended > =A0=A0=A0 tee: /var/log/mysqld.log: Permission denied > > I don't know why I get this error since I have changed the my.cnf to > =A0=A0=A0 err-log=3D/bubo/home/h10/javad/scratch/mysql/data/the.log > =A0=A0=A0 pid-file=3D/bubo/home/h10/javad/scratch/mysql/data/the.pid > > > > > > Best regards, > Javad Bakhshi, > --=20 =A0- michael dykman =A0- mdykman@stripped =A0May the Source be with you.