1.mysql. 2.databasetable. 3.usergrant. 4.cnf. 6.Mysql. 9.mysqlNoSql. 10.MySQL MinDoc

Size: px
Start display at page:

Download "1.mysql. 2.databasetable. 3.usergrant. 4.cnf. 6.Mysql. 9.mysqlNoSql. 10.MySQL MinDoc"

Transcription

1 1.mysql databasetable 3.usergrant 4.cnf 5. 6.Mysql mysqlNoSql 10.MySQL - 1 -

2 1.mysql 1.mysql mysqlmysql mysql 1MySQL12:00 29drop 3binlog 1sqlCHANGE MASTERbinlogbinlog 2mysqlbinlogbinlogsqldrop 3binlogsql mysqlbinlog /etc/my.cnf[mysqld] log-bin=mysql-bin mysql 1opscustomers mysql> use ops; mysql> create table customers( -> id int not null auto_increment, -> name char(20) not null, -> age int not null, -> primary key(id) -> )engine=innodb; Query OK, 0 rows affected (0.09 sec) mysql> show tables; + -+ Tables_in_ops + -+ customers row in set (0.00 sec) mysql> desc customers; Field Type Null Key Default Extra id int(11) NO PRI NULL auto_increment name char(20) NO NULL age int(11) NO NULL rows in set (0.02 sec) mysql> insert into customers values(1, wangbo, 24 ); Query OK, 1 row affected (0.06 sec) mysql> insert into customers values(2, guohui, 22 ); - 2 -

3 1.mysql Query OK, 1 row affected (0.06 sec) mysql> insert into customers values(3, zhangheng, 27 ); Query OK, 1 row affected (0.09 sec) mysql> select * from customers; id name age wangbo 24 2 guohui 22 3 zhangheng rows in set (0.00 sec) 2 [root@vm-002 ~]# mysqldump -uroot -p -B -F -R -x master-data=2 ops gzip >/opt/backup/ops_$(date +%F).sql.gz Enter password: [root@vm-002 ~]# ls /opt/backup/ ops_ sql.gz -B -F -R -x master-datachange MASTERbinlog 3 mysql> insert into customers values(4, liupeng, 21 ); Query OK, 1 row affected (0.06 sec) mysql> insert into customers values(5, xiaoda, 31 ); Query OK, 1 row affected (0.07 sec) mysql> insert into customers values(6, fuaiai, 26 ); Query OK, 1 row affected (0.06 sec) mysql> select * from customers; id name age wangbo 24 2 guohui 22 3 zhangheng 27 4 liupeng 21 5 xiaoda 31 6 fuaiai rows in set (0.00 sec) 4test mysql> drop database ops; Query OK, 1 row affected (0.04 sec) binlog! (5)binlog - 3 -

4 1.mysql ~]# cd /opt/backup/ backup]# ls ops_ sql.gz backup]# gzip -d ops_ sql.gz backup]# ls ops_ sql backup]# grep CHANGE ops_ sql CHANGE MASTER TO MASTER_LOG_FILE= mysql-bin , MASTER_LOG_POS=106; binlog mysql-bin binlogsql 6binlogsqldrop mysql/var/lib/mysql backup]# ps -ef grep mysql root :43 pts/1 00:00:00 /bin/sh /usr/bin/mysqld_safe datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock pid-file=/var/run/mysqld/mysqld.pid basedir=/usr user=mysql mysql :43 pts/1 00:00:00 /usr/libexec/mysqld basedir=/usr datadir=/var/lib/mysql user=mysql log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid socket=/var/lib/mysql/mysql.sock [root@vm-002 backup]# cd /var/lib/mysql/ [root@vm-002 mysql]# ls ibdata1 ib_logfile0 ib_logfile1 mysql mysql-bin mysql-bin mysql-bin.index mysql.sock test [root@vm-002 mysql]# cp mysql-bin /opt/backup/ binlogsqlvimdrop [root@vm-002 backup]# mysqlbinlog -d ops mysql-bin >002bin.sql [root@vm-002 backup]# ls 002bin.sql mysql-bin ops_ sql [root@vm-002 backup]# vim 002bin.sql #drop binlogbinlog 7 [root@vm-002 backup]# mysql -uroot -p < ops_ sql Enter password: [root@vm-002 backup]# ops mysql> show databases; + + Database + + information_schema mysql ops test rows in set (0.00 sec) mysql> use ops; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> select * from customers; id name age wangbo 0-4 -

5 1.mysql 2 guohui 0 3 zhangheng rows in set (0.00 sec) 002bin.sql [root@vm-002 backup]# mysql -uroot -p ops <002bin.sql Enter password: [root@vm-002 backup]# mysql> select * from customers; id name age wangbo 24 2 guohui 22 3 zhangheng 27 4 liupeng 21 5 xiaoda 31 6 fuaiai rows in set (0.00 sec) mysql 1SQL 2mysqlbinlog 3 4SQLSQL - 5 -

