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

Ruby

Drew Konopasek
Drew Konopasek
5,055 Points

mysql -u root

Why wont it allow me to enter MySql when I type this in? What does this error mean?

Drews-MacBook-Air:biller drewkonopasek$ mysql -u root dyld: Library not loaded: @@HOMEBREW_PREFIX@@/opt/openssl/lib/libssl.1.0.0.dylib Referenced from: /usr/local/bin/mysql Reason: image not found Trace/BPT trap: 5

5 Answers

You may need to uninstall MySQL and install it again.

Drew Konopasek
Drew Konopasek
5,055 Points

I have unistalled it and reinstallled it twice and every time I type the mysql -u root command I keep getting the same error. I also get a similar error when I type rake db:create. it always tells me a library isnt loaded because an image is not found and I am not for sure what that means.

have you started your server?

mysql.server start

Drew Konopasek
Drew Konopasek
5,055 Points

mysql.server start dyld: Library not loaded: @@HOMEBREW_PREFIX@@/opt/openssl/lib/libssl.1.0.0.dylib Referenced from: /usr/local/Cellar/mysql/5.6.19/bin/my_print_defaults Reason: image not found Starting MySQL . ERROR! The server quit without updating PID file (/usr/local/var/mysql/localhost.pid).

That is what I get when I try to start my server.

What do you get with

brew docotor

maybe reinstalling openssl? Also found this

I got a lot more hits by searching the 'Reason' of your error message :-)

Also make sure you're closing and opening terminal after installing stuff!

Hope this points you in the right direction