How to mysqldump specific tables?

This solution is from DBTODUMP=mydb SQL=”SET group_concat_max_len = 10240;” SQL=”${SQL} SELECT GROUP_CONCAT(table_name separator ‘ ‘)” SQL=”${SQL} FROM information_schema.tables WHERE table_schema=’${DBTODUMP}’” SQL=”${SQL} AND table_name NOT IN (‘t1′,’t2′,’t3’)” TBLIST=`mysql -u… -p… -AN -e”${SQL}”` mysqldump -u… -p… ${DBTODUMP} ${TBLIST} > mydb_tables.sql

Read More »

Virtualhost code in Apache

<VirtualHost> ServerAdmin root@localhost DocumentRoot /var/www/website/www_website_com/ ServerName ServerAlias ErrorLog /var/www/website/logs/ CustomLog /var/www/website/logs/ common <Directory /var/www/website/www_website_com/> AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>

Read More »

error: Uh oh ...