For the code — any version control system, even though the same SVN, but preferably Git.
As for mysql, there are several solutions:
1. to do a night dump and committing it to the version control system, home — extrude from there and import into mysql.
2. the same plus console view scripts "dump + commit", "checkout + restore" for automation
3. to raise the mysql database on the server, accessible from the outside and use it for both projects (work and home)