Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools

Andrew Carr
Andrew Carr
10,979 Points

Problems accessing MySql via command line (though I've used MySql Workbench to complete Database Foundations).

Basically I'd expect to type 'mysql' in command line and start up the mysql server. I've downloaded MySql 5.6 and MySql Workbench 6.2. and have completed the Database Foundations block, so I'm 99% sure I have MySql properly downloaded. That being said, when I go to Applications directory, only MySQLWorkbench.app is present.

To cover my bases, i checked cd /usr/local/mysql, which gave me a valid directory, which includes a mysql line. When running ./bin/mysqld_safe, it says an instance is already running.

At this point I don't get how to for-sure identify the mysql files associated with the app and how to connect them to a command line command. Any help would be appreciated.

Best, Andrew

1 Answer

Hi Andrew,

Hoping this can point you in the right direction. On my machine, the \mysql\bin folder holds a file called mysql_embedded.exe that when launched, provides me with a command line to mysql. Note: I'm using Windows.