?
Solved

Do hundreds of individual mysql privileges/passwords slow down execution big time?

Posted on 2005-04-10
3
Medium Priority
?
262 Views
Last Modified: 2006-11-18
Recently we have had a major problem where php pages on site, which contain numerous mysql database executions, have slowed down and conked out completely because they exceed the maximum of 30 seconds to execute.

This may be a major program flaw, but the pages were originally programmed so that each user accessed the mysql database with their own user id and password, the same as used to login to our site. However, I have read that have to sort through all this permission/privilege/password "overhead" is very resource-consuming. If the number of such users with privilege and passwords for access is nearly 2,000, does this basically explain the major slowdowns and exceeding 30 seconds for php scripts w. a lot of mysql?

If we go back to having one access code/password that all users use encrypted and secured, of course), would that basically solve this problem?
0
Comment
Question by:jristov
1 Comment
 
LVL 22

Accepted Solution

by:
JesterToo earned 2000 total points
ID: 13754515
I doubt the number of user id's is the cause of the slowdown.  You might create a test db on a different server to simulate the problem.  Just write a script to generate 2000 userid's then test the same process on the test box.  Then remove 1900 of them and retest (or do it theother way around if you prefer).  I don't think you'll see a performance difference just because of the number of userids.

1.  Which version of MySQL?
2.  Which table types (innodb, isam, bdb) ?
3.  How many concurrent connections are you experiencing when access is slow?
4.  Is the access similarly slow when only a few connections are active?
5.  Have you recently made any network or db changes that might account for slowness?
6.  Based on the queries being executed, do you have the right indexes created?

-- Lynn
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question