http://codesnippets.joyent.com/posts/show/2038
platform : LW3xx running DebianFirstgetdebian-sys-maintuserpassfrom/etc/mysql/debian.cnfExample:debian-sys-maintYTERYgkjhbsfk87ceThen:$mysql-udebian-sys-maint-ppassword:(putYTERYgkjhbsfk87cehere)mysql>UPDATEmysql.userSETPassword=PASSWORD('my_new_password')WHEREUser='root';mysql>flushprivileges;mysql>quit$mysqladmin-urootpasswordmy_new_password(Ididn't use this one since I don'tlikeremoterootaccess)$mysqladmin-p-uroot-hlocalhostpasswordmy_new_password--CONNECTIONSETTINGS--open/etc/mysql/my.cnffilesudovi/etc/mysql/my.cnfMakesurebind-addresssettoyourserverIPaddress(notto127.0.0.1)bind-address=192.158.5.1Alsomakesurelineskip-networkingisremovedorcommentedout# skip-networkingSaveandclosethefile;Restartmysqlsudo/etc/init.d/mysqlrestart