Archive for March, 2012

WordPress Functions.php add_filter after comment redirect

Thursday, March 15th, 2012

add_filter(‘comment_post_redirect‘, ‘redirect_after_comment‘);
function redirect_after_comment()
{
wp_redirect($_SERVER[‘HTTP_REFERER‘]);
}

Mysql Command Line Import

Monday, March 12th, 2012

navigate to the folder containing the .sql file you’d like to import

>mysql -user -password databaseToImportInto < newData.sql

return – no ; (unless you are IN mysql>)

password:

example:

>mysql -root -p someDB<newData.sql (return)

password: (return – default config has none, unless you’ve, hopefully, changed it, then enter it)