Posts

Showing posts from February, 2018

Reinstall steps for mysql in debian server

apt-get remove -y mysql-* apt-get purge -y mysql-* Once finished, rm -rf /var/lib/mysql rm -rf /etc/mysql* apt-get install mysql-client mysql-server mysql-common

Change file and folder permission recursively

To Change file and folder permission recursively, use the following command. Here we are using the folder /var/www as example sudo find /var/www -type d -print0 | xargs -0 chmod 755 sudo find /var/www -type f -print0 | xargs -0 chmod 644