在 100mb+ 的文件上运行它时:
$ mysql -u xxxx -p dbname < /path/to/dump.sql
我得到:
ERROR at line 1274954: Unknown command '\''.
但是,当我这样做时:
head -1274964 /path/to/dump.sql | tail -20
我只是得到('INSERT INTO address' 是第 1274954 行,但是我在任何地方都没有看到错误):
updated, updated_by,
status, person,
profile, measurements)
VALUES
('0000-00-00 00:00:00', '2517',
'0000-00-00 00:00:00', '2517',
3, '2517',
'Team', 'Team');
INSERT INTO address
(created, created_by,
updated, updated_by,
status_id, person_id,
org_id,
street_1, street_2,
city, state,
postal, lng,
lat, country_code)
VALUES
('0000-00-00 00:00:00', '2517',