6 databasetable databasetable CREATE DATABASE `test_db` DEFAULT CHARACTER SET utf8mb4 3. COLLATE utf8mb4_unicode_ci; 1. DROP TABLE IF EXISTS test_table; CREATE TABLE test_table ( 3. tableid BIGINT(20) NOT NULL AUTO_INCREMENT, 4. name varchar(500) NOT NULL DEFAULT '0', 5. blance BIGINT(20) NOT NULL DEFAULT '0', 6. lastupdate TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP 7. ON UPDATE CURRENT_TIMESTAMP, 8. PRIMARY KEY (tableid), 9. KEY idx_type_serial (name) 10. ) 11. ENGINE = InnoDB 1 AUTO_INCREMENT = DEFAULT CHARSET = utf8mb4 14. COLLATE = utf8mb4_unicode_ci; ALTER TABLE fa_store_goods CHANGE last_update last_update time 1. alter table component_review modify column nick_name varchar(3-6 -

7 3.usergrant 3.usergrant GRANT ALL ON *.* TO WITH MAX_USER_CONNECTION 1. grant all privileges on online_markdown_doc_db.* to id 1. CREATE DATABASE `payment_prod` DEFAULT CHARACTER SET utf8mb4 3. COLLATE utf8mb4_unicode_ci; GRANT ALL PRIVILEGES ON payment_prod.* TO 7. IDENTIFIED BY 'canhu_db2018' 8. WITH MAX_USER_CONNECTIONS GRANT OPTION; 1. CREATE DATABASE `teamcity` DEFAULT CHARACTER SET utf8mb4 3. COLLATE utf8mb4_unicode_ci; CREATE USER IDENTIFIED BY 'teamcity.teamcity'; grant all privileges on teamcity.* to with gran grant replication slave on *.* to identified by ' CREATE DATABASE yidao_prod DEFAULT CHARACTER SET utf8mb4 COLLA CREATE DATABASE payment_prod DEFAULT CHARACTER SET utf8mb4 COL grant all privileges on yidao_prod.* to identif 5. grant all privileges on payment_prod.* to ide GRANT ALL PRIVILEGES ON jumax_payment.* TO 8. IDENTIFIED BY 'pwd.payment' 9. WITH MAX_USER_CONNECTIONS GRANT OPTION; - 7 -

8 3.usergrant Mysql-57 1., 1. CREATE USER IDENTIFIED BY 'password'; 1. RENAME USER TO 1. CREATE USER WITH MAX_QUERIES_PER_HOUR 500 MAX_UPDATES_PER_HOUR 100; 1. CREATE USER PASSWORD EXPIRE NEVER; 1. CREATE USER IDENTIFIED BY 'new_password' PASSWORD EXPIRE; 1. CREATE USER IDENTIFIED WITH sha256_password BY 'new_password' 3. PASSWORD EXPIRE INTERVAL 180 DAY; 1. ALTER USER ACCOUNT LOCK; ALTER USER ACCOUNT UNLOCK; SET PASSWORD FOR = 'auth_string'; ALTER USER WITH MAX_QUERIES_PER_HOUR 500 MAX_UPDATES_PER_HOUR 100; DROP USER GRANT priv_type [(column_list)] 3. [, priv_type [(column_list)]] ON [object_type] priv_level 5. TO user [auth_option] [, user [auth_option]] [REQUIRE {NONE tls_option [[AND] tls_option]...}] 7. [WITH {GRANT OPTION resource_option}...] GRANT PROXY ON user 10. TO user [, user] [WITH GRANT OPTION] object_type: { 14. TABLE 15. FUNCTION 16. PROCEDURE - 8 -

9 3.usergrant 17. } priv_level: { 20. * 21. *.* 2 db_name.* 23. db_name.tbl_name 24. tbl_name 25. db_name.routine_name 26. } user: 29. (see Section 6.3, Specifying Account Names ) auth_option: { 3 IDENTIFIED BY 'auth_string' 33. IDENTIFIED WITH auth_plugin 34. IDENTIFIED WITH auth_plugin BY 'auth_string' 35. IDENTIFIED WITH auth_plugin AS 'hash_string' 36. IDENTIFIED BY PASSWORD 'hash_string' 37. } tls_option: { 40. SSL 41. X509 4 CIPHER 'cipher' 43. ISSUER 'issuer' 44. SUBJECT 'subject' 45. } resource_option: { 48. MAX_QUERIES_PER_HOUR count 49. MAX_UPDATES_PER_HOUR count 50. MAX_CONNECTIONS_PER_HOUR count 51. MAX_USER_CONNECTIONS count 5 } REVOKE priv_type [(column_list)] 3. [, priv_type [(column_list)]] ON [object_type] priv_level 5. FROM user [, user] REVOKE ALL [PRIVILEGES], GRANT OPTION 8. FROM user [, user] REVOKE PROXY ON user 11. FROM user [, user]

10 3.usergrant

11 4.cnf 4.cnf MySQL-57-my.cnf- 1. [client] default-character-set = utf8mb4 3. password= [mysql] 6. default-character-set = utf8mb [mysqld] 9. character-set-client-handshake = FALSE 10. character-set-server = utf8mb4 11. collation-server = utf8mb4_unicode_ci 1 init_connect='set NAMES utf8mb4' innodb_buffer_pool_size = 256M log-bin = mysql-bin 18. server-id = slow-query-log-file = /var/log/mysql/mysqld-slow.log 21. slow_query_log = on 2 long_query_time = max_connections = symbolic-links= datadir=/var/lib/mysql 29. socket=/var/lib/mysql/mysql.sock 30. pid-file=/var/run/mysqld/mysqld.pid 31. log-error=/var/log/mysql/mysqld.log sql_mode=no_engine_substitution,strict_trans_tables,no_auto_cr explicit_defaults_for_timestamp = true

12 5. 5. Mysql- MySql- DB 1.log-bin log-bin,slave server-id db 1. [mysqld] log-bin = mysql-bin 3. server-id = 1 masterslave grant replication slave on *.* to slave_01@'%' identified by ' mastermysql-bin ,masterlog-bin 1. mysql> show master status;

13 5. 3. File Position Binlog_Do_DB Binlog_Ignore_D mysql-bin master 1. CHANGE MASTER TO MASTER_HOST='prod-01.openread.cn', 3. MASTER_PORT=10000, 4. MASTER_USER='slave_01', 5. MASTER_PASSWORD='Aa******', 6. MASTER_LOG_FILE='mysql-bin ', 7. MASTER_LOG_POS =734; start slave; 5.() Slave_IO_State: Waiting for master to send event Slave_IO_Running: Yes Slave_SQL_Running: Yes 1. mysql> show slave status \G; *************************** 1. row ************************* 3. Slave_IO_State: Waiting for master to send ev 4. Master_Host: prod-01.openread.cn 5. Master_User: slave_01 6. Master_Port: Connect_Retry: Master_Log_File: mysql-bin Read_Master_Log_Pos: Relay_Log_File: 6be33b37f96f-relay-bin Relay_Log_Pos: Relay_Master_Log_File: mysql-bin Slave_IO_Running: Yes 14. Slave_SQL_Running: Yes 15. Replicate_Do_DB: 16. Replicate_Ignore_DB: 17. Replicate_Do_Table: 18. Replicate_Ignore_Table: 19. Replicate_Wild_Do_Table: 20. Replicate_Wild_Ignore_Table: 21. Last_Errno: 0 2 Last_Error: 23. Skip_Counter: Exec_Master_Log_Pos: Relay_Log_Space: Until_Condition: None 27. Until_Log_File: 28. Until_Log_Pos: Master_SSL_Allowed: No 30. Master_SSL_CA_File:

14 Master_SSL_CA_Path: 3 Master_SSL_Cert: 33. Master_SSL_Cipher: 34. Master_SSL_Key: 35. Seconds_Behind_Master: Master_SSL_Verify_Server_Cert: No 37. Last_IO_Errno: Last_IO_Error: 39. Last_SQL_Errno: Last_SQL_Error: 41. Replicate_Ignore_Server_Ids: 4 Master_Server_Id: Master_UUID: a1a46fb7-e1b3-11e a 44. Master_Info_File: /var/lib/mysql/master.info 45. SQL_Delay: SQL_Remaining_Delay: NULL 47. Slave_SQL_Running_State: Slave has read all relay log; 48. Master_Retry_Count: Master_Bind: 50. Last_IO_Error_Timestamp: 51. Last_SQL_Error_Timestamp: 5 Master_SSL_Crl: 53. Master_SSL_Crlpath: 54. Retrieved_Gtid_Set: 55. Executed_Gtid_Set: 56. Auto_Position: Replicate_Rewrite_DB: 58. Channel_Name: 59. Master_TLS_Version,master(,,)slave250,. 1. # masterstop SLAVE; reset slave; 3. # 4. STOP SLAVE; 5. # relay log, 6. show variables like '%relay log,%' ; 1. # binlog show binlog events IN 'mysql-bin ' FROM 448 LIMIT 0,30; 1. show slave status; 3. yes 4. Slave_IO_Running: Yes

15 5. 5. Slave_SQL_Running: Yes Slave_SQL_Running No Last_Error sql start slave ; STOP SLAVE show binlog events IN 'mysql-bin ' FROM 448 LIMIT 0,30; DROP USER 'web_manager'@'%';

16 6.Mysql 6.Mysql Mysql A.sql,1, 1. mysqldump -uroot -padmin -hlocalhost -P3306 db_name > db.sql 1. mysqldump --verbose --default-character-set=utf8mb4 --port 3. win /mysqldump.exe -uroot -paa hprod-01.openread.cn -P2 3.,root 1. [fashion@test-01 ~]$ mysqldump -help Usage: mysqldump [OPTIONS] database [tables] 3. OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3. 4. OR mysqldump [OPTIONS] --all-databases [OPTIONS] A. mysql source mysqlmysqlimport source mysql 1. ``` use db; source /root/a,sql 5. ``` B. C. mysql 1. mysql -v -uroot -padmin test < /root/home.sql mysqlimport /root/home.sqltesthome. 1. mysqlimport --verbose --default-character-set=utf8mb4 --p

17 6.Mysql txt

18 7. 7. Mysql select `USER`,COUNT(`USER`) AS CNT from information_schema.pro 1. GRANT USAGE ON *.* TO WITH MAX_USER_CONNECTIONS show variables like "max_connections"; 3. set GLOBAL max_connections=1000; show global status like 'Max_used_connections'

19 #!/bin/bash 3. #A global transaction identifier (GTID) is a unique identifier 4. # 5. # 6. #--set-gtid-purged=off gtid-mode=off 7. #!/bin/bash 8. echo "start" 9. if [ $# -ne 2 ]; then 10. echo ": sh $0 <> <sql>" 11. echo "'<' '>' " 1 exit fi 14. echo " :" $1 15. echo " : /home/joker/docker-image/mysql/backup/" $2 16. echo "..." 17. docker run -it \ 18. -e HOST="local_mysql" \ 19. -e PORT="3306" \ 20. -e USER="root" \ 21. -e DB=$1 \ 2 -e BACK_FILE="/root/backup/"$2 \ 23. -v /home/joker/docker-image/mysql/backup:/root/backup \ link local_mysql:local_mysql \ net joker-network \ rm mysql:5.7 \ 27. sh -c 'exec mysqldump --default-character-set=utf8 -h${ho 1. #!/bin/bash 3. # backup_time=`date +%Y%m%d_%H` echo "======================================================== 7. echo " -joker_prod,,:" ${backup_time} 8. echo "======================================================== # 11. /home/joker/script/mysql-backup.sh joker_prod joker_prod-${bac # scp /home/joker/docker-image/mysql/backup/joker_prod-${backup_ #

20 # crontab -e 18. # nohup /home/joker/script/auto_send_backup-sql_to_test.sh > / 1. #!/bin/bash -x 3. # backup_time=`date +%Y%m%d_%H` echo "======================================================== 7. echo ",:" ${backup_time} 8. echo "======================================================== sql_file=joker_prod-${backup_time}.sql # 13. mysql -v -ujoker -p`cat /home/joker/script/joker_db_pwd` joker

21 9.mysqlNoSql 9.mysqlNoSql Mysql5.7NoSql 1.: 1. create database test default character set utf8mb4; use test; CREATE TABLE `user` ( 7. `uid` int(11) NOT NULL AUTO_INCREMENT, 8. `info` json DEFAULT NULL, #descjson 9. PRIMARY KEY (`uid`) 10. ) 11. ENGINE = InnoDB 1 AUTO_INCREMENT = DEFAULT CHARSET = utf8mb4; INSERT INTO `user` (`uid`, `info`) VALUES (1, '{ 16. \"mail\": \"jiangchengyao@gmail.com\", 17. \"name\": \"David\", 18. \"address\": \"Shangahai\" 19. }'), (2, '{ 20. \"mail\": \"amy@gmail.com\", 21. \"name\": \"Amy\" 2 }'); # SELECT uid,json_extract(info,'$.mail') AS 'mail',json_extract( # SELECT JSON_ARRAYAGG(`info`) AS `keys` FROM user; SELECT JSON_OBJECTAGG(`uid`, info) AS `key_val` FROM user; json, 1. # (mail) ALTER TABLE user ADD name_virtual varchar (32) GENERATED ALW # (mail) 5. CREATE INDEX name_virtual_index ON user(name_virtual); # (age) 9. ALTER TABLE user ADD virtual_age int(11) GENERATED ALWAYS A

22 9.mysqlNoSql 11. # (age) 1 CREATE INDEX virtual_age_index ON user(virtual_age); explain select * from user where name_virtual like '%ji%'; # 17. explain select * from user where (json_extract(info, '$.age' explain select * 20. from user where uid=1;

23 10.MySQL 10.MySQL MySQL ACID 1Atomicity 2Consistency ABAB 3IsolationAAB 4Durability 1ABBA 2 A B AA 3AABCDEBA MySQL read-uncommitted read-committed repeatable-read serializable 1. InnoDB SQL 1992 READ UNCOMMITTED READ COMMIT show variables like '%%'; 1.session 1. set session transaction isolation level read uncommitted;

24 10.MySQL REPEATABLE-READ REPEATABLE-READ set AUTOCOMMIT=on off; 3. show variables like 'autocommit'; 1. # 1. CREATE DATABASE IF NOT EXISTS `test_db` DEFAULT CHARACTER SET # 5. CREATE TABLE IF NOT EXISTS test_table ( 6. tableid BIGINT(20) NOT NULL AUTO_INCREMENT, 7. name varchar(500) NOT NULL DEFAULT '0', 8. blance BIGINT(20) NOT NULL DEFAULT '0', 9. lastupdate TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP 10. ON UPDATE CURRENT_TIMESTAMP, 11. PRIMARY KEY (tableid), 1 KEY idx_type_serial (name) 13. ) 14. ENGINE = InnoDB 15. AUTO_INCREMENT = DEFAULT CHARSET = utf8mb4 17. COLLATE = utf8mb4_unicode_ci; # INSERT INTO test_db.test_table (name, blance, lastupdate) VALU 21. INSERT INTO test_db.test_table (name, blance, lastupdate) VALU 2 INSERT INTO test_db.test_table (name, blance, lastupdate) VALU 23. INSERT INTO test_db.test_table (name, blance, lastupdate) VALU 1. READ-UNCOMMITTED mysql> select * from test_table; tableid name blance lastupdate simon :46: mary :46: lisa :46: john :46: rows in set (0.00 sec) 1.A,session[READ-UNCOMMITTED]

25 10.MySQL 1. start transaction ; update test_table set blance=blance+50 where tableid=10000; # ID= mysql> select * from test_table; tableid name blance lastupdate simon :46: mary :46: lisa :46: john :46: rows in set (0.00 sec) B,session[READ-UNCOMMITTED] 1. # ID= A mysql> select * from test_table; tableid name blance lastupdate simon :46: mary :46: lisa :46: john :46: rows in set (0.00 sec) : [READ-UNCOMMITTED] 3.A 1. start transaction; update test_table set blance=blance+50 where tableid=10000; READ-COMMITTED 4.B,session[READ-COMMITTED] 1. # select * from test_table; A select * from test_table; 5.Acommit; 1. # commit;b commit;,b 3. REPEATABLE-READ 1.A 1. set session transaction isolation level REPEATABLE read;

26 10.MySQL 3. mysql> select * from test_table; tableid name blance lastupdate simon :57: mary :46: lisa :46: john :46: rows in set (0.00 sec) start transaction; 15. update test_table set blance=blance+50 where tableid=10000; B,AB 1. set session transaction isolation level REPEATABLE read; 3. #,,A 4. start transaction; 5. update test_table set blance=blance+50 where tableid=10000; # A,B : REPEATABLE-READ,, : serializable, 1SQL 2mysql Read Committed

MySQL Real Time Single DB Replication & SSL Encryption on CENTOS 6.3

MySQL Real Time Single DB Replication & SSL Encryption on CENTOS 6.3 Alternate Titles: MYSQL SSL Encryption Based Replication Setup Author: Muhammad Zeeshan Bhatti [LPI, VCP, OCP (DBA), MCSA, SUSE CLA,] (http://zeeshanbhatti.com) (admin@zeeshanbhatti.com) MySQL Real Time

More information

Setting Up Master-Master Replication With MySQL 5 On Debian Etch

Setting Up Master-Master Replication With MySQL 5 On Debian Etch By Falko Timme Published: 2007-10-23 18:03 Setting Up Master-Master Replication With MySQL 5 On Debian Etch Version 1.0 Author: Falko Timme Last edited 10/15/2007 Since version

More information

How To Repair MySQL Replication

How To Repair MySQL Replication By Falko Timme Published: 2008-06-06 13:10 How To Repair MySQL Replication Version 1.0 Author: Falko Timme Last edited 05/29/2008 If you have set up MySQL replication, you

More information

MySQL GTID Implementation, Maintenance, and Best Practices. Brian Cain (Dropbox) Gillian Gunson (GitHub) Mark Filipi (SurveyMonkey)

MySQL GTID Implementation, Maintenance, and Best Practices. Brian Cain (Dropbox) Gillian Gunson (GitHub) Mark Filipi (SurveyMonkey) MySQL GTID Implementation, Maintenance, and Best Practices Brian Cain (Dropbox) Gillian Gunson (GitHub) Mark Filipi (SurveyMonkey) Agenda Intros Concepts Replication overview GTID Intro Implementation

More information

What's new in MySQL 5.5 and 5.6 replication

What's new in MySQL 5.5 and 5.6 replication What's new in MySQL 5.5 and 5.6 replication Giuseppe Maxia Continuent, Inc Continuent 2012. 1 AGENDA 5.5 semi-synchronous replication 5.6 delayed replication server UUID crash-safe slave multi-thread slave

More information

MySQL Multi-Source Replication

MySQL Multi-Source Replication MySQL Multi-Source Replication Max Bubenick - max.bubenick@percona.com Technical Operations Manager Wagner Bianchi - wagner.bianchi@percona.com Principal Technical Services Engineer This is gonna be a

More information

Diagnosing Failures in MySQL Replication

Diagnosing Failures in MySQL Replication Diagnosing Failures in MySQL Replication O'Reilly MySQL Conference Santa Clara, CA Devananda Deva van der Veen -2- Introduction About Me Sr Consultant at Percona since summer 2009 Working with large MySQL

More information

Introduction To MySQL Replication. Kenny Gryp Percona Live Washington DC /

Introduction To MySQL Replication. Kenny Gryp Percona Live Washington DC / Introduction To MySQL Replication Kenny Gryp Percona Live Washington DC / 2012-01-11 MySQL Replication Replication Overview Binary Logs Setting Up Replication Commands Other Common

More information

Bioinforma)cs Resources - SQL -

Bioinforma)cs Resources - SQL - Bioinforma)cs Resources - SQL - Lecture & Exercises Prof. B. Rost, Dr. L. Richter, J. Reeb Ins)tut für Informa)k I12 Orga - Exam Date Exam scheduled for Friday, Jul 20 th Time: 13:00-15:00 Room: Interimshörsaal

