Upload
andrejs-vorobjovs
View
433
Download
0
Embed Size (px)
Citation preview
Certified Ethical Hacker(CEH)
MySQL 5 Database Administrator
Oracle Database 11g Administrator Certified MasterOracle9i Database Administrator Certified ProfessionalOracle Database 10g Administrator Certified ProfessionalOracle Database 11g Administrator Certified Professional
Oracle9i Database Administrator Certified Professional - Special Accreditation: Managing Oracle9i on LinuxOracle RAC 11g Release 2 and Grid Infrastructure Administration
Oracle Database 10g Real Application Clusters Administrator Certified Expert
Oracle Application Server 10g Administrator Certified AssociateOracle Weblogic Server 11g: System Administration I
About me
My name is Aleksandrs AsafovsWorking with Oracle for over 15 years
MySQL 5 years
"sorry something went wrong"
7
• Choose the right configuration file• Choose the right mysql option group• [mysql] [mysqld] [mysqladmin]
"sorry something went wrong"
8
• incorrect memory configuration server with 4Gb RAM
max_connections x (sort_buffer_size +read_rnd_buffer_size + join_buffer_size + read_buffer_size + thread_stack + (tmp_table_size or max_heap_table_size)) / 4
151 x (128 MB + 256 KB + 128 MB +128 MB + 192 KB + 16 MB) / 4=15G
151 x (2 MB + 256 KB + 128KB +128 KB + 256KB + 16 MB) / 4=708M
Backup
Purge old binary logs after this number of days
• log_bin
•expire_logs_days
Enable binary logging. The server logs all statements that change data to the binary log, which is used for backup
and replication.
15
skip_networking=1
bind_address=127.0.0.1
SecurityAccess to database
https://dev.mysql.com/doc/refman/5.6/en/server-options.html#option_mysqld_skip-networking
InnoDB
•innodb_buffer_pool_size• innodb_log_file_size = 30 -60 minutes
innodb_log_file_size = 32 – 512M
InnoDB Undo mysql 5.7
innodb_undo_tablespaces = innodb_undo_directory=/SSD/
https://dev.mysql.com/doc/refman/5.7/en/innodb-undo-tablespace.html
Others
38
thread_cache_size determines the number of threads that the server can store
for reuse.
thread_cache_size efficiency100 -((Threads_created/Connections) * 100)
key_buffer_size (MyISAM) # Set to 5 - 25 %
cache mechanism to keep the most frequently accessed table
blocks in memory:
Others
miss rate= Key_reads / Key_read_requests = 36627/222229559 = 0.001efficiency = 1- miss rate = 0.999