Application User: This user will be using for application side which will hit
database from backend.
Database user : This user is used by Database Admin for any changes or update
Monitor User: This user is used for monitor the all automated shell scripts for
security, backup etc.,
Employee User : This users connection having only read access for 24 hrs Employees
if any emergency needs
Root User : Root user credentials will be not shared to anyone it’ll be there with
only admins.
create user 'username'@'host' identified by 'password';
grant select on *.* to 'username'@'host';
grant all privileges on *.* to 'username'@'host' with grant option;
Application user privileges
Insert, update, select, excute, create, alter
delete, drop
Server level tuning...
1. Application team.
2. Database team.
3. Network team.
Checking points :
1. processlist- If any process is running more than 5min
please save it in notepad
2. CPU and RAM utilization - top
process name which is using more cpu and RAM
3. Deadlocks :
Mysql login , show engine innodb status\G
load avergae: 1.98, 2.15, 2.21
The numbers are read from left to right, and the output above means that:
load average over the last 1 minute is 1.98
load average over the last 5 minutes is 2.15
load average over the last 15 minutes is 2.21