Are you getting this error on the top of your wordpress blog showing an error “Warning: mysql_set_charset() [function.mysql-set-charset]: Error executing query in YOUR_PATH\wp-includes\wp-db.php on line 829“. I tried searching on Google and looking for a solution but nothing fixed the wordpress error. But found out this error is cause of a wrong DB_CHARSET set in your wordpress config after upgrading my server from Godaddy into a new server.
How to Fixed Warning: mysql_set_charset() Error in WordPress
- Go to your root folder and open wp-config.php.
- Then, find this line define(‘DB_CHARSET’, ‘utf8mb4’);.
- Change the ut8mb4 to utf8m it should like: define(‘DB_CHARSET’, ‘utf8m’);.
- Save it and reload the page.
Hope this problem fixed your wordpress error! If you still have problem on this error, leave a comment below.