我正在尝试将csv文件导入Wordpress数据库表中。
这是我在SSH命令行中输入的内容(删除了我的个人详细信息):
const bRetSpec: boolean = await this.specBalanceRequest(request);
const bRetPtm: boolean = await this.ptmBalanceRequest(request);
if (!bRetPtm && !bRetSpec) {
return Promise.reject(new Error("Processing failed"));
}
try {
const __data: IResponse = await makeRequest(this._request);
const resp1 = await another promise to resolve _data[0];
const resp2 = await another promise to resolve _data[1];
return await Promise.all([resp1, resp2]);
} catch (err) {
return Promise.reject(err);
}
private async specBalanceRequest(@Body() request: ExpressRequest): Promise < boolean > {
const specUrl = "/payments";
const reqObject = await RequestResponseHandler.processRequest(request.body, specialtyUrl);
this._request.push(reqObject);
return Promise.resolve(true);
}
private async ptmBalanceRequest(@Body() request: any): Promise < boolean > {
const careURL = "/Order";
const reqObject = await RequestResponseHandler.processRequest(request.body, careURL);
this._request.push(reqObject);
return Promise.resolve(true);
}
这是我得到的输出:
mysqlimport --ignore-lines=1 --fields-terminated-by=, --fields-enclosed-by="
--fields-escaped-by=" --lines-terminated-by=\n\r --verbose --local -
uUSERNAME -pPASSWORD DATABASENAME wp_posts.csv
有人知道如何编辑原始命令以导入CSV文件吗?