You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
810 B

create table performance_schema.socket_instances
(
EVENT_NAME varchar(128) not null,
OBJECT_INSTANCE_BEGIN bigint unsigned not null
primary key using hash,
THREAD_ID bigint unsigned null,
SOCKET_ID int not null,
IP varchar(64) not null,
PORT int not null,
STATE enum ('IDLE', 'ACTIVE') not null
)
engine = PERFORMANCE_SCHEMA;
create index IP
on performance_schema.socket_instances (IP, PORT)
using hash;
create index SOCKET_ID
on performance_schema.socket_instances (SOCKET_ID)
using hash;
create index THREAD_ID
on performance_schema.socket_instances (THREAD_ID)
using hash;