How to change the Database username 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 :

/** Database username */
define( 'DB_USER', 'write your new username 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 215 views
1 answer 232 views
1 answer 233 views
1 answer 496 views
2 answers 438 views
1 answer 355 views
...