DB_HOST – is LOCALHOST speedy than domain name? [closed]

Usually you only have to use mysql.domain.com if connecting to a remote database. If that is what you are doing, then yes. It will be slower than a locally hosted database. Even if the domain resolves to the local server localhost should resolve quicker as it uses the loopback interface which bypasses network hardware.

Installation question

I would recommend that your do the get the following from theme. There host. It is good to know a persons host before starting work on there website. You should make sure that you have full admin access, or if they have multisite then Super Admin. This way you can have all the freedom to … Read more

What does the $posts_join filter join to?

posts_join is only a part of the full SQL query, the table you’re joining to is referenced earlier in the query. You can see the full query with the posts_request filter. See the documentation for the rest of the query filters.

Directly editing WP database issues

The data is serialized. You can try an online editor like this one (just use JSON), otherwise you can do it with a little PHP: $data = unserialize( $your_serialized_data ); $data[‘this’] = ‘that’; echo serialize( $data );

MySQL: How to change url in posts from xxx.com to yyy.org?

Instead of replace url directly in mysql db Try with Velvet Blues Update URLs wordpress plugin. It is safe to use this plugin. Because mysql db has some serialize values for post meta key. In that case your solution will not work proper. I had used velvet blue update urls plugin many times while migrating … Read more

Migration problems with mysql: Operation not allowed when innodb_forced_recovery > 0 [closed]

Commenting out the line innodb_force_recovery = 1 in /etc/my.cnf thus: # innodb_force_recovery = 1 made the mysql innodb tables in the database accessible. Apparently this setting causes innodb to become read-only. I hope this helps someone in the future. If you don’t have access to /etc/my.cnf on shared hosting, ask your host to fix it … Read more