目前分類:MySQL (22)

瀏覽方式: 標題列表 簡短摘要


drop procedure if exists sp_array_test;

DELIMITER //

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

Extracts, orders, and then prints grants for MySQL user accounts (pt-show-grants)

# Extracts, orders, and then prints grants for MySQL user accounts

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

MySQL Stored Procedure - Nested Loop Example

DELIMITER $$

DanBrother 發表在 痞客邦 留言(0) 人氣()

Metabase H2 DB Migration to MySQL 5.7

#### On Aurora New MySQL ####################

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

MySQL 5.7 :  Steps for Upgrading Percona-Toolkit to the Latest Version


pt-online-schema-change --version

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

MySQL Slave - Skip Replication for A Particular Table

mysql> stop slave sql_thread;

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

Export Table Data:
mysql -utest_usr -p"xxx"-h127.0.0.1 -P3306 -e "select * from test_usr.test_table where flag = 1" > test_usr.test_table.txt 2>/dev/null

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

check_table_fragmentation.sql
>>
MySQL > source check_table_fragmentation.sql

DanBrother 發表在 痞客邦 留言(0) 人氣()

There're MySQL global variable settings that will help for improving the speed of SQL apply in slave db.
That would solve the issue of slave lagging.

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

export dbuser='root'
export socket_file=/tmp/mysql_3360.sock

-- dry-run

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

MySQL Trigger Example
https://1drv.ms/w/s!AiM4lZDi7mITgZpt7BobprUleWqgHg?e=AuvIpd

 

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

MySQL Master High Availability (MHA) Installation and Configuration



文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

MySQL Master-Slave-Slave Replication on Oracle VM VirtualBox.pdf


DanBrother 發表在 痞客邦 留言(0) 人氣()

MySQL Master-Master-Slave Replication on Oracle VM VirtualBox.pdf


DanBrother 發表在 痞客邦 留言(0) 人氣()

Useful MySQL / MariaDB Backup and Restore Tools - mydumper & myloader


Download the latest "mydumper" RPM from the following URL:

DanBrother 發表在 痞客邦 留言(0) 人氣()

--[On Master Node]
--Setting the Replication Master Configuration (/etc/my.cnf)
[mysqld]

文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣()

1.
[root@mysql-serv ~]# cat <<EOF >> /etc/yum.repos.d/mysql-community.repo
[mysql56-community]

DanBrother 發表在 痞客邦 留言(0) 人氣()

MySQL 5.5 Installation Procedures on Linux:

# rpm -ivh MySQL-server-5.5.27-1.linux2.6.i386.rpm \

DanBrother 發表在 痞客邦 留言(0) 人氣()

The following example allows remote client (192.168.10.10) to connect to MySQL Server.

GRANT ALL ON *.* to root@'192.168.10.10' IDENTIFIED BY 'mypwd';

mysql> select * from information_schema.user_privileges where grantee like '%192.168.10.10%';

DanBrother 發表在 痞客邦 留言(0) 人氣()

The following command dump a  MySQL query output into a text file named all_tmp_tables.lst

./mysql -uroot -p  MyTestDB -e "show tables like 'tmp_%'" > all_tmp_tables.lst

DanBrother 發表在 痞客邦 留言(0) 人氣()

1 2
Close

您尚未登入,將以訪客身份留言。亦可以上方服務帳號登入留言

請輸入暱稱 ( 最多顯示 6 個中文字元 )

請輸入標題 ( 最多顯示 9 個中文字元 )

請輸入內容 ( 最多 140 個中文字元 )

reload

請輸入左方認證碼:

看不懂,換張圖

請輸入驗證碼