24 June 2009

Set root password in MySQL

I believe you can only do it once.

$ mysqladmin -u root password NEWPASSWORD

Moving Wordpress Around

When moving Wordpress from development to the live server, remember to change some values in table 'wp_options'.

UPDATE wp_options
SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';

15 June 2009

Linux NIC in VMware

NIC on Linux running as VMware guest goes missing when porting from one operating system to another. One quick way to see if things are in place would be to run:

ifconfig -a


Check which eth(n) is present. Check also in the file:

vi /etc/network/interfaces


Make sure that the eth(n) stated in both are the same. If not, change the one in the file to reflect what is shown when running this command:

ifconfig -a