Blogs

McAfee virus

My laptop came pre-installed with a trial version of McAfee anti-virus software. Since my employer got hit with the qbot trojan I was concerned that it might have spread to my personal laptop so I decided to refresh it, which brought back all the pre-installed software including McAfee. In light of the qbot incident I decided to leave McAfee alone this time.

After a couple days I opened my laptop and wanted to work on a project. After 10 minutes waiting for the machine to become usable, watching Task manager and all of the McAfee processes, I decided this wasn't working out.

Drupal 7 print stack trace

Drupal 7 stack trace

 

//$e = new \Exception;
//$trace = var_dump($e->getTraceAsString());
//$trace = $e->getTraceAsString();
//$formatted_trace = str_replace('#', '<br />#',$trace);
//drupal_set_message($formatted_trace);
//drupal_debug($e->getTrace());
//debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
 

Repair mysql database

After an unexpected shutdown, your mysql dastabase files might need to be recovered.

https://www.a2hosting.com/kb/developer-corner/mysql/repairing-mysql-data…

Database datafiles for mysql are typically in /var/lib/mysql, one folder for each schema so long as you have innodb_file_per_table set.

[mysqld]
innodb_file_per_table=1

The mysql log file can be found at /var/log/mysql/error.log. 

Check each database with

Pages

Subscribe to Blogs