|
|
|
JDBC MySQL и thread_id
|
|||
|---|---|---|---|
|
#18+
Каким образом можно для текущего соединения с mysql-сервером получить thread_id, чтобы можно было воспользоваться KILL [CONNECTION | QUERY] thread_id ??? Что-то ничего подходящего в драйвере mysql-connector-java-3.1.11 не нашла. Можно ли обойтись без использования show processlist и вылавливания оттуда id своих потоков? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.10.2005, 15:06 |
|
||
|
JDBC MySQL и thread_id
|
|||
|---|---|---|---|
|
#18+
А что за потоки такие? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.10.2005, 15:12 |
|
||
|
JDBC MySQL и thread_id
|
|||
|---|---|---|---|
|
#18+
сделать запрос в нужном соединении Код: plaintext // наверно. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.10.2005, 15:13 |
|
||
|
JDBC MySQL и thread_id
|
|||
|---|---|---|---|
|
#18+
13.5.5.3. KILL Syntax KILL [CONNECTION | QUERY] thread_id Each connection to mysqld runs in a separate thread. You can see which threads are running with the SHOW PROCESSLIST statement and kill a thread with the KILL thread_id statement. In MySQL 5.0.0, KILL allows the optional CONNECTION or QUERY modifier: KILL CONNECTION is the same as KILL with no modifier: It terminates the connection associated with the given thread_id. KILL QUERY terminates the statement that the connection is currently executing, but leaves the connection itself intact. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.10.2005, 15:15 |
|
||
|
JDBC MySQL и thread_id
|
|||
|---|---|---|---|
|
#18+
забыл спросить, а при чем здесь Java? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.10.2005, 15:18 |
|
||
|
|

start [/forum/topic.php?fid=59&gotonew=1&tid=2151212]: |
0ms |
get settings: |
8ms |
get forum list: |
18ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
34ms |
get topic data: |
11ms |
get first new msg: |
7ms |
get forum data: |
3ms |
get page messages: |
56ms |
get tp. blocked users: |
2ms |
| others: | 219ms |
| total: | 366ms |

| 0 / 0 |
