Chil_Polins
Chil_Polins

Reputation: 11

cant run mysql from terminal on mac -xxamp install

I just installed xxamp and the tests say everything works fine, but when I run the command

mysql -u root

I get -bash: mysql: command not found

I am very new and don't know how to get past this. Can't finish my first tutorial without this.

Upvotes: 0

Views: 643

Answers (1)

Chil_Polins
Chil_Polins

Reputation: 11

Okay I found a solution that works for me.

export PATH=/opt/local/bin:/opt/local/sbin:/Applications/xampp/xamppfiles/bin:$PATH
mysql -u root

Make sure you have the server running (Manager-osx > Manage servers Tab > Start All) before you enter code!!

Here's where I found the answer: http://data.agaric.com/command-line-mysql-not-working-xampp

I'm sorry if this is a half assed solution but I'm just a beginner (probably like you are). Keep trying and I hope this helps someone.

Upvotes: 1

Related Questions