欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

MySQL 导入Failed to open file 'c:tcms.sql', error: 2

程序员文章站 2022-05-31 20:15:18
...

按照网上的方法导入.sql文件包Failed to open file ‘c:tcms.sql’, error: 2
MySQL 导入Failed to open file 'c:tcms.sql', error: 2
我的文件放在C盘
我直接执行source c:tcms.sql报错
然后我加了一个“/”就可以运行了
斜杠是“/” 不是“\”

mysql> source c:/tcms.sql
Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected (0.13 sec)

ERROR 1366 (HY000): Incorrect string value: '\xAE\x97\xE6\x9C\xBA\xE7...' for column 'collegeName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE5\x85\xAC\xE5\x85\xB1...' for column 'collegeName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE7\x94\x9F\xE5\x91\xBD...' for column 'collegeName' at row 1
Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected (0.12 sec)

ERROR 1366 (HY000): Incorrect string value: '\xE5\x9F\xBA\xE7\xA1\x80...' for column 'courseName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\x96\xE7\xA8\x8B' for column 'courseName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE5\x92\x8CSer...' for column 'courseName' at row 1
Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected (0.06 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected (0.10 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected (0.07 sec)

ERROR 1366 (HY000): Incorrect string value: '\xA0\xE6\x8D\xB7' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xA0\xE6\x9D\xB0' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE6\x9D\xA8\xE4\xBC\xAF...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE6\x9D\x8E\xE9\xB9\x8F' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE5\x91\xA8\xE6\xB1\x9D...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE5\x88\x98\xE5\xBE\xB7...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xA0\xE5\xAD\xA6\xE5\x8F...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE5\x91\xA8\xE7\xAC\x94...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xAC\xE4\xBA\x91' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE5\x88\x98\xE5\xBC\xBA...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE7\x8E\x8B\xE5\x81\xA5...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE7\x8E\x8B\xE6\x80\x9D...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xAE\xB6\xE5\x8D\xB0' for column 'userName' at row 1
Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected (0.09 sec)

ERROR 1366 (HY000): Incorrect string value: '\xE5\x88\x98\xE8\x80\x81...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xAF\xE8\x80\x81\xE5\xB8...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE6\x9D\xA8\xE8\x80\x81...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xA0\xE8\x80\x81\xE5\xB8...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE5\x91\xA8\xE8\x80\x81...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\x8F\xE8\x80\x81\xE5\xB8...' for column 'userName' at row 1
ERROR 1366 (HY000): Incorrect string value: '\xE5\x88\x98\xE8\x80\x81...' for column 'userName' at row 1
Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected (0.08 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 1 row affected (0.08 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 1 row affected (0.04 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 1 row affected (0.03 sec)

Query OK, 1 row affected (0.03 sec)

mysql>

over

相关标签: Mysql