我在为worklight开发的应用程序创建架构时遇到问题。 USE WRKLGHT命令出错:
CREATE DATABASE WRKLGHT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL privileges ON WRKLGHT.* TO 'worklight'@'Worklight-host' IDENTIFIED BY 'worklight';
GRANT ALL privileges ON WRKLGHT.* TO 'worklight'@'localhost' IDENTIFIED BY 'worklight';
刷新权限;
CREATE DATABASE WLREPORT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL privileges ON WLREPORT.* TO 'worklight'@'Worklight-host'IDENTIFIED BY 'worklight';
GRANT ALL privileges ON WLREPORT.* TO 'worklight'@'localhost' IDENTIFIED BY 'worklight';
Flush privileges;
使用WRKLGHT;
SOURCE <worklight_install_dir>/WorklightServer/databases/create-worklight-mysql.sql;
使用WLREPORT;
SOURCE <worklight_install_dir>/WorklightServer/databases/create-worklightreports-mysql.sql;
给予什么? 报告了以下错误:
ERROR:
Failed to open file '<worklight_install_dir>\WorklightServer\databases\create-wo
rklight-mysql.sql', error: 22
答案 0 :(得分:1)
您需要替换&lt; worklight_install_dir&gt;通过Worklight的安装路径, 例如/ opt / IBM / Worklight(如果它是您安装它的位置)(在Windows上,类似于c:\ Program Files \ IBM \ Worklight)