Hi,

I have an application that creates a local sqlanywhere-database via process.start (dbinit) /dbstop ...

I installed mysql a few days ago and today I couldn't perform dbstop/dbinit from my code for some reason.

I uninstalled mysql, restarted, tried again, reinstalled sql anywhere, tried again, restarted and tried again... still no luck...

only after connecting to the local database with sybase central things worked again.

Very strange... wanted to hear if someone has ever seen this behaviour before?

asked 13 Oct '14, 08:12

vdcey's gravatar image

vdcey
654223039
accept rate: 33%

> I installed mysql

...that's at the root of many problems :)

(13 Oct '14, 13:42) Breck Carter

What exact error message do you get?

Do you run the DBINIT utilty with specifying a path?

If not, may it be the install/uninstall has removed the SQL Anywhere binaries from the PATH environment variable?

permanent link

answered 13 Oct '14, 08:20

Volker%20Barth's gravatar image

Volker Barth
31.3k312458674
accept rate: 32%

I get a message "File not found". there is no path in process.start ... I have to say, it seems fixed now.. Thanks on the tip of the "PATH environment variable", I was wondering on how process-start could find the path of dbinit without me giving it ... I see them there now, the last one in the list of the "Path environment variable" ... I guess the reïnstall did work afterall...

(13 Oct '14, 08:24) vdcey
Replies hidden

It's also common practise to add the version-specific SQL Anywhere environment variable to the call of the built-in utilities, such as "%SQLANY12%\bin32\dbinit" or "%SQLANY11%\bin64\dbinit", primarily to prevent the calling of a utilitiy from an undesired version if you happen to have several SA versions installed in parallel ... cf. that doc page.

(13 Oct '14, 09:06) Volker Barth
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×413
×56
×7

question asked: 13 Oct '14, 08:12

question was seen: 962 times

last updated: 13 Oct '14, 13:42