SQL to replace domain name in Wordpress MySQL
- Step 1: Updating serialised array in mysql
- Step 2: Updating not serialised in mysql
| // Source: https://gist.github.com/luetkemj/2023628 | |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
| */ |
| [ req ] | |
| default_bits = 2048 | |
| default_keyfile = server-key.pem | |
| distinguished_name = subject | |
| req_extensions = req_ext | |
| x509_extensions = x509_ext | |
| string_mask = utf8only | |
| [ subject ] |
| test |