Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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.