How to change the Database name in WordPress with PHP

1 Answer

0 votes
// Go to wp-config.php file in WordPress root directory (your website name)
// Edit the file Or download the file 
// Find :

/** The name of the database for WordPress */
define( 'DB_NAME', 'write your new database name here' );

// Save and upload the file (if you download the file) - overwrite the old one

 



answered Jul 7, 2023 by avibootz

Related questions

1 answer 187 views
1 answer 220 views
1 answer 345 views
1 answer 211 views
1 answer 475 views
2 answers 410 views
...