More information

MySQL Replication Tips and Tricks

MySQL Replication Tips and Tricks 2009-04-23 Lars Thalmann & Mats Kindahl Replication Tricks and Tips AB 2007-9 www.mysql.com 1 Replication Tips and Tricks Dr. Mats Kindahl Lead Developer, Replication mats@sun.com mysqlmusings.blogspot.com

More information

MySQL 5.6 New Replication Features

MySQL 5.6 New Replication Features disclaimer MySQL 5.6 New Replication Features Ronald Bradford New York & Boston March 2012 The presentation provides information that is publicly available for MySQL 5.6 GA. The content of this presentation

More information

Operational DBA In a Nutshell - HandsOn Reference Guide

Operational DBA In a Nutshell - HandsOn Reference Guide 1/12 Operational DBA In a Nutshell - HandsOn Reference Guide Contents 1 Operational DBA In a Nutshell 2 2 Installation of MySQL 2 2.1 Setting Up Our VM........................................ 2 2.2 Installation

More information

MySQL Utilities, part 1. Sheeri Cabral. Senior DB Admin/Architect,

MySQL Utilities, part 1. Sheeri Cabral. Senior DB Admin/Architect, MySQL Utilities, part 1 Sheeri Cabral Senior DB Admin/Architect, Mozilla @sheeri www.sheeri.com A set of tools What are they? What are they? A set of tools Like Percona toolkit, Open Ark Kit What are they?

