dulkith / OGP-Website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Game Panel

*** 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 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 eample the following command:

$ mysql --user [username] -p [database]

Then type in 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.

About

License:GNU General Public License v2.0


Languages

Language:PHP 73.1%Language:JavaScript 18.9%Language:HTML 4.0%Language:CSS 2.0%Language:ColdFusion 0.8%Language:ASP 0.3%Language:Python 0.3%Language:Smarty 0.2%Language:Perl 6 0.1%Language:Perl 0.1%Language:Lasso 0.1%