0

I am runnin OSX 10.9.5 and while trying to reset my MySQL root pasword I typed this:

sudo mysqld_safe –skip-grant-tables

After being asked for the admin password, I got this error :

sudo: mysqld_safe: command not found

I wrote this in

cd /usr/local/mysql

Also, I have a problem with the sudo command, event though I am logged on the admin account my account, It gives me often permission denied, like using this command for basically the same problem ( reseting my root password )

sudo kill cat /usr/local/mysql/data/rodongi.pid

I then got

cat: /usr/local/mysql/data/rodongi.pid: Permission denied

Password:

After entering the password …

usage: kill [-s signal_name] pid …
kill -l [exit_status]
kill -signal_name pid …
kill -signal_number pid …

I have no idea why

  • 1) I dont have the permission even though I used the sudo command( and another time sudo!! )
  • 2) Why msql-bash doesn’t not recognise the mysql and mysqld command ( I also tried in terminal-bash;does not work either)