1、创建测试用例库表 Welcome to the MariaDB monitor. Commands end with ; or /g. Your MariaDB connection id is 11 Server version: 10.2.26-MariaDB-log MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.
MariaDB [(none)]> create table full.incr(id int not null auto_increment primary key,tag varchar(256)) charset=utf8; Query OK, 0 rows affected (0.02 sec)
MariaDB [(none)]> show table from full; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from full' at line 1 MariaDB [(none)]> show tables from full; +----------------+ | Tables_in_full | +----------------+ | incr | +----------------+ 1 row in set (0.00 sec)
MariaDB [(none)]> select * from full.incr; Empty set (0.00 sec)
17、启动观察 [root@rec lib]# chown mysql.mysql -R mysql [root@rec lib]# /etc/init.d/mysql start Starting mysql (via systemctl): [ 确定 ] [root@rec lib]# mysql Welcome to the MariaDB monitor. Commands end with ; or /g. Your MariaDB connection id is 9 Server version: 10.2.26-MariaDB-log MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.
MariaDB [(none)]> select * from full.incr; +----+------------------+ | id | tag | +----+------------------+ | 1 | 第1次增备后 | | 2 | 第2次增备后 | | 3 | 第3次增备后 | +----+------------------+ 3 rows in set (0.00 sec)