|
|
hai 2 días | |
|---|---|---|
| Crypt | %!s(int64=9) %!d(string=hai) anos | |
| css | hai 8 meses | |
| images | hai 6 meses | |
| includes | hai 2 meses | |
| js | hai 6 meses | |
| lang | hai 2 días | |
| modules | hai 1 mes | |
| protocol | %!s(int64=2) %!d(string=hai) anos | |
| themes | hai 8 meses | |
| COPYING | %!s(int64=9) %!d(string=hai) anos | |
| README.md | %!s(int64=8) %!d(string=hai) anos | |
| home.php | %!s(int64=2) %!d(string=hai) anos | |
| index.php | hai 1 ano | |
| install.php | %!s(int64=3) %!d(string=hai) anos | |
| ogp_api.php | hai 10 meses | |
| robots.txt | hai 1 ano | |
| test_api.php | %!s(int64=2) %!d(string=hai) anos |
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.