My wso2registry was pointing to wso2carbon datasource which was configured with h2 db. Other db were configured with mysql. I was getting errors that there are some locks on h2 db and my wso2 server was not starting up .I changed the wso2carbon to point to mysql regdb endpoint. The server started after that. Now the api created earlier in the publisher console are not visible. The api are also not showing up in the store even though the store says that it is listing some 18 apis. If i create the apis again I get a duplicate error. I tried to point the wso2carbon datasource back to the same h2 db but still the publisher and store apis do not come up. Is there a way I can clean up the apis so that I can recreate them with regdb configured with mysql db
To see your APIs with H2 database again, reindex the registry.
Change the <lastAccessTimeLocation>
element in the <APIM_HOME>/repository/conf/registry.xml
file in the Store/Publisher node. For example, change the /_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime
registry path to /_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime_1
.
Restart the server. After a few seconds, it should re-index the APIs.