0

My machine is 10.11 El Capitan. From terminal, I successfully started MySQL program:

MURAK223:~ Main$ sudo /usr/local/mysql/support-files/mysql.server start
Password:
Starting MySQL
SUCCESS!

And then:

MURAK223:~ Main$ create database project1
-bash: /usr/local/bin/create: Permission denied

Checked with:

MURAK223:~ Main$ show databases
-bash: /usr/local/bin/show: Permission denied

MURAK223:~ Main$ sudo ./mysql -u root -p
sudo: ./mysql: command not found

Something messing up with my PATH?

MURAK223:~ Main$ $PATH
-bash: /usr/local/bin:/usr/local/sbin:/Users/Main/anaconda/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/metasploit-framework/bin:/opt/metasploit-framework/bin: No such file or directory

Or is it something to do with using my company's wi-fi (it didn't work at my home tho).

1
  • 1
    This sounds like you don't have the right permissions to do anything. Commented Jun 23, 2017 at 5:47

1 Answer 1

1

The error is:

Permission denied

means the user by which you are logged-in and trying to create datatabse does not have right permission. Assign the right permission and try again.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.