Difference between revisions of "Mediawiki Mereset Isi Database Mediawiki"

From OnnoWiki
Jump to navigation Jump to search
Line 6: Line 6:
 
  username mediawiki
 
  username mediawiki
 
  password mediawiki
 
  password mediawiki
 +
lokasi /var/www/wiki
  
 
Lakukan
 
Lakukan
Line 14: Line 15:
 
  mysqladmin --user=root --password=123456 create mediawiki
 
  mysqladmin --user=root --password=123456 create mediawiki
 
  mysql -u mediawiki -pmediawiki mediawiki < /var/www/wiki/maintenance/tables.sql
 
  mysql -u mediawiki -pmediawiki mediawiki < /var/www/wiki/maintenance/tables.sql
mysql -u mediawiki -pmediawiki mediawiki < /usr/local/src/wikidb.sql
 
 
  service mysql stop
 
  service mysql stop
 
  service mysql start
 
  service mysql start

Revision as of 08:58, 23 November 2011

Asumsinya

username root
password 123456
database mediawiki
username mediawiki
password mediawiki
lokasi /var/www/wiki

Lakukan

service mysql stop
service mysql start
mysqladmin --user=root --password=123456 --force drop mediawiki
mysqladmin --user=root --password=123456 create mediawiki
mysql -u mediawiki -pmediawiki mediawiki < /var/www/wiki/maintenance/tables.sql
service mysql stop
service mysql start


Pranala Menarik