- 论坛徽章:
- 0
|
mysql> create database test;
Query OK, 1 row affected (0.16 sec)
mysql> use test
Database changed
mysql> create table t1(id int,name varchar(15));
Query OK, 0 rows affected (0.13 sec)
mysql> insert into t1 values(1,'kk'),(2,'ll');
Query OK, 2 rows affected (0.34 sec)
Records: 2 Duplicates: 0 Warnings: 0
mysql> commit;
Query OK, 0 rows affected (0.00 sec)
mysql> select * from t1;
+------+------+
| id | name |
+------+------+
| 1 | kk |
| 2 | ll |
+------+------+
2 rows in set (0.00 sec)
D:\Program Files\MySQL\MySQL Server 5.0\bin>mysqladmin flush-logs
mysql> insert into t1 values(3,'tt');
Query OK, 1 row affected (0.09 sec)
mysql> commit;
Query OK, 0 rows affected (0.00 sec)
mysql> select * from t1;
+------+------+
| id | name |
+------+------+
| 1 | kk |
| 2 | ll |
| 3 | tt |
+------+------+
3 rows in set (0.00 sec)
D:\Program Files\MySQL\MySQL Server 5.0\bin>mysql --one-database test < ../data/frank-bin.000008
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?in欬L' at line 1 |
|