ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Apache Web-Serving With Mac OS X, Part 5
Subject:   Permission Denied
Date:   2002-06-11 01:23:10
From:   macette
Am probable loser, but nonetheless...


After installing MySQL 3.23.49, I enter this jazz in Terminal, as suggested:


cd /usr/local/mysql/
sudo ./scripts/mysql_install_db
sudo chown -R mysql /usr/local/mysql
sudo ./bin/safe_mysqld --user=mysql &


but rather than getting " Starting mysqld daemon with databases from /usr/local/var" or words to that effect, I get:


"To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
./bin/mysqladmin -u root -p password 'new-password'
./bin/mysqladmin -u root -h localhost -p password 'new-password'
See the manual for more instructions.


You can start the MySQL daemon with:
cd . ; ./bin/safe_mysqld &


You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; run-all-tests


Please report any problems with the ./bin/mysqlbug script!


The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com"


So I follow the instruction to "start the MySQLDaemon by entering cd . ; ./bin/safe_mysqld & "


and then I get:
"[localhost:/usr/local/mysql] virginia% touch: /usr/local/mysql/data/localhost.err: Permission denied
chown: /usr/local/mysql/data/localhost.err: No such file or directory
Starting mysqld daemon with databases from /usr/local/mysql/data
./bin/safe_mysqld: permission denied: /usr/local/mysql/data/localhost.err [229]
./bin/safe_mysqld: permission denied: /usr/local/mysql/data/localhost.err [235]
tee: /usr/local/mysql/data/localhost.err: Permission denied
020611 18:11:51 mysqld ended
tee: /usr/local/mysql/data/localhost.err: Permission denied"


What now??


I'd be most grateful for some help here... this is my first time in Terminal, and I'm floundering thinking of ways to help myself.


Virginia (virg@alphalink.com.au)


1 to 1 of 1
  1. allmost same problem
    2002-06-23 09:19:18  bluesy [View]

    • allmost same problem
      2002-08-21 19:17:51  hembeck [View]

      • allmost same problem
        2002-11-22 14:02:40  cesareborgia [View]

    • allmost same problem
      2002-06-25 06:16:02  bluesy [View]

1 to 1 of 1