Jump to content

mysql security


frankieJr

Recommended Posts

hey all ..im making a website using php and mysql for the database ..... i was doin okay but i got confused ( btw this is my first website )i'm gonna use the database to store information about the users and they might view some of the information there and change stuff like each user can change his/her own pass , okay im doing all of that by checking the user in php code and have the new pass ( for example ) stored in a variable then change the data on the database .... my questions is do i have to give access to mysql ( to the database ) to users and give them privileges ?!?!? or is it possible to only view data from database by the php code itself ? so no one need to access the database but the server ?and i have read at php.net that Never connect to the database as a superuser or as the database owner. Use always customized users with very limited privileges. !!!!!!!!!!!!!!! i'm really confused and dont know wat exactly to ask , so i need some help ..thx

Link to comment
Share on other sites

You typically create one user so that your webserver can connect to the database. You don't need to create a separate database user for each user of your website. You only need the one user for the webserver.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...