using same mysql user with many databases

Well it’s really not good practise, but this depends on how you’re accessing the other databases. For example, I have a server that hosts 10+ different WordPress sites. I have two options for connecting to the databases: Use the root login in all my wp-config.php files as it’s easier Create a user and logins associated … Read more

MySQL database gives blank page (white screen of death)

From the looks of it, you should be changing the pre-existing urls from /www.mypage.no to /localhost The /var/www is part of the file path normally (though i suppose you could potentially set the server up that way…), so more than likely wordpress thinks it is at /var/www relative to the web root instead of /. … Read more

How can I work on a database along side a client?

You’ll need to make some modifications to wp-config.php. Add the following so WordPress picks up the domain automatically based on the environment: define( ‘WP_SITEURL’, ‘http://’ . $_SERVER[‘SERVER_NAME’] ); define( ‘WP_HOME’, ‘http://’ . $_SERVER[‘SERVER_NAME’] ); Now we need to make WordPress a little more portable by having it determine which host to use based on which … Read more

not saving post in wp_post wordpress database table

As Milo noted, you need to call the importposts functions to have it do anything. Additionally, if your post is not inserted, post_id should hold a wp_error object, so you could see what is wrong by doing the following right before add_post_meta if ( is_wp_error( $post_id ) ) { echo “<p>Bad Post Attempt:</p><pre>” . print_r($post_id, … Read more