简体   繁体   中英

MySQL security and symfony2

Working with Symfony2.3.4 and Xampp with PHP 5.6.3.

Basically my goal is to prevent anyone from tampering with the database tables directly via any manager(for example: phpmyadmin which comes with xampp via localhost/phpmyadmin/)

I'd like to find a way to set a password.

I looked for an option in phpmyadmin to set some type of security and found none.

I tried to set a password for the database via the config interface provided by the AcmeDemoBundle which i've always used to set the parameters.yml , all that did was to throw this at my face:

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

I need to know what I'm missing, is there a way to continue from here, or am I doing it wrong right from the beginning.

Remember: the goal is to let no one without authorization access the tables of the database in any way.

thank you

Thanks guys, I found what I needed here , answered by Anagio, in the end what I had to do was to change the auth_type from config to http and voilá, a prompt appears when I hit localhost/phpmyadmin/ asking for user and pass.

Now all I have to do is to set a password for localhost and no one will be able to do anything to the database from outside the symfony app (hopefully)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM