archive_database_service
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| archive_database_service [2009/05/09 16:39] – MySQL is on sil _dcoles | archive_database_service [2026/09/27 04:06] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | ====== Mysql ====== | ||
| - | |||
| - | |||
| - | |||
| - | ===== Adding databases/ | ||
| - | |||
| - | |||
| - | While logged in to [[sil]]: | ||
| - | mysql -u root -p | ||
| - | Then: | ||
| - | mysql> CREATE DATABASE < | ||
| - | mysql> GRANT ALL PRIVILEGES ON < | ||
| - | |||
| - | If you need to connect to this database from davros (which has old php packages) you need to convert the password to an old-style version with | ||
| - | |||
| - | < | ||
| - | </ | ||
| - | I hope these passwords still work when we move over to mara. | ||
| - | |||
| - | //Also, there' | ||
| - | |||
| - | See: http:// | ||
| - | |||
| - | |||
| - | ====== PostgreSQL ====== | ||
| - | |||
| - | //Note, this was copied straight from the original doc, and is a bit out of date (RIP troughton). Also, it's not an appropriate way to do backups. Seth// | ||
| - | |||
| - | As of 2004-04-18 a PostgreSQL database service is available for user access. The server is running on peri, and client access has been configured on mccoy. | ||
| - | |||
| - | This service is being maintained by Martin Ling (mling@tardis). The PostgreSQL version currently deployed is 7.4.5. | ||
| - | |||
| - | |||
| - | ===== Administrator notes ===== | ||
| - | |||
| - | |||
| - | ==== Adding accounts ==== | ||
| - | |||
| - | |||
| - | To create a new PostgreSQL user account, execute as root on troughton: // | ||
| - | |||
| - | < | ||
| - | </ | ||
| - | and enter the username and a password as required. The username should match the requesting user's TARDIS account name. | ||
| - | |||
| - | Note that these options allow the user to create and remove their own databases as they require, and grant or revoke permissions on them to other PostgreSQL users. Users should be advised not to use generic names such as ' | ||
| - | |||
| - | |||
| - | ==== Configuring client hosts ==== | ||
| - | |||
| - | Hosts from which users will use the PostgreSQL client should have the '' | ||
| - | |||
| - | |||
| - | ==== Moving or restoring the service ==== | ||
| - | |||
| - | |||
| - | Should the databases need to be restored from a backup, or the service moved to a different server, the new or restored server must be set up with a fresh installation of '' | ||
| - | |||
| - | After installation the server should be stopped, and the / | ||
| - | host | ||
| - | in place of: | ||
| - | host | ||
| - | which is installed by default. | ||
| - | |||
| - | The server can then be restarted. | ||
| - | |||
| - | Finally, a cron job should be configured to execute nightly as root on the server: | ||
| - | |||
| - | cp -a / | ||
| - | |||
| - | |||
| - | ==== Upgrading the service ==== | ||
| - | |||
| - | |||
| - | When the service is running normally an upgrade can be performed simply by installing the newer '' | ||
| - | |||
| - | However, please contact the maintainer before attempting this. | ||
| - | |||
| - | |||
archive_database_service.1241887194.txt.gz · Last modified: (external edit)