More information

MySQL Point-in-Time Recovery like a Rockstar

MySQL Point-in-Time Recovery like a Rockstar 1 / 51 2 / 51 3 / 51 MySQL Point-in-Time Recovery like a Rockstar Accelerate MySQL point-in-time recovery for large workloads FOSDEM, February 2018 Frédéric Descamps - MySQL Community Manager - Oracle

More information

EXPERIENCES USING GH-OST IN A MULTI-TIER TOPOLOGY

EXPERIENCES USING GH-OST IN A MULTI-TIER TOPOLOGY EXPERIENCES USING GH-OST IN A MULTI-TIER TOPOLOGY Ivan Groenewold Valerie Parham-Thompson 26 April 2017 WHY USE GH-OST? Why not use native online schema change capabilities of MySQL/MariaDB? Some changes

More information

Database Management Systems Design. Week 6 MySQL Project

Database Management Systems Design. Week 6 MySQL Project Database Management Systems Design Week 6 MySQL Project This week we will be looking at how we can control access to users and groups of users on databases, tables. I have attempted to limit coverage of

More information

MySQL Group Replication in a nutshell

MySQL Group Replication in a nutshell 1 / 192 2 / 192 MySQL Group Replication in a nutshell MySQL InnoDB Cluster: hands-on tutorial Percona Live Amsterdam - October 2016 Frédéric Descamps - MySQL Community Manager - Oracle Kenny Gryp - MySQL

More information

Effective MySQL. Replication Techniques in Depth

Effective MySQL. Replication Techniques in Depth Effective MySQL Replication Techniques in Depth About the Authors Ronald Bradford has worked in the relational database industry for over 20 years. His professional background began in 1989 with Ingres

More information

Getting Started with MySQL

Getting Started with MySQL A P P E N D I X B Getting Started with MySQL M ysql is probably the most popular open source database. It is available for Linux and you can download and install it on your Linux machine. The package is

More information

Oracle 1Z MySQL 5.6 Database Administrator. Download Full Version :

Oracle 1Z MySQL 5.6 Database Administrator. Download Full Version : Oracle 1Z0-883 MySQL 5.6 Database Administrator Download Full Version : http://killexams.com/pass4sure/exam-detail/1z0-883 D. The mysqld binary was not compiled with SSL support. E. The server s SSL certificate

More information

Backup and Recovery Strategy

Backup and Recovery Strategy Backup and Recovery Strategy About Stacy 10+ years of experience on various flavors of relational databases. Focus on performance tuning, code reviews, database deployment and infrastructure management

More information

MySQL Replication : advanced features in all flavours. Giuseppe Maxia Quality Assurance Architect at

MySQL Replication : advanced features in all flavours. Giuseppe Maxia Quality Assurance Architect at MySQL Replication : advanced features in all flavours Giuseppe Maxia Quality Assurance Architect at VMware @datacharmer 1 About me Who s this guy? Giuseppe Maxia, a.k.a. "The Data Charmer" QA Architect

More information

<Insert Picture Here> MySQL: Replication

<Insert Picture Here> MySQL: Replication MySQL: Replication Keith Larson keith.larson@oracle.com MySQL Community Manager sqlhjalp.blogspot.com sqlhjalp.com/pdf/2012_scale_replication.pdf Safe Harbor Statement The following

More information

2) One of the most common question clients asks is HOW the Replication works?

2) One of the most common question clients asks is HOW the Replication works? Replication =============================================================== 1) Before setting up a replication, it could be important to have a clear idea on the why you are setting up a MySQL replication.

More information

1Z Oracle. MySQL 5 Database Administrator Certified Professional Part I

1Z Oracle. MySQL 5 Database Administrator Certified Professional Part I Oracle 1Z0-873 MySQL 5 Database Administrator Certified Professional Part I Download Full Version : http://killexams.com/pass4sure/exam-detail/1z0-873 A. Use the --log-queries-indexes option. B. Use the

More information

MySQL Replication, the Community Sceptic Roundup. Giuseppe Maxia Quality Assurance Architect at

MySQL Replication, the Community Sceptic Roundup. Giuseppe Maxia Quality Assurance Architect at MySQL Replication, the Community Sceptic Roundup Giuseppe Maxia Quality Assurance Architect at VMware @datacharmer 1 About me Who s this guy? Giuseppe Maxia, a.k.a. "The Data Charmer" QA Architect at VMware

More information

1z0-888.exam.43q.

1z0-888.exam.43q. 1z0-888.exam.43q Number: 1z0-888 Passing Score: 800 Time Limit: 120 min 1z0-888 MySQL 5.7 Database Administrator Exam A QUESTION 1 Is it true that binary backups always take less space than text backups?

More information

ZABBIX TIPS & TRICKS. Kaspars Mednis, ZABBIX

ZABBIX TIPS & TRICKS. Kaspars Mednis, ZABBIX ZABBIX TIPS & TRICKS Kaspars Mednis, ZABBIX 1. {$USER_MACROS} Zabbix Tips and Tricks What are {$USER_MACROS}? They are variable names to store different information trigger thresholds different filters

More information

Database Security: Transactions, Access Control, and SQL Injection

Database Security: Transactions, Access Control, and SQL Injection .. Cal Poly Spring 2013 CPE/CSC 365 Introduction to Database Systems Eriq Augustine.. Transactions Database Security: Transactions, Access Control, and SQL Injection A transaction is a sequence of SQL

More information

MySQL Test Framework for Troubleshooting. February, 04, 2018 Sveta Smirnova

MySQL Test Framework for Troubleshooting. February, 04, 2018 Sveta Smirnova MySQL Test Framework for Troubleshooting February, 04, 2018 Sveta Smirnova What my Family Thinks I Do 2 What my Boss Thinks I Do 3 What I Really Do 4 I Investigate Why customer s SQL works wrongly 5 I

More information

Support for replication is built into MySQL. There are no special add-ins or applications to install.

Support for replication is built into MySQL. There are no special add-ins or applications to install. Updates made to one database copy are automatically propagated to all the other replicas. Generally, one of the replicas is designated as the master where Updates are directed to the master while read

More information

Dell Protected Workspace Management

Dell Protected Workspace Management Dell Protected Workspace Management Upgrade Guide Dell Protected Workspace Management v4.1 Created and Maintained by Invincea, Inc. Proprietary For Customer Use Only Dell Protected Workspace Management

More information

The Hazards of Multi-writing in a Dual-Master Setup

The Hazards of Multi-writing in a Dual-Master Setup The Hazards of Multi-writing in a Dual-Master Setup Jay Janssen MySQL Consulting Lead November 15th, 2012 Explaining the Problem Rules of the Replication Road A given MySQL instance: Can be both a master

More information

MySQL Security, Privileges & User Management Kenny Gryp Percona Live Washington DC /

MySQL Security, Privileges & User Management Kenny Gryp Percona Live Washington DC / MySQL Security, Privileges & User Management Kenny Gryp Percona Live Washington DC / 2012-01-11 Security, Privileges & User Management Privilege System User Management Pluggable

More information

Why we re excited about MySQL 8

Why we re excited about MySQL 8 Why we re excited about MySQL 8 Practical Look for Devs and Ops Peter Zaitsev, CEO, Percona February 4nd, 2018 FOSDEM 1 In the Presentation Practical view on MySQL 8 Exciting things for Devs Exciting things

More information

Oracle Exam 1z0-883 MySQL 5.6 Database Administrator Version: 8.0 [ Total Questions: 100 ]

Oracle Exam 1z0-883 MySQL 5.6 Database Administrator Version: 8.0 [ Total Questions: 100 ] s@lm@n Oracle Exam 1z0-883 MySQL 5.6 Database Administrator Version: 8.0 [ Total Questions: 100 ] Oracle 1z0-883 : Practice Test Question No : 1 Consider the Mysql Enterprise Audit plugin. You are checking

More information

HP Open Source Middleware Stacks Blueprint:

HP Open Source Middleware Stacks Blueprint: HP Open Source Middleware Stacks Blueprint: Database Server on HP Server Platforms with MySQL and Red Hat Enterprise Linux Version 5 HP Part Number: 5991 7431 Published: August 2007 Edition: 2.0 Copyright

More information

How to get MySQL to fail

How to get MySQL to fail Snow B.V. Feb 3, 2013 Introduction We all know we shouldn t press the button... Introduction We all know we shouldn t press the button... but we all want to try. Do you know? Do you know what happens if

More information

Bitnami MySQL for Huawei Enterprise Cloud

Bitnami MySQL for Huawei Enterprise Cloud Bitnami MySQL for Huawei Enterprise Cloud Description MySQL is a fast, reliable, scalable, and easy to use open-source relational database system. MySQL Server is intended for mission-critical, heavy-load

More information

Bitnami MariaDB for Huawei Enterprise Cloud

Bitnami MariaDB for Huawei Enterprise Cloud Bitnami MariaDB for Huawei Enterprise Cloud First steps with the Bitnami MariaDB Stack Welcome to your new Bitnami application running on Huawei Enterprise Cloud! Here are a few questions (and answers!)

More information

mysql Certified MySQL 5.0 DBA Part I

mysql Certified MySQL 5.0 DBA Part I mysql 005-002 Certified MySQL 5.0 DBA Part I http://killexams.com/exam-detail/005-002 QUESTION: 116 Which of the following correctly defines the general difference between a read lock and a write lock?

More information

MySQL Database Administrator Training NIIT, Gurgaon India 31 August-10 September 2015

MySQL Database Administrator Training NIIT, Gurgaon India 31 August-10 September 2015 MySQL Database Administrator Training Day 1: AGENDA Introduction to MySQL MySQL Overview MySQL Database Server Editions MySQL Products MySQL Services and Support MySQL Resources Example Databases MySQL

More information

1Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12

1Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 1 Insert Information Protection Policy Classification from Slide 12 Getting Started with MySQL Santo Leto Principal Technical Support Engineer, MySQL Jesper Wisborg Krogh Principal Technical Support Engineer,

More information

How to set up and verify automated MySQL backups in 15 minutes

How to set up and verify automated MySQL backups in 15 minutes ZRM Enterprise for MySQL Backup White Paper How to set up and verify automated MySQL backups in 15 minutes By Jacob Shucart 465 S. Mathilda Ave., Suite 300 Sunnyvale, CA 94086 t: (888) 496-2632 zsales@zmanda.com

More information

TINYINT[(M)] [UNSIGNED] [ZEROFILL] A very small integer. The signed range is -128 to 127. The unsigned range is 0 to 255.

TINYINT[(M)] [UNSIGNED] [ZEROFILL] A very small integer. The signed range is -128 to 127. The unsigned range is 0 to 255. MySQL: Data Types 1. Numeric Data Types ZEROFILL automatically adds the UNSIGNED attribute to the column. UNSIGNED disallows negative values. SIGNED (default) allows negative values. BIT[(M)] A bit-field

More information

Database Systems. phpmyadmin Tutorial

Database Systems. phpmyadmin Tutorial phpmyadmin Tutorial Please begin by logging into your Student Webspace. You will access the Student Webspace by logging into the Campus Common site. Go to the bottom of the page and click on the Go button

More information

IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://www.certqueen.com

IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://www.certqueen.com IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://www.certqueen.com Exam : 005-002 Title : Certified MySQL 5.0 DBA Part I Version : Demo 1 / 10 1. Will the following SELECT query

More information

How Facebook Got Consistency with MySQL in the Cloud Sam Dunster

How Facebook Got Consistency with MySQL in the Cloud Sam Dunster How Facebook Got Consistency with MySQL in the Cloud Sam Dunster Production Engineer Consistency Replication Replication for High Availability Facebook Replicaset Region A Slave Slave Region B Region

More information

Enhancing MySQL Security. Vinicius Grippa Percona

Enhancing MySQL Security. Vinicius Grippa Percona Enhancing MySQL Security Vinicius Grippa Percona About me Support Engineer at Percona since 2017 Working with MySQL for over 5 years - Started with SQL Server Working with databases for 7 years 2 Agenda

More information

XA Transactions in MySQL

XA Transactions in MySQL XA Transactions in MySQL An overview and troubleshooting guide to distributed transactions Dov Endress Senior MySQL DBA July 25th 2018 1 2016 Percona ACID Compliant Distributed Transactions Distributed

More information

Load Data Fast! BILL KARWIN PERCONA LIVE OPEN SOURCE DATABASE CONFERENCE 2017

Load Data Fast! BILL KARWIN PERCONA LIVE OPEN SOURCE DATABASE CONFERENCE 2017 Load Data Fast! BILL KARWIN PERCONA LIVE OPEN SOURCE DATABASE CONFERENCE 2017 Bill Karwin Software developer, consultant, trainer Using MySQL since 2000 Senior Database Architect at SchoolMessenger SQL

More information

MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial

MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial 1 / 284 2 / 284 3 / 284 MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial Percona Live 2017 - Santa Clara Frédéric Descamps - MySQL Community Manager - Oracle Kenny Gryp - MySQL

More information

MySQL Schema Review 101

MySQL Schema Review 101 MySQL Schema Review 101 How and What you should be looking at... Mike Benshoof - Technical Account Manager, Percona Agenda Introduction Key things to consider and review Tools to isolate issues Common

More information

ITS. MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA)

ITS. MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA) MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA) Prerequisites Have some experience with relational databases and SQL What will you learn? The MySQL for Database Administrators

More information

The New Replication Features in MySQL 8. Luís Soares Principal Software Engineer, MySQL Replication Lead

The New Replication Features in MySQL 8. Luís Soares Principal Software Engineer, MySQL Replication Lead The New Replication Features in MySQL 8 Luís Soares (luis.soares@oracle.com) Principal Software Engineer, MySQL Replication Lead Copyright 2017, Oracle and/or its affiliates. All rights reserved. Percona

More information

Setting up Multi-Source Replication in MariaDB 10.0

Setting up Multi-Source Replication in MariaDB 10.0 Setting up Multi-Source Replication in MariaDB 10.0 November 3, 2014 Derek Downey MySQL Principal Consultant Who am I? Web Developer and Sysadmin background MySQL DBA for 10+ years MySQL Principal Consultant

More information

Securing MySQL Please Fill Out The Evaluation at: Abstract ID Sheeri Cabral PalominoDB, Inc

Securing MySQL Please Fill Out The Evaluation at:  Abstract ID Sheeri Cabral PalominoDB, Inc Securing MySQL Please Fill Out The Evaluation at: http://kscope.ezsession.com Abstract ID 236335 Sheeri Cabral PalominoDB, Inc General Security Patching Prevent access Prevent meaningful info gathering

More information

Backing up or Exporting Databases Using mysqldump

Backing up or Exporting Databases Using mysqldump Despite the steps you take to secure and protect your databases, events such as power failures, natural disasters, and equipment failure can lead to the corruption and loss of data. As a result, one of

More information

Riding the Binlog: an in Deep Dissection of the Replication Stream. Jean-François Gagné jeanfrancois DOT gagne AT booking.com

Riding the Binlog: an in Deep Dissection of the Replication Stream. Jean-François Gagné jeanfrancois DOT gagne AT booking.com Riding the Binlog: an in Deep Dissection of the Replication Stream Jean-François Gagné jeanfrancois DOT gagne AT booking.com Presented at Percona Live Amsterdam 2015 Booking.com 1 Booking.com Based in

More information

MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial

MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial 1 / 152 2 / 152 3 / 152 MySQL InnoDB Cluster & Group Replication in a Nutshell: Hands-On Tutorial Percona Live Europe 2017 - Dublin Frédéric Descamps - MySQL Community Manager - Oracle Kenny Gryp - MySQL

More information

Testing and Verifying your MySQL Backup Strategy

Testing and Verifying your MySQL Backup Strategy About the Author Ronald BRADFORD Testing and Verifying your MySQL Backup Strategy Ronald Bradford http://ronaldbradford.com @RonaldBradford 16 years with MySQL / 26 years with RDBMS Senior Consultant at

More information

Meet the Sergei Golubchik MariaDB Corporation

Meet the Sergei Golubchik MariaDB Corporation Meet the 10.2 Sergei Golubchik MariaDB Corporation k 10.2 Facts About a year in active development Currently at 10.2.2 beta Plans Gamma soon GA by the end of the year 10.2 Analytical queries Removing historical

More information

Research on Load Balancing and Database Replication based on Linux

Research on Load Balancing and Database Replication based on Linux Joint International Information Technology, Mechanical and Electronic Engineering Conference (JIMEC 2016) Research on Load Balancing and Database Replication based on Linux Ou Li*, Yan Chen, Taoying Li

More information

MySQL Schema Best Practices

MySQL Schema Best Practices MySQL Schema Best Practices 2 Agenda Introduction 3 4 Introduction - Sample Schema Key Considerations 5 Data Types 6 Data Types [root@plive-2017-demo plive_2017]# ls -alh action*.ibd -rw-r-----. 1 mysql

More information

Kaivos User Guide Getting a database account 2

Kaivos User Guide Getting a database account 2 Contents Kaivos User Guide 1 1. Getting a database account 2 2. MySQL client programs at CSC 2 2.1 Connecting your database..................................... 2 2.2 Setting default values for MySQL connection..........................

More information

Fix MySQL ibdata file size - ibdata1 file growing too large, preventing ibdata1 from eating all your server disk space

Fix MySQL ibdata file size - ibdata1 file growing too large, preventing ibdata1 from eating all your server disk space Fix MySQL ibdata file size - ibdata1 file growing too large, preventing ibdata1 from eating all your server disk space Author : admin If you're a webhosting company hosting dozens of various websites that

More information

Zephyr 4.6 Installation on RedHat Enterprise 5/6 Linux 64-Bit

Zephyr 4.6 Installation on RedHat Enterprise 5/6 Linux 64-Bit Sep 14 Zephyr 4.6 Installation on RedHat Enterprise 5/6 Linux 64-Bit Z e p h y r, 7 7 0 7 G a t e w a y B l v d, S u i t e 1 0 0, N e w a r k, C A 9 4 5 6 0, U S A Zephyr 4.6 Installation on RedHat Enterprise

More information

Upgrading to MySQL 8.0+: a More Automated Upgrade Experience. Dmitry Lenev, Software Developer Oracle/MySQL, November 2018

Upgrading to MySQL 8.0+: a More Automated Upgrade Experience. Dmitry Lenev, Software Developer Oracle/MySQL, November 2018 Upgrading to MySQL 8.0+: a More Automated Upgrade Experience Dmitry Lenev, Software Developer Oracle/MySQL, November 2018 Safe Harbor Statement The following is intended to outline our general product

More information

CO MySQL for Database Administrators

CO MySQL for Database Administrators CO-61762 MySQL for Database Administrators Summary Duration 5 Days Audience Administrators, Database Designers, Developers Level Professional Technology Oracle MySQL 5.5 Delivery Method Instructor-led

More information

Securing MySQL. Presented by: Sheeri K. Cabral Senior DBA & Community Liasion, PalominoDB

Securing MySQL. Presented by: Sheeri K. Cabral Senior DBA & Community Liasion, PalominoDB Securing MySQL Presented by: Sheeri K. Cabral - @sheeri Senior DBA & Community Liasion, PalominoDB www.palominodb.com General Security Patching Prevent access Prevent meaningful info gathering 2 Access

More information

Move Amazon RDS MySQL Databases to Amazon VPC using Amazon EC2 ClassicLink and Read Replicas

Move Amazon RDS MySQL Databases to Amazon VPC using Amazon EC2 ClassicLink and Read Replicas Move Amazon RDS MySQL Databases to Amazon VPC using Amazon EC2 ClassicLink and Read Replicas July 2017 2017, Amazon Web Services, Inc. or its affiliates. All rights reserved. Notices This document is provided

More information

MySQL vs MongoDB. Choosing right technology for your application. Peter Zaitsev CEO, Percona All Things Open, Raleigh,NC October 23 rd, 2017

MySQL vs MongoDB. Choosing right technology for your application. Peter Zaitsev CEO, Percona All Things Open, Raleigh,NC October 23 rd, 2017 MySQL vs MongoDB Choosing right technology for your application Peter Zaitsev CEO, Percona All Things Open, Raleigh,NC October 23 rd, 2017 1 MySQL vs MongoDB VS 2 Bigger Question What Open Source Database

More information

MySQL 5.0 Certification Study Guide

MySQL 5.0 Certification Study Guide MySQL 5.0 Certification Study Guide Paul DuBois, Stefan Hinz, and Carsten Pedersen MySQC Press 800 East 96th Street, Indianapolis, Indiana 46240 USA Table of Contents Introduction 1 About This Book 1 Sample

More information

MariaDB High Availability. MariaDB Training

MariaDB High Availability. MariaDB Training MariaDB Training Introduction Introduction Complex Scenarios Enterprise Cluster Back-Ups with Cluster MaxScale Installation DRBD Monitoring Overview Semi-Synch Plugin Cluster Configuration MariaDB MaxScale

More information

How to evaluate which MySQL High Availability solution best suits you

How to evaluate which MySQL High Availability solution best suits you How to evaluate which MySQL High Availability solution best suits you Henrik Ingo & Ben Mildren MySQL Conference And Expo, 2012 Please share and reuse this presentation licensed under the Creative Commons

More information

Working with MongoDB as MySQL DBA. Date: Oct

Working with MongoDB as MySQL DBA. Date: Oct Working with as DBA Date: Oct-5-2016 About us Lead Database Consultant at @Pythian since 2015. Lead Database Consultant @Pythian OSDB managed services since 2014 https://www.linkedin.com/in/martinarrieta

More information

PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008.

PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008. PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008. Outline. How cookies work. Cookies in PHP. Sessions. Databases. Cookies. Sometimes it is useful to remember a client when it comes

More information

Part 1: IoT demo Part 2: MySQL, JSON and Flexible storage

Part 1: IoT demo Part 2: MySQL, JSON and Flexible storage Part 1: IoT demo Part 2: MySQL, JSON and Flexible storage $ node particle_mysql_all.js Starting... INSERT INTO cloud_data_json (name, data) values ('particle', '{\"data\":\"null\",\"ttl\":60,\"published_at\":\"2017-09-28t19:40:49.869z\",\"coreid\":\"1f0039000947343337373738

More information

MySQL for Database Administrators Ed 3.1

MySQL for Database Administrators Ed 3.1 Oracle University Contact Us: 1.800.529.0165 MySQL for Database Administrators Ed 3.1 Duration: 5 Days What you will learn The MySQL for Database Administrators training is designed for DBAs and other

More information

MySQL for Database Administrators Volume I Student Guide

MySQL for Database Administrators Volume I Student Guide MySQL for Database Administrators Volume I Student Guide D61762GC20 Edition 2.0 September 2011 D74260 Disclaimer This document contains proprietary information and is protected by copyright and other intellectual

More information

OKC MySQL Users Group

OKC MySQL Users Group OKC MySQL Users Group OKC MySQL Discuss topics about MySQL and related open source RDBMS Discuss complementary topics (big data, NoSQL, etc) Help to grow the local ecosystem through meetups and events

More information

1Z MySQL 5 Database Administrator Certified Professional Exam, Part II Exam.

1Z MySQL 5 Database Administrator Certified Professional Exam, Part II Exam. Oracle 1Z0-874 MySQL 5 Database Administrator Certified Professional Exam, Part II Exam TYPE: DEMO http://www.examskey.com/1z0-874.html Examskey Oracle 1Z0-874 exam demo product is here for you to test

More information

This lesson outlines several basic yet very core tasks to perform after completing the installation:

This lesson outlines several basic yet very core tasks to perform after completing the installation: First Things First This lesson outlines several basic yet very core tasks to perform after completing the installation: Apply Latest Trusted Patches Patch the operating system and any installed software:

More information

Relational databases and SQL

Relational databases and SQL Relational databases and SQL Relational Database Management Systems Most serious data storage is in RDBMS Oracle, MySQL, SQL Server, PostgreSQL Why so popular? Based on strong theory, well-understood performance

More information

Some Details. Network Startup Resource Center

Some Details. Network Startup Resource Center Some Details Network Startup Resource Center These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license (http://creativecommons.org/licenses/by-nc/4.0/)

More information

Load Testing Tools. for Troubleshooting MySQL Concurrency Issues. May, 23, 2018 Sveta Smirnova

Load Testing Tools. for Troubleshooting MySQL Concurrency Issues. May, 23, 2018 Sveta Smirnova Load Testing Tools for Troubleshooting MySQL Concurrency Issues May, 23, 2018 Sveta Smirnova Introduction This is very personal webinar No intended use No best practices No QA-specific tools Real life

More information

XtraBackup FOSDEM Kenny Gryp. Principal Percona

XtraBackup FOSDEM Kenny Gryp. Principal Percona XtraBackup Kenny Gryp kenny.gryp@percona.com Principal Consultant @ Percona FOSDEM 2011 1 Percona MySQL/LAMP Consulting Support & Maintenance Percona Server (XtraDB) Percona XtraBackup InnoDB Recovery

More information

Optimizing BOINC project databases

Optimizing BOINC project databases Optimizing BOINC project databases Oliver Bock Max Planck Institute for Gravitational Physics Hannover, Germany 5th Pan-Galactic BOINC Workshop Catalan Academy of Letters, Sciences and Humanities Barcelona,

More information

MySQL Configuration management at Dropbox VIACHESLAV BAKHMUTOV, PETER BOROS PERCONA LIVE AMSTERDAM, 2016

MySQL Configuration management at Dropbox VIACHESLAV BAKHMUTOV, PETER BOROS PERCONA LIVE AMSTERDAM, 2016 MySQL Configuration management at Dropbox VIACHESLAV BAKHMUTOV, PETER BOROS PERCONA LIVE AMSTERDAM, 2016 Background We are in the middle of a big refactor Main motivations Better integration testing -

More information

Backup & Restore. Maximiliano Bubenick Sr Remote DBA

Backup & Restore. Maximiliano Bubenick Sr Remote DBA Backup & Restore Maximiliano Bubenick Sr Remote DBA Agenda Why backups? Backup Types Raw Backups Logical Backups Binlog mirroring Backups Locks Tips Why Backups? Why Backups? At some point something will

More information

MySQL Configuration Settings

MySQL Configuration Settings Get It Done With MySQL 5&Up, Appendix B. Copyright Peter Brawley and Arthur Fuller 217. All rights reserved. TOC Previous Next MySQL Configuration Settings Server options and system MySQL maintains well

More information

ALTER TABLE Improvements in MARIADB Server. Marko Mäkelä Lead Developer InnoDB MariaDB Corporation

ALTER TABLE Improvements in MARIADB Server. Marko Mäkelä Lead Developer InnoDB MariaDB Corporation ALTER TABLE Improvements in MARIADB Server Marko Mäkelä Lead Developer InnoDB MariaDB Corporation Generic ALTER TABLE in MariaDB CREATE TABLE ; INSERT SELECT; RENAME ; DROP TABLE ; Retroactively named

More information

mysql Sun Certified MySQL 5.0 Database(R) Administrator Part 1

mysql Sun Certified MySQL 5.0 Database(R) Administrator Part 1 mysql 310-810 Sun Certified MySQL 5.0 Database(R) Administrator Part 1 http://killexams.com/exam-detail/310-810 A. shell>mysql test < dump.sql B. shell>mysqladmin recover test dump.sql C. mysql> USE test;mysql>

More information

Getting Started with MariaDB

Getting Started with MariaDB Getting Started with MariaDB Daniel Bartholomew Chapter No. 4 "MariaDB User Account Management" In this package, you will find: A Biography of the author of the book A preview chapter from the book, Chapter

More information

Monitoring - Database Access. FAQ document

Monitoring - Database Access. FAQ document FAQ document Table of contents Introduction... 3 DB2... 4 I.Ports... 4... 4 SAP HANA... 5 I.Ports... 5... 5 SAP MaxDB... 6 I.Ports... 6... 6 MS SQL... 7 I.Ports... 7... 7 MySQL... 8 I.Ports... 8... 8 PostgreSQL...

More information

MyRocks in MariaDB. Sergei Petrunia MariaDB Tampere Meetup June 2018

MyRocks in MariaDB. Sergei Petrunia MariaDB Tampere Meetup June 2018 MyRocks in MariaDB Sergei Petrunia MariaDB Tampere Meetup June 2018 2 What is MyRocks Hopefully everybody knows by now A storage engine based on RocksDB LSM-architecture Uses less

More information

Replication features of 2011

Replication features of 2011 FOSDEM 2012 Replication features of 2011 What they were How to get them How to use them Sergey Petrunya MariaDB MySQL Replication in 2011: overview Notable events, chronologically: MySQL 5.5 GA (Dec 2010)

More information

Xtrabackup in a nutshell

Xtrabackup in a nutshell Xtrabackup in a nutshell FromDual Annual company meeting 2013, Greece Abdel-Mawla Gharieb MySQL Support Engineer at FromDual GmbH abdel-mawla.gharieb@fromdual.com 1 / 26 About FromDual GmbH (LLC) FromDual

More information

Creating a Best-in-Class Backup and Recovery System for Your MySQL Environment. Akshay Suryawanshi DBA Team Manager,

Creating a Best-in-Class Backup and Recovery System for Your MySQL Environment. Akshay Suryawanshi DBA Team Manager, Creating a Best-in-Class Backup and Recovery System for Your MySQL Environment Akshay Suryawanshi DBA Team Manager, 2015-07-15 Agenda Why backups? Backup Types Binary or Raw Backups Logical Backups Binlog

More information

Brandon Johnson. Managing Hundreds of MySQL Servers Efficiently. Sheeri Cabral

Brandon Johnson. Managing Hundreds of MySQL Servers Efficiently. Sheeri Cabral Managing Hundreds of MySQL Servers Efficiently http://bit.ly/puppet-mysql-slides https://github.com/mozilla-it/puppet-mysql Brandon Johnson @cyborgshadow Sheeri Cabral @sheeri Mozilla Database Engineering

More information