鍍金池/ 問答/數(shù)據(jù)庫/ 麻煩幫忙看下mysql5.7 查詢語句加where booth_no = '11

麻煩幫忙看下mysql5.7 查詢語句加where booth_no = '111',MySQL就奔潰是怎么回事!!

my.ini

[mysqld]

#綁定IPv4
bind-address = 0.0.0.0

# 設(shè)置mysql的安裝目錄,即你解壓縮安裝包的位置
basedir = D:\\server\\mysql-5.7.21-winx64

# 設(shè)置mysql數(shù)據(jù)庫的數(shù)據(jù)的存放目錄
datadir = D:\\server\\mysql-5.7.21-winx64\\data

# 設(shè)置端口號
port = 3306

# 允許最大連接數(shù)
max_connections = 1000

# 設(shè)置字符集為utf8
loose-default-character-set = utf8

# 開啟查詢緩存
# explicit_defaults_for_timestamp = false

# 不區(qū)分大小寫

lower_case_table_names=1

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

#執(zhí)行文件大小
max_allowed_packet = 1000M

[client] 
#設(shè)置客戶端字符集
port=3306
default-character-set = utf8

[WinMySQLadmin] 
Server = D:\\server\\mysql-5.7.21-winx64\\bin\\mysqld.exe

報錯

This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=3
max_threads=1000
thread_count=2
connection_count=2
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 404356 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x138e30c0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
7fef5cc5c01    MSVCR120.dll!pow()
13f6641ba    mysqld.exe!get_sweep_read_cost()[handler.cc:7215]
13fc1c3d7    mysqld.exe!ror_intersect_add()[opt_range.cc:5461]
13fc12139    mysqld.exe!get_best_ror_intersect()[opt_range.cc:5642]
13fc1e6c5    mysqld.exe!test_quick_select()[opt_range.cc:3108]
13f7ca81e    mysqld.exe!get_quick_record_count()[sql_optimizer.cc:5949]
13f7c926d    mysqld.exe!JOIN::estimate_rowcount()[sql_optimizer.cc:5695]
13f7cbff9    mysqld.exe!JOIN::make_join_plan()[sql_optimizer.cc:5052]
13f7cdb6b    mysqld.exe!JOIN::optimize()[sql_optimizer.cc:368]
13f81dfc9    mysqld.exe!st_select_lex::optimize()[sql_select.cc:1009]
13f8301d5    mysqld.exe!st_select_lex_unit::optimize()[sql_union.cc:703]
13f81dfe7    mysqld.exe!st_select_lex::optimize()[sql_select.cc:1015]
13f81bfed    mysqld.exe!handle_query()[sql_select.cc:164]
13f6859a7    mysqld.exe!execute_sqlcom_select()[sql_parse.cc:5156]
13f6878d6    mysqld.exe!mysql_execute_command()[sql_parse.cc:2792]
13f68b358    mysqld.exe!mysql_parse()[sql_parse.cc:5588]
13f6843f4    mysqld.exe!dispatch_command()[sql_parse.cc:1461]
13f68541a    mysqld.exe!do_command()[sql_parse.cc:1001]
13f62bcac    mysqld.exe!handle_connection()[connection_handler_per_thread.cc:300]
140089772    mysqld.exe!pfs_spawn_thread()[pfs.cc:2193]
13fd9c2dc    mysqld.exe!win_thread_start()[my_thread.c:38]
7fef5c54f7f    MSVCR120.dll!_beginthreadex()
7fef5c55126    MSVCR120.dll!_endthreadex()
76fef56d    kernel32.dll!BaseThreadInitThunk()
77223281    ntdll.dll!RtlUserThreadStart()

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (13a35880): SELECT
    bh.end_date
  FROM
    booth_hire bh
  WHERE bh.booth_no = 'AJ23,AJ24,AJ25,'
    AND bh.vender_id = 18383
    AND bh.status = 0
  LIMIT 1
Connection ID (thread ID): 2
Status: NOT_KILLED
回答
編輯回答
厭惡我

sql有問題?

試試這個

SELECT
s.id,
s.name,
s.price,
s.unit
from sample as s where id = 20205

EDITED

應(yīng)該MySQL的bug

https://bugs.mysql.com/bug.ph...
https://bugs.mysql.com/bug.ph...

與你的報錯很類似

terribly wrong...
7ff744872571    mysqld.exe!pow()[pow.asm:1616]
7ff743d8da3a    mysqld.exe!get_sweep_read_cost()[handler.cc:7200]
7ff74434f3a7    mysqld.exe!ror_intersect_add()[opt_range.cc:5440]
7ff7443453a9    mysqld.exe!get_best_ror_intersect()[opt_range.cc:5621]

建議提交Bug

2017年6月16日 09:06
編輯回答
茍活

終于好了,剛開始換成5.5然后綠色版又報編譯版本不一樣mysqld無法啟動,換成5.6,終于好了.一波三折阿!

2017年6月20日 21:44