It seems the wwdb command is deprecated and it only seemed to dump students rather than homework and exam scores too.
e.g. Can I just do a MySQL command do dump the entire database and
restore is on another server?
# mysqldump -u root -p webwork > /tmp/webwork_mysql.sql # cd /opt/webwork/courses/ # tar -cvf /tmp/webwork_files.tar .
Should get all WeBWorK data (assuming that your course directory is /opt/webwork/courses/
). Then on the new server, assuming that the webwork database exists in mysql,
# mysql -u root -p < webwork_mysql.sql # cd /opt/webwork/courses/ # tar -xvf webwork_files.tar
Should restore the state of the database and course files (obviously, the files webwork_mysql.sql
and webwork_files.tar
will have to have been moved to the new server as well).
Gavin
# mysql -u root -p webwork < webwork_mysql.sql