How to change database name in word press?

Please go to root folder and open wp-config.php

May be line number 19.

define(‘DB_NAME’, ‘wordpress’); //  chane your database name replace with “wordpress”.

/** MySQL database username */
define(‘DB_USER’, ‘root’); // please set your user name replace with “root”

/** MySQL database password */
define(‘DB_PASSWORD’, ”); // please set your password

/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);

/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);

/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);

 

Hope it will help you.