|
|
há 2 dias atrás | |
|---|---|---|
| Crypt | há 9 anos atrás | |
| css | há 8 meses atrás | |
| images | há 6 meses atrás | |
| includes | há 2 meses atrás | |
| js | há 6 meses atrás | |
| lang | há 2 dias atrás | |
| modules | há 1 mês atrás | |
| protocol | há 2 anos atrás | |
| themes | há 8 meses atrás | |
| COPYING | há 9 anos atrás | |
| README.md | há 8 anos atrás | |
| home.php | há 2 anos atrás | |
| index.php | há 1 ano atrás | |
| install.php | há 3 anos atrás | |
| ogp_api.php | há 9 meses atrás | |
| robots.txt | há 1 ano atrás | |
| test_api.php | há 2 anos atrás |
Backup Database
Backup of the existing database can be done with following command:
$ mysqldump --user [username] -p [database] > backup.sql
Replace the [username] with username located in includes/config.inc.php and
[database] with database located in same file. After executing the command
the password is asked (same as in config.inc.php).
Restore Database Backup
Backup can be restored with the following command:
$ mysql --user [username] -p [database] < backup.sql
Lost Admin Password
In case you lose the admin password you can reset the password with, for example, the following command:
$ mysql --user [username] -p [database]
Then type in the following command but change the OGP_USERNAME and NEW_PASSWORD
to the proper ones:
UPDATE ogp_users SET users_passwd=MD5('NEW_PASSWORD')
WHERE ogp_users.users_login='OGP_USERNAME';
After this type quit to exit the MySQL prompt.