следующий вопрос:
после конвертации тдс не считает траф.
т.е. тдс работает, а в статистике нули.
что делать?
scj_1to2_db_converter
Re: scj_1to2_db_converter
с ТДС есть вопрос
быстрый вариант - удалить что есть и передобавить правила
медленный - на сл неделе смогу разобрать ТДС из первой версии
быстрый вариант - удалить что есть и передобавить правила
медленный - на сл неделе смогу разобрать ТДС из первой версии
Don't forget to run script update
Re: scj_1to2_db_converter
нужно сохранить scheme_id=1 и т.п.
а так при удалении старой схемы, новая идёт под следующим номером. как нибудь можно удалить схему с номером 1, а потом этот же номер и добавить?
а так при удалении старой схемы, новая идёт под следующим номером. как нибудь можно удалить схему с номером 1, а потом этот же номер и добавить?
Re: scj_1to2_db_converter
если сделать в базе
truncate table tds_rules
то новые начнутся с номера 1
truncate table tds_rules
то новые начнутся с номера 1
Don't forget to run script update
Re: scj_1to2_db_converter
не получается. удалил правила, сделал команду. нумерация начинается с №4.
MariaDB [(none)]> use axcel_c125;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [axcel_c125]> truncate table tds_rules;
Query OK, 0 rows affected (0.01 sec)
MariaDB [axcel_c125]> exit
Bye
MariaDB [(none)]> use axcel_c125;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [axcel_c125]> truncate table tds_rules;
Query OK, 0 rows affected (0.01 sec)
MariaDB [axcel_c125]> exit
Bye
Re: scj_1to2_db_converter
хм
тогда немного сложнее запрос
DROP TABLE IF EXISTS `tds_rules`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tds_rules` (
`rule_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`tds_id` int(10) unsigned NOT NULL,
`order_id` int(10) unsigned NOT NULL,
`weight` tinyint(3) unsigned NOT NULL,
`url` varchar(255) NOT NULL,
`country_filter` varchar(255) NOT NULL,
`unique_filter` tinyint(3) unsigned NOT NULL,
`proxy_filter` tinyint(3) unsigned NOT NULL,
`mobile_filter` tinyint(3) unsigned NOT NULL,
`lng_filter` varchar(255) NOT NULL,
`ua_filter` varchar(255) NOT NULL,
`ref_filter` varchar(255) NOT NULL,
`php_filter` text NOT NULL,
`hits_limit_hour` int(10) unsigned NOT NULL,
`hits_limit_day` int(10) unsigned NOT NULL,
`hits_limit` int(10) unsigned NOT NULL,
`status` tinyint(4) NOT NULL,
PRIMARY KEY (`rule_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
тогда немного сложнее запрос
DROP TABLE IF EXISTS `tds_rules`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tds_rules` (
`rule_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`tds_id` int(10) unsigned NOT NULL,
`order_id` int(10) unsigned NOT NULL,
`weight` tinyint(3) unsigned NOT NULL,
`url` varchar(255) NOT NULL,
`country_filter` varchar(255) NOT NULL,
`unique_filter` tinyint(3) unsigned NOT NULL,
`proxy_filter` tinyint(3) unsigned NOT NULL,
`mobile_filter` tinyint(3) unsigned NOT NULL,
`lng_filter` varchar(255) NOT NULL,
`ua_filter` varchar(255) NOT NULL,
`ref_filter` varchar(255) NOT NULL,
`php_filter` text NOT NULL,
`hits_limit_hour` int(10) unsigned NOT NULL,
`hits_limit_day` int(10) unsigned NOT NULL,
`hits_limit` int(10) unsigned NOT NULL,
`status` tinyint(4) NOT NULL,
PRIMARY KEY (`rule_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
Don't forget to run script update
Re: scj_1to2_db_converter
не получается. сделал. нумерация начинается с 4.
MariaDB [(none)]> use axcel_c125;
No connection. Trying to reconnect...
Connection id: 46732849
Current database: *** NONE ***
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [axcel_c125]> DROP TABLE IF EXISTS `tds_rules`;
Query OK, 0 rows affected (0.00 sec)
MariaDB [axcel_c125]> /*!40101 SET @saved_cs_client = @@character_set_client */;
Query OK, 0 rows affected (0.00 sec)
MariaDB [axcel_c125]> /*!40101 SET character_set_client = utf8 */;
Query OK, 0 rows affected (0.00 sec)
MariaDB [axcel_c125]> CREATE TABLE `tds_rules` (
-> `rule_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-> `tds_id` int(10) unsigned NOT NULL,
-> `order_id` int(10) unsigned NOT NULL,
-> `weight` tinyint(3) unsigned NOT NULL,
-> `url` varchar(255) NOT NULL,
-> `country_filter` varchar(255) NOT NULL,
-> `unique_filter` tinyint(3) unsigned NOT NULL,
-> `proxy_filter` tinyint(3) unsigned NOT NULL,
-> `mobile_filter` tinyint(3) unsigned NOT NULL,
-> `lng_filter` varchar(255) NOT NULL,
-> `ua_filter` varchar(255) NOT NULL,
-> `ref_filter` varchar(255) NOT NULL,
-> `php_filter` text NOT NULL,
-> `hits_limit_hour` int(10) unsigned NOT NULL,
-> `hits_limit_day` int(10) unsigned NOT NULL,
-> `hits_limit` int(10) unsigned NOT NULL,
-> `status` tinyint(4) NOT NULL,
-> PRIMARY KEY (`rule_id`)
-> ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Query OK, 0 rows affected (0.00 sec)
MariaDB [axcel_c125]> /*!40101 SET character_set_client = @saved_cs_client */;
Query OK, 0 rows affected (0.00 sec)
MariaDB [axcel_c125]>
MariaDB [(none)]> use axcel_c125;
No connection. Trying to reconnect...
Connection id: 46732849
Current database: *** NONE ***
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [axcel_c125]> DROP TABLE IF EXISTS `tds_rules`;
Query OK, 0 rows affected (0.00 sec)
MariaDB [axcel_c125]> /*!40101 SET @saved_cs_client = @@character_set_client */;
Query OK, 0 rows affected (0.00 sec)
MariaDB [axcel_c125]> /*!40101 SET character_set_client = utf8 */;
Query OK, 0 rows affected (0.00 sec)
MariaDB [axcel_c125]> CREATE TABLE `tds_rules` (
-> `rule_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-> `tds_id` int(10) unsigned NOT NULL,
-> `order_id` int(10) unsigned NOT NULL,
-> `weight` tinyint(3) unsigned NOT NULL,
-> `url` varchar(255) NOT NULL,
-> `country_filter` varchar(255) NOT NULL,
-> `unique_filter` tinyint(3) unsigned NOT NULL,
-> `proxy_filter` tinyint(3) unsigned NOT NULL,
-> `mobile_filter` tinyint(3) unsigned NOT NULL,
-> `lng_filter` varchar(255) NOT NULL,
-> `ua_filter` varchar(255) NOT NULL,
-> `ref_filter` varchar(255) NOT NULL,
-> `php_filter` text NOT NULL,
-> `hits_limit_hour` int(10) unsigned NOT NULL,
-> `hits_limit_day` int(10) unsigned NOT NULL,
-> `hits_limit` int(10) unsigned NOT NULL,
-> `status` tinyint(4) NOT NULL,
-> PRIMARY KEY (`rule_id`)
-> ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Query OK, 0 rows affected (0.00 sec)
MariaDB [axcel_c125]> /*!40101 SET character_set_client = @saved_cs_client */;
Query OK, 0 rows affected (0.00 sec)
MariaDB [axcel_c125]>
Re: scj_1to2_db_converter
точно? вы 2 раза добавли правило и каждый раз 4?
точно в ту базу добавлете?
точно в ту базу добавлете?
Don't forget to run script update
Re: scj_1to2_db_converter
сначала 4, затем 5.
делал так:
сначала удалил правила в админке.
потом выполнил вашу команду.
добавил новое правило. и у него № 4. есс-но у следующего правила №5.
база та же.
я могу вам дамп скинуть для теста.
делал так:
сначала удалил правила в админке.
потом выполнил вашу команду.
добавил новое правило. и у него № 4. есс-но у следующего правила №5.
база та же.
я могу вам дамп скинуть для теста.
Re: scj_1to2_db_converter
не может быть что б после удаления таблицы она начиналась с 4, я в этом уверен на 150%
но если у вас такой хитрый сетеп где база после создания начинается с 4 то было бы интересно посмотреть - скидывайте админку и доступ к базе, я проверю
но если у вас такой хитрый сетеп где база после создания начинается с 4 то было бы интересно посмотреть - скидывайте админку и доступ к базе, я проверю
Don't forget to run script update







