replace into ukm_ukmversion(version, moment, cli_updates_version) values (83000, NOW(), 83000);
192.168.13.101#mysql --user=root --password=CtHDbCGK.C Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 21 Server version: 5.0.67 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> use ukmclient; Database changed mysql> show tables; +-------------------------------------------+ | Tables_in_ukmclient | +-------------------------------------------+ | auth_bpc_journal | | auth_gpb_journal | | auth_internal_journal | ................... | trm_out_table_operations | | trm_out_updates_download_state | | trm_out_webmoney_sequence | | ukm_job_scheduler | | ukm_operation_processing | | ukm_ukmversion | | wbn_event | | wbn_session | +-------------------------------------------+ 610 rows in set (0,07 sec) mysql> select * from ukm_ukmversion; ERROR 1146 (42S02): Table 'ukmclient.ukm_ukmversion' doesn't exist mysql> select * from wbn_event; ERROR 1146 (42S02): Table 'ukmclient.wbn_event' doesn't exist mysql> select * rom trm_in_store; ERROR 1146 (42S02): Table 'ukmclient.trm_in_store' doesn't exist mysql>
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | test | | ukmclient | +--------------------+ 4 rows in set (0,00 sec) mysql> select * from ukmclient.ukm_ukmversion; Empty set (0,00 sec) mysql> use ukmclient; Database changed mysql> select * from ukm_ukmversion; Empty set (0,00 sec)
mysql> replace into ukm_ukmversion(version, moment, cli_updates_version) values (83000, NOW(), 83000);
ERROR 1030 (HY000): Got error -1 from storage engine
mysql> insert into ukm_ukmversion(version, moment, cli_updates_version) values (83000, NOW(), 83000);
ERROR 1030 (HY000): Got error -1 from storage engine
mysql> select * from ukm_ukmversion;
+---------+--------------+---------------------+---------------------+
| version | full_version | moment | cli_updates_version |
+---------+--------------+---------------------+---------------------+
| 74000 | | 2017-01-13 19:55:00 | 74000 |
| 75000 | | 2017-05-14 11:34:36 | 75000 |
| 75001 | | 2017-05-14 11:34:47 | 75001 |
| 78000 | | 2018-02-06 11:35:32 | 78000 |
| 78001 | | 2018-02-06 11:35:33 | 78001 |
| 78002 | | 2018-02-06 11:35:43 | 78002 |
| 83000 | | 2018-12-18 15:12:57 | 83000 |
| 83001 | | 2018-12-18 15:12:58 | 83001 |
| 83002 | | 2018-12-18 15:12:58 | 83002 |
| 83003 | | 2018-12-18 15:13:12 | 83003 |
+---------+--------------+---------------------+---------------------+
10 rows in set (0,00 sec)
mysql>
mysql> replace into ukm_ukmversion(version, full_version, moment, cli_updates_version) values (83000, null, NOW(), 83000);
ERROR 1048 (23000): Column 'full_version' cannot be null
mysql> replace into ukm_ukmversion(version, full_version, moment, cli_updates_version) values (83000, 83000, NOW(), 83000);
ERROR 1030 (HY000): Got error -1 from storage engine
mysql> insert into ukm_ukmversion values (83000, '83000', NOW(), 83000);
ERROR 1030 (HY000): Got error -1 from storage engine
mysql> CREATE TABLE ukm_test (
-> version int(10) unsigned NOT NULL default '0', -- Идентификатор версии
-> full_version varchar(15) NOT NULL default '', -- Полный номер версии
-> moment datetime NOT NULL default '0000-00-00 00:00:00', -- Дата установки версии
-> cli_updates_version int(10) unsigned NOT NULL default '0' -- Версия клиентских обновлений
-> );
Query OK, 0 rows affected (0,07 sec)
mysql>
mysql> insert into ukm_test values (83000, '', NOW(), 83000);
Query OK, 1 row affected (0,00 sec)
mysql> insert into ukm_ukmversion select * from ukm_test;
ERROR 1030 (HY000): Got error -1 from storage engine
mysql> select * from ukm_test;
+---------+--------------+---------------------+---------------------+
| version | full_version | moment | cli_updates_version |
+---------+--------------+---------------------+---------------------+
| 83000 | | 2019-06-16 11:54:18 | 83000 |
+---------+--------------+---------------------+---------------------+
1 row in set (0,00 sec)
mysql> drop table ukm_ukmversion;
Query OK, 0 rows affected (0,13 sec)
mysql> rename table ukm_test to ukm_ukmversion;
Query OK, 0 rows affected (0,00 sec)
mysql> select * from ukm_ukmversion;
+---------+--------------+---------------------+---------------------+
| version | full_version | moment | cli_updates_version |
+---------+--------------+---------------------+---------------------+
| 83000 | | 2019-06-16 11:54:18 | 83000 |
+---------+--------------+---------------------+---------------------+
1 row in set (0,00 sec)
mysql>