Пост #121447

     
сохранен 23.05.2019 12:14
Текст поста
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
mak@sol ~/ $ talapai_dump && parser_dump
mak@sol ~/.go/src/gitlab.com/mak-alex/talapricing $ ssh talapai@vs02.talapai.kz
Last login: Thu May 23 13:09:10 2019 from 89.20.48.161
[talapai@vs02.talapai.kz ~]$ mysql -utalapai -pm9zUtMNSq0ap parsers
mysql: [Warning] Using a password on the command line interface can be insecure.
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 102765402
Server version: 5.7.24-log MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> select * from products_bindings where talapai_product_id=15;
+------+--------------------+-----------------+---------+
| id   | talapai_product_id | shop_product_id | shop_id |
+------+--------------------+-----------------+---------+
| 9900 |                 15 |            9359 |       7 |
| 2218 |                 15 |         2900011 |       1 |
+------+--------------------+-----------------+---------+
2 rows in set (0.00 sec)

mysql> delete from products_bindings where shop_product_id=2900011 and talapai_product_id=15 and shop_id=1;
Добавить комментарий
Автор