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 Database Foundations Installing MySQL Server and MySQL Workbench Installing MySQL Server and Workbench on OS X

I'm not completely sure weather it worked correctly on my Mac or not

this is what comes up on my terminal, but it looks different from the instructors :

Last login: Sun Jun 22 13:24:33 on ttys000 TJs-MacBook-Pro:~ TJ$ sudo cp /usr/local/mysql/support-files/my-default.cnf usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory TJs-MacBook-Pro:~ TJ$ sudo cp /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf TJs-MacBook-Pro:~ TJ$ sudo cp /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf /etc/my.cnf usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory TJs-MacBook-Pro:~ TJ$

3 Answers

Samuel Rueby
Samuel Rueby
22,538 Points

That looks right.

sudo is a command that elevates your privileges

cp is the 'copy' command

/usr/local/mysql/support-files/my-default.cnf is the source

/etc/my.cnf is the destination

The fact that it did nothing but show you the prompt again shows that it completed successfully.

Great, thank you so much for all your help I really appreciate it!!

Thank you for your reply Samuel, would you have any pointers or recommendations on how I could go about resolving the problem?

Samuel Rueby
Samuel Rueby
22,538 Points

On the lines where cp is outputting "usage:" it's telling you that you're missing a requirement parameter. The required parameters being source and destination. Only one parameter was specified in those cases.

Thank you for your reply Samuel, would you have any pointers or recommendations on how I could go about resolving the problem?

I have just tried it again with a small change to the code and this is what showed:

Last login: Tue Jun 24 13:25:20 on ttys000 TJs-MacBook-Pro:~ TJ$ sudo cp /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf TJs-MacBook-Pro:~ TJ$

Does that look right?