I am trying to install MySQL 5.5 on Solaris 10. I executed the code useradd -r -g mysql mysql where a group called mysql is already created using groupadd command.

I get the following error : UX: useradd: ERROR: invalid syntax.

Is -r option not availablr on Solaris ? Am I missing something. I am newbie to Soalris.

  • 1
    Welcome to the land of UNIX (and Solaris). The commands, while named the same, sometimes have different switches/arguments. Just use man command to lookup information. – nmad Apr 19 '14 at 11:11

just use:

useradd -g mysql mysql

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.