Remove a symlink to a directory

# this works: rm foo # versus this, which doesn’t: rm foo/ Basically, you need to tell it to delete a file, not delete a directory. I believe the difference between rm and rmdir exists because of differences in the way the C library treats each. At any rate, the first should work, while the … Read more

UTF-8 all the way through

Data Storage: Specify the utf8mb4 character set on all tables and text columns in your database. This makes MySQL physically store and retrieve values encoded natively in UTF-8. Note that MySQL will implicitly use utf8mb4 encoding if a utf8mb4_* collation is specified (without any explicit character set). In older versions of MySQL (< 5.5.3), you’ll … Read more

How do I copy folder with files to another folder in Unix/Linux? [closed]

The option you’re looking for is -R. cp -R path_to_source path_to_destination/ If destination doesn’t exist, it will be created. -R means copy directories recursively. You can also use -r since it’s case-insensitive. To copy everything inside the source folder (symlinks, hidden files) without copying the source folder itself use -a flag along with trailing /. … Read more

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