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 195 views
1 answer 227 views
1 answer 352 views
1 answer 227 views
1 answer 493 views
2 answers 424 views
...