RE error: illegal byte sequence on Mac OS X

A sample command that exhibits the symptom: sed ‘s/./@/’ <<<$’\xfc’ fails, because byte 0xfc is not a valid UTF-8 char.Note that, by contrast, GNU sed (Linux, but also installable on macOS) simply passes the invalid byte through, without reporting an error. Using the formerly accepted answer is an option if you don’t mind losing support for your true locale (if you’re on a US system … Read more

-bash: export: `=’: not a valid identifier

You cannot put spaces around the = sign when you do: Remove the spaces you have and you should be good to go. If you type: the shell will interpret that as a request to export three names: foo, = and bar. = isn’t a valid variable name, so the command fails. The variable name, equals sign and it’s value must not be … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)