You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
3.1 KiB

  1. Please follow the steps below to update an existing refbase installation to
  2. refbase-0.9.7. The update script should also be able to update any refbase
  3. version that was installed from SVN prior to the release of refbase-0.9.7. To
  4. update versions of refbase prior to refbase-0.8.0, please update to
  5. refbase-0.8.0 first.
  6. - First of all, please make sure that you have a recent backup of your refbase
  7. MySQL database! This can be accomplished by issuing the following command
  8. from your shell:
  9. mysqldump DATABASE_NAME -uADMINUSER -p --complete-insert --opt > refbase.sql
  10. In the above line, replace DATABASE_NAME with the database name that you've
  11. specified for the variable '$databaseName' (in file
  12. 'initialize/db.inc.php'). Similarly, replace ADMINUSER with the name of the
  13. administrative user that has full access to the refbase MySQL database. As
  14. an example, if the variable '$databaseName' is set to "literature" and your
  15. administrative user is "root", the above line would read:
  16. mysqldump literature -uroot -p --complete-insert --opt > refbase.sql
  17. WARNING: If using MySQL 4.1.x, mysqldump's charset conversion may damage
  18. data. If necessary, use the '--default-character-set=latin1' option
  19. to avoid the conversion. More info is available at
  20. <http://backup.refbase.net>.
  21. - Backup your original configuration files 'initialize/db.inc.php' and
  22. 'initialize/ini.inc.php'. Optionally, you may want to backup all of your
  23. existing refbase scripts.
  24. - Move all refbase-0.9.7 files to your server's web directory.
  25. - Open the file 'initialize/db.inc.php' in a text editor and re-enter the
  26. values from your old 'db.inc.php' file for the variables '$databaseName',
  27. '$username' and '$password'. Similarly, migrate all custom values that
  28. you've entered within the old 'ini.inc.php' file to the new one.
  29. - Now, open a web browser and access the 'update.php' script by typing:
  30. <http://SERVER_ADDRESS/PATH_ON_SERVER/update.php>
  31. (where the string 'SERVER_ADDRESS' is replaced by your server name and
  32. 'PATH_ON_SERVER' is the actual path to your refbase-0.9.5 web directory)
  33. This should bring up the update form. Edit the contents of all text entry
  34. fields to match your server setup and supply the MySQL admin password, then
  35. click the 'Update' button to update the database.
  36. WIN32: Be sure to set a password for the MySQL root user.
  37. This will add the MySQL tables that were added in 0.9.x and alter existing
  38. tables to match the table design used by refbase-0.9.x. A detailed log is
  39. generated for all performed update actions. Your data should remain
  40. untouched by this operation.
  41. - After you've successfully performed the update, please remove the files
  42. 'update.php' & 'update.sql' (as well as 'install.php' & 'install.sql') from
  43. your web directory.
  44. - Note: The update process modifies some existing formats in table 'formats'
  45. and adds additional ones. Please login as admin and make sure that suitable
  46. import, export and citation formats are enabled for all of your users within
  47. the "Display Options" section of the admin interface.
  48. See also:
  49. <http://update.refbase.net>