Wp Config.php [ Fast - 2025 ]
<?php // ** Database settings - You can get this info from your web host ** // define( 'DB_NAME', 'your_database_name' ); define( 'DB_USER', 'your_database_user' ); define( 'DB_PASSWORD', 'your_database_password' ); define( 'DB_HOST', 'localhost' ); // ** Database Charset to use in creating database tables. ** // define( 'DB_CHARSET', 'utf8' ); define( 'DB_COLLATE', '' );
define( 'WP_MEMORY_LIMIT', '256M' ); By default, WordPress saves every change you make. To save database space: wp config.php
// ** WordPress Database Table prefix ** // $table_prefix = 'wp_'; Change it to 7 days: define( 'DISALLOW_FILE_EDIT', true
define( 'WP_POST_REVISIONS', false ); // Or limit to 3 revisions: define( 'WP_POST_REVISIONS', 3 ); WordPress empties the trash every 30 days. Change it to 7 days: wp config.php
define( 'DISALLOW_FILE_EDIT', true ); Add this crontab-friendly line to auto-repair tables:
define( 'WP_ALLOW_REPAIR', true ); (Remember to disable it after use!) Helps plugins (like WooCommerce) know if this is dev or live: