This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

how to hide the password and user info when mysql is stop?

This is for discussion, mainly on 1.x but there's some 2.x topics here too.

how to hide the password and user info when mysql is stop?

by JoostShao » Tue Nov 12, 2013 4:20 am

when i stop my mysql server,then symfony is broken down . but i see

at PDO->__construct('mysql:dbname=symfony', 'root', 'root') in /var/www/symfony/app/cache/dev/appDevDebugProjectContainer.php line 2165

now mysql password is exposed.
why ?

$serviceKernel->setConnection($kernel->getContainer()->get('database_connection')); in app_dev.php ?
try catch it ?
JoostShao
Junior Member
 
Posts: 2
Joined: Fri Jun 28, 2013 10:19 am

Re: how to hide the password and user info when mysql is sto

by JoostShao » Tue Nov 12, 2013 2:20 pm

i slove it by try catch the exception in app_***.php file.
JoostShao
Junior Member
 
Posts: 2
Joined: Fri Jun 28, 2013 10:19 am