Skip to content

Instantly share code, notes, and snippets.

View anhducbkhn's full-sized avatar

anhduc.bkhn anhducbkhn

View GitHub Profile
@anhducbkhn
anhducbkhn / gist:c772f011292966596ad1f24a573caed6
Created March 6, 2018 08:05
Install MySQL 5.6 on CentOS 6.x
1. Install the MySQL Community repository
wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
rpm -Uvh mysql-community-release-el6-5.noarch.rpm
2. Installing MySQL 5.6
yum -y install mysql mysql-server
3. Verify the correct packages were installed
rpm -qa | grep mysql
it should be:
mysql-community-release-el6-5.noarch
Remove Data Go Pricing (https://www.go-pricing.com/) plugin
global $wpdb;
$rows = $wpdb->get_results( "SELECT * FROM wp_posts where `post_type` = 'go_pricing_tables'");
foreach ( $rows as $row )
{
wp_delete_post( $row->ID, true);
}