Database
A MySQL database stores information about subjects, studies, and analyses. The database needs to be set up either on a local computer, or on a server. This page contains installation and upgrade directions, and subpages below explain other actions.
- Installing the Database Software
- Backing Up or Saving a MySQL Datatabase
- Create User and Assign Permissions
- Restoring or Creating a New MySQL Database
- Troubleshooting database issues
- Upgrading MySQL
- Database Structure (Partial)
- Changing paths for study data and projects
Upgrading from previous version
Sometimes prior versions can cause problems. It is best to export the database, uninstall the MySQL server and other components, and restart so the services are removed. Make a note of any MySQL users (other than root), as you may want to re-create these to ensure consistency.
Make sure you delete the MySQL data, which is the MySQL folder under C:\ProgramData\ in Windows 7. The folder is hidden, so you need to type it into the address line of Explorer.
You also need to delete the old MySQL or MySQL56 service, if it is running or present.
Command Prompt, Run As Administrator, sc delete "service name".
If the service status is "Starting" then you need to kill the process.
Command Prompt, Run As Administrator, sc "service name" to get PID; then taskkill /F /PID <the PID>
If you have trouble upgrading (there is one step where an old password is requested, which can be difficult to figure out), you should delete the MySQL data,