Hey guys,
Over the past while I have been playing around with MySQL databases just on my machine but I now want to try and work with some live versions on my hosting. I am using the mysql admin tool within my hosting control panel to set up users and so on. I have set up a user with 'grant all privleges'. Is this secure enough to use within PHP scripts on my website or for a public database user should I be reducing these privileges somewhat? I have googled on this but can't find the info I am looking for. Basically what I need to know is when I set up my PHP file containing the database connection details do I use a user there with full privileges or can I use a special user just for that purpose? Thanks in advance
Over the past while I have been playing around with MySQL databases just on my machine but I now want to try and work with some live versions on my hosting. I am using the mysql admin tool within my hosting control panel to set up users and so on. I have set up a user with 'grant all privleges'. Is this secure enough to use within PHP scripts on my website or for a public database user should I be reducing these privileges somewhat? I have googled on this but can't find the info I am looking for. Basically what I need to know is when I set up my PHP file containing the database connection details do I use a user there with full privileges or can I use a special user just for that purpose? Thanks in advance