frankieJr Posted March 29, 2007 Share Posted March 29, 2007 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 More sharing options...
jesh Posted March 29, 2007 Share Posted March 29, 2007 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 More sharing options...
frankieJr Posted March 30, 2007 Author Share Posted March 30, 2007 gr8 .. thx .and how about i should give little privileges to that user ?!?!? Link to comment Share on other sites More sharing options...
jesh Posted March 30, 2007 Share Posted March 30, 2007 Check out the documentation.Security: http://dev.mysql.com/doc/refman/5.0/en/security.htmlPrivilege System: http://dev.mysql.com/doc/refman/5.0/en/privilege-system.htmlUser Account Management: http://dev.mysql.com/doc/refman/5.0/en/use...management.html Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now