简体   繁体   中英

DB script execution to create tables on MySQL DB fails in WSO2 APIM 3.1.0

I followed the steps given in WSO2 documentation ( https://apim.docs.wso2.com/en/latest/install-and-setup/setup/setting-up-databases/changing-default-databases/changing-to-mysql/ ) to change the default DB to MySQL.

I created the databases "wso2am_db" and "wso2shared_db" in MySQL and granted the user "wso2carbon" ALL access on both these DB's.

Now, while trying to execute the script as given in the documentation to create tables in wso2shared_db, I am getting a syntax error as shown below. Am I going wrong somewhere?

在此处输入图片说明

can you try this format to run the script? mysql -h "server-name" -u "your_username" -p "your_password" "database-name" < "filename.sql"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM