Desktop not work

After Using command in terminal: sudo rm -rf /usr/local/mysql * My desktop on my mac is not working anymore. it can not even store files. can anyone help me? thank you very much

Answered by Scott J in 685996022

Oh dear. Is this exactly the command you entered, including the space before the final * character?

sudo rm -rf /usr/local/mysql *

As you have discovered, this command (with the mistaken space) basically destroys your user account and its local data. Hopefully by now you are well along on restoring or recreating everything from backup or from iCloud or wherever. This isn't the right forum for getting support on repairing your system.

But let me ask this: where did you get the instructions that included that command? I can find a few "how to remove MySQL" instructions online that don't seem to include any obvious destructive mistakes like this. But if there is some page out there containing this mistake, it would be best to alert its author to get it fixed before anyone else suffers the same fate.

Or if the mistake was introduced just when you were typing in the command yourself, well that's better, I guess.

Accepted Answer

Oh dear. Is this exactly the command you entered, including the space before the final * character?

sudo rm -rf /usr/local/mysql *

As you have discovered, this command (with the mistaken space) basically destroys your user account and its local data. Hopefully by now you are well along on restoring or recreating everything from backup or from iCloud or wherever. This isn't the right forum for getting support on repairing your system.

But let me ask this: where did you get the instructions that included that command? I can find a few "how to remove MySQL" instructions online that don't seem to include any obvious destructive mistakes like this. But if there is some page out there containing this mistake, it would be best to alert its author to get it fixed before anyone else suffers the same fate.

Or if the mistake was introduced just when you were typing in the command yourself, well that's better, I guess.

thanks for ur answer. I have already get my data back. Unfortunately,my desktop still doesn't work. it looks like I lost every disk(like desktop, Document, etc.. I can not put my new files in them). Only the cloud drive can store files. Do you know how to fix it? or Is it necessary to reinstall the system to solve this problem?

For the resource problem, here is the link to that website: https://www.imymac.com/powermymac/uninstall-mysql-on-mac.html It looks like ok when you use English. however, if you transfer to another language (like Chinese), Sudo rm -rf /usr/local/mysql *. it will appear a space between SQL and *. like this: https://www.imymac.com/zh-CN/powermymac/uninstall-mysql-on-mac.html I didn't even check that command in Chinese. it is very dangerous!!!!!!!

Thank you very much!!

Desktop not work
 
 
Q