简体   繁体   中英

I can't access mysql on mac os x through terminal

  • I have a mac os x.

  • I install Netbeans 7.2 with Glassfish

  • I install XAMPP

Glassfish is fine, XAMPP has green lights, and netbeans is working.

I want to use MySQL with a Java application that's using Glassfish. I am not having success starting mysql from the terminal. Even after adding XAMPP's mysql to path

 export PATH=$PATH:/Applications/XAMPP/xamppfiles/bin/mysql

I still can't get to mysql from terminal. Will someone please help?

$PATH contains directories containing commands, not the executables themselves. It should be:

export PATH=$PATH:/Applications/XAMPP/xamppfiles/bin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM