简体   繁体   English

握手不活动超时 - mysql 使用 sqltools

[英]Handshake inactivity timeout - mysql using sqltools

I am using SQL tools however I keep getting this error.我正在使用 SQL 工具,但是我不断收到此错误。 I have changed the connection to 5000 but I keep getting this error.我已将连接更改为 5000,但我不断收到此错误。 I don't know if this is a syntax error, sqltools error, or a MySQL error.不知道这是语法错误,sqltools错误,还是MySQL错误。

here is my code这是我的代码

--@block
CREATE TABLE Main(
id INT PRIMARY Key,
title VARCHAR(255) NOT NULL UNIQUE,
body TEXT NOT NULL,
mainimageurl VARCHAR(255),
);

the error错误

Handshake inactivity timeout

it's running on port 3305, using xprotocol.它使用 xprotocol 在端口 3305 上运行。 and have opened the udp port并打开了 udp 端口

I appreciate any help you can provide!感谢您提供的任何帮助!

There's an extra comma after mainimageurl VARCHAR(255), .mainimageurl VARCHAR(255),之后有一个额外的逗号。 It should be:它应该是:

CREATE TABLE Main(
id INT PRIMARY Key,
title VARCHAR(255) NOT NULL UNIQUE,
body TEXT NOT NULL,
mainimageurl VARCHAR(255)
);

I'm not familiar with SQLtools, never used it but usually this type of error is immediately returned as you can see in this demo and you'll know at what point it have error;我不熟悉 SQLtools,从未使用过它,但通常会立即返回这种类型的错误, 如您在此演示中所见,您会知道它在什么时候出现错误; or at least you can see the error code/message and search for it's information on what's wrong.或者至少您可以看到错误代码/消息并搜索它的错误信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM