If we host a script that is dependent mostly on DB query for MYSQL. If the # of queries per hour or seconds is/are huge does MYSQL have a capacity to handle huge scalability?
No. Then what are the possible alternatives to MYSQL that can be integrated with the PHP?
If yes, then is “Yes” a yes with some constraints or dependent on server capacities?
Starting with the data, database engine and the database design.
IMHO, the trick is knowing common gotcha’s and gaining earned experience.
eg. complex queries on large tables that do full table scans should be avoided.
I think if you get in the habit of running EXPLAIN on your queries while working them up it will help you.
As for “can MySQL handle enterprise” I’m totally guessing but I don’t think it would become a problem until the load got a lot more than even a moderately large and popular site. I’m also guessing that by the time most sites get to that point they’ve had time to adjust where needed.
Another that comes to mind is understanding pattern searching. eg.
“ILIKE '*sumtn'” is more expensive than “LIKE 'sumtn*'”
Depending, the inefficiency might be acceptable I guess. If a table is almost assuredly going to always be relatively small / infrequently queried and there are more urgent needs maybe a comment like
# Hey, sorry for the burn bro. bottom line and all that