Is your db server in production? Why don't you just try editing the my.cnf, don't move the data, and see what happens. I would assume that mysql would complain that the mysql db's (users, hosts, etc) can't be found. Then copy over the mysql db's and restart mysql. if all you accounts are still there then that's good. Then try moving over all other db's. Make sure to look at your logs.