This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 : Shutdown or Quit your XAMPP server from Xampp control panel. | |
2 : Download the ZIP version of MariaDB | |
3 : Rename the xampp/mysql folder to mysql_old. | |
4 : Unzip or Extract the contents of the MariaDB ZIP file into your XAMPP folder. | |
5 : Rename the MariaDB folder, called something like mariadb-5.5.37-win32, to mysql. | |
6 : Rename xampp/mysql/data to data_old. | |
7 : Copy the xampp/mysql_old/data folder to xampp/mysql/. | |
8 : Copy the xampp/mysql_old/backup folder to xampp/mysql/. | |
9 : Copy the xampp/mysql_old/scripts folder to xampp/mysql/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Include this on your functions.php | |
function log_sql_queries($text_query){ | |
/* //Uncomment me if you want a lot of info about where the sql query comes from and what action started it off | |
$traces = debug_backtrace(); | |
foreach ($traces as $tobj => $trace) { | |
if($trace['function'] == 'do_action'){ | |
$args = $trace['args']; | |
} |