WordPress Tip — Finding your DB name

I was look­ing through my Cpanel recently to find a DB name for a par­tic­u­lar blog. I have installed sev­eral blogs and there are many other MySql nec­es­sary sites / Data­bases.   So when going into MyPh­pAd­min to do any type of work, one really should be sure of the DB you need to work on.   How do you find it?

For Word press and many other types of php scripts you can look for the Con­fig php file. Inside of your work­ing direc­tory where Word­Press is installed for exam­ple you will want to find the file named:


open this file:

look for the line of code that looks sim­i­lar to this :

define(‘DB_NAME’, ‘*******’);

‘*******’ What ever is in between the ‘ ‘ marks is your Data­base name.   Usu­ally this for­mat: username_DBname Where DB name is what you will see in PHP­myAd­min. You can then do your mod­i­fi­ca­tion – change pass­words , etc..

About the author

 Wordpress Tip   Finding your DB name I’ve started design­ing web­sites while at Uni­ver­sity of Hous­ton dur­ing my first Pho­to­shop 3.1 expe­ri­ence in 1996 on a Mac­in­tosh com­puter. I built my own com­put­ers (Win­dows PCs) with the help of a friend and have been dig­i­tally involved ever since. I am both Win­dows and PC lit­er­ate but grav­i­tate toward OSX. I’ve grad­u­ally got­ten back to my roots as a tac­tile artist / designer by work­ing more with tra­di­tional medi­ums like draw­ing, paint­ing, and mixed media.

Leave a Reply


captcha *

Anti-Spam Quiz: