Export/Import Mysql Database

Export a database mysql # mysqldump -u -p username database_name > dbname.sql Plesk Server # mysqldump -u admin -p`cat /etc/psa/.psa.shadow` wordpress_database > domain_backup_7.16.14.sql To export a single table from your database you would use the following command: # mysqldump -p –user=username database_name tableName > tableName.sql Import a database or table # mysql -p -u username…

Find All Files and Directories that are permissions 777

For directories [root@server]# find /var/www/vhosts/domain.com/httpdocs -type d -perm 777 -print Set to 755: root@server ]# find /var/www/vhosts/domain.com/httpdocs/ -type d -perm 777 -exec chmod 755 {} \; For Files [root@server]# find /var/www/vhosts/domain.com/httpdocs -type f -perm 777 -print Set to 644: [root@server]# find /var/www/vhosts/domain.com/httpdocs -type f -perm 777 -exec chmod 644 {} \;