Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 4th, 2003, 11:13 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
mysql admin question

I'm having trouble with my mysql users.
I'm building a site that allows users to register - when they register they are added to my user table, for database books.
When a user tries to update their account I get an error saying they don't have access. I'm assuming this means they don't have update ability.

My question is - should I be adding them to the mysql user (admin) table and doing a grant command to give them access?
- in my mind this would create security problems with people ftping in and messing with my db.
If not should I be doing a grant command to give them update ability on the database books? How do I handle this situation.

Also - how do I restrict access so they can't log on twice from different locations?
I also want to have a guest account and allow lots of guests to be logged on at once. How do I handle that.

Thanks

Reply With Quote
  #2  
Old September 5th, 2003, 04:17 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: mysql admin question

Sorted !

For anyone else with the same question:

Users on your site are different to db users.
Use db_connect to connect to the database - using db_user. Grant that db_user update, select, insert and delete privileges on your database.
Then when a site_user logs into your site they all connect to the db via that one user.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > mysql admin question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT