目前分類:MySQL (22)
- Sep 18 Fri 2020 09:51
MySQL Array Simulation in Stored Procedure
- Jul 07 Tue 2020 15:44
Extracts, orders, and then prints grants for MySQL user accounts (pt-show-grants)
Extracts, orders, and then prints grants for MySQL user accounts (pt-show-grants)
# Extracts, orders, and then prints grants for MySQL user accounts
- Jun 29 Mon 2020 13:21
MySQL Stored Procedure - Nested Loop Example
MySQL Stored Procedure - Nested Loop Example
DELIMITER $$
- Jun 17 Wed 2020 09:39
Metabase H2 DB Migration to MySQL 5.7
Metabase H2 DB Migration to MySQL 5.7
#### On Aurora New MySQL ####################
- Mar 04 Wed 2020 14:00
Steps for Upgrading Percona-Toolkit to the Latest Version
MySQL 5.7 : Steps for Upgrading Percona-Toolkit to the Latest Version
pt-online-schema-change --version
- Feb 27 Thu 2020 16:42
MySQL Slave - Skip Replication for A Particular Table
MySQL Slave - Skip Replication for A Particular Table
mysql> stop slave sql_thread;
- Feb 26 Wed 2020 10:59
MySQL - Export & Import Table Data Based on the SQL Query
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
- Feb 03 Mon 2020 15:08
MySQL Table Fragmentation Detection and De-fragmentation Implementation
check_table_fragmentation.sql
>>
MySQL > source check_table_fragmentation.sql
- Oct 28 Mon 2019 14:03
Solving MySQL slave lag Issues
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.
- Sep 12 Thu 2019 16:50
MySQL Online Table Redefinition Without Locking The Table Using Percona Toolkit : pt-online-schema-change
- Aug 07 Wed 2019 17:27
MySQL Trigger Example
- Jun 13 Thu 2019 17:06
MySQL Master High Availability (MHA) Installation and Configuration
- Jun 04 Tue 2019 15:26
MySQL Master-Slave-Slave Replication Setup on Oracle VM VirtualBox 5.2
- May 29 Wed 2019 17:14
MySQL Master-Master-Slave Replication Setup on Oracle VM VirtualBox 5.2
- May 23 Thu 2019 15:19
Useful MySQL / MariaDB Backup and Restore Tools - mydumper & myloader
Useful MySQL / MariaDB Backup and Restore Tools - mydumper & myloader
☉ Download the latest "mydumper" RPM from the following URL:
- May 15 Tue 2018 17:55
MySQL 5.6 Replication Master Slave Configuration
--[On Master Node]
--Setting the Replication Master Configuration (/etc/my.cnf)
[mysqld]
- May 14 Mon 2018 15:21
MySQL 5.6 Installation Procedure on Oracle Linux 7
1.
[root@mysql-serv ~]# cat <<EOF >> /etc/yum.repos.d/mysql-community.repo
[mysql56-community]
- Aug 29 Wed 2012 17:00
MySQL 5.5 Installation Procedures on Linux
MySQL 5.5 Installation Procedures on Linux:
# rpm -ivh MySQL-server-5.5.27-1.linux2.6.i386.rpm \
- Aug 13 Mon 2012 18:28
Grant Permission to Allow Remote Client Access to MySQL Server
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%';
- Jul 14 Thu 2011 11:35
Dump MySQL SQL Query Output Into a Text File
./mysql -uroot -p MyTestDB -e "show tables like 'tmp_%'" > all_tmp_tables.lst