This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use utf8; | |
my $file= "./general_query.log"; | |
open(my $fh, "<", $file) or die; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql80 26> SELECT x'E8919BF3A08481', LENGTH(x'E8919BF3A08481'), CHARACTER_LENGTH(x'E8919BF3A08481'); | |
+-------------------+---------------------------+-------------------------------------+ | |
| x'E8919BF3A08481' | LENGTH(x'E8919BF3A08481') | CHARACTER_LENGTH(x'E8919BF3A08481') | | |
+-------------------+---------------------------+-------------------------------------+ | |
| 葛󠄁 | 7 | 7 | | |
+-------------------+---------------------------+-------------------------------------+ | |
1 row in set (0.00 sec) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ll /usr/mysql/5.7.36/data/d1/ | |
total 220 | |
-rw-r----- 1 yoku0825 yoku0825 67 Nov 15 17:50 db.opt | |
-rw-r----- 1 yoku0825 yoku0825 8586 Nov 15 17:57 t1.frm | |
-rw-r----- 1 yoku0825 yoku0825 98304 Nov 15 17:57 t1.ibd <--- innodb_file_per_table= ON | |
-rw-r----- 1 yoku0825 yoku0825 8586 Nov 15 17:56 t3.frm | |
-rw-r----- 1 yoku0825 yoku0825 98304 Nov 15 17:56 t3.ibd | |
mysql57 11> SET GLOBAL innodb_file_per_table= 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function t2_in_1_3($buff) | |
{ | |
if ($buff["t2"] == 1 || $buff["t2"] == 3) | |
return true; | |
return false; | |
} | |
$t1= array(1, 2, 3); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> SELECT @@version; | |
+-----------+ | |
| @@version | | |
+-----------+ | |
| 8.0.25 | | |
+-----------+ | |
1 row in set (0.00 sec) | |
mysql> SHOW GRANTS; | |
+--------------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Breakpoint 1, Parallel_reader::parallel_read() () at /home/yoku0825/mysql-8.0.26/storage/innobase/row/row0pread.cc:1087 | |
1087 void Parallel_reader::parallel_read() { | |
(gdb) c | |
+c | |
Continuing. | |
[New Thread 0x7f2972ffd700 (LWP 1916)] | |
[New Thread 0x7f2971ffb700 (LWP 1917)] | |
[New Thread 0x7f2998ff9700 (LWP 1914)] | |
[New Thread 0x7f296b7fe700 (LWP 1920)] | |
[New Thread 0x7f2970ff9700 (LWP 1918)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2038-01-19T03:14:16.025479Z 8 [Warning] [MY-010112] [Server] Current time has got past year 2038. Validating current time with 5 iterations before initiating the normal server shutdown process. | |
2038-01-19T03:14:16.025550Z 8 [Warning] [MY-010114] [Server] Iteration 1: Current time obtained from system is greater than 2038 | |
2038-01-19T03:14:16.025561Z 8 [Warning] [MY-010114] [Server] Iteration 2: Current time obtained from system is greater than 2038 | |
2038-01-19T03:14:16.025569Z 8 [Warning] [MY-010114] [Server] Iteration 3: Current time obtained from system is greater than 2038 | |
2038-01-19T03:14:16.025575Z 8 [Warning] [MY-010114] [Server] Iteration 4: Current time obtained from system is greater than 2038 | |
2038-01-19T03:14:16.025582Z 8 [Warning] [MY-010114] [Server] Iteration 5: Current time obtained from system is greater than 2038 | |
2038-01-19T03:14:16.025590Z 8 [ERROR] [MY-010115] [Server] This MySQL server doesn't support dates later then 2038 | |
2038-01-19T03:14:17.178509Z 0 [System] [MY-010910] [Server] /usr/sbin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ./sql/sql_yacc.yy.orig 2021-01-05 19:19:59.000000000 +0900 | |
+++ ./sql/sql_yacc.yy 2021-04-01 11:52:06.167953286 +0900 | |
@@ -2,2 +2,3 @@ | |
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. | |
+ Copyright (c) 2021, yoku0825. All rights reserved. | |
@@ -1570,2 +1571,3 @@ | |
%token SSL_SYM | |
+%token PLEASE_SYM /* yoku0825 */ | |
%token STARTING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- sql/auth/sql_authentication.cc.orig 2020-12-10 12:01:55.000000000 +0900 | |
+++ sql/auth/sql_authentication.cc 2021-02-24 22:46:58.821476338 +0900 | |
@@ -2401,3 +2401,3 @@ | |
- if (!(sctx->check_access(SUPER_ACL)) && !thd->is_error()) | |
+ if (!(sctx->check_access(SUPER_ACL) || sctx->check_access(REPL_SLAVE_ACL)) && !thd->is_error()) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### オプションなしで起動(デフォルトの lower_case_table_names = 0) | |
$ sudo docker run -d -P -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_ROOT_PASSWORD="""" -e MYSQL_ROOT_HOST=""%"" mysql/mysql-server:5.6 | |
$ mysql -h172.17.0.3 | |
mysql> create database d1; | |
Query OK, 1 row affected (0.01 sec) | |
mysql> use d1 | |
Database changed |