www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - ddbc: MySQL/MariaDB: Access Violation

reply "Suliman" <evermind live.ru> writes:
I am using this driver for access to MariaDB 
http://code.dlang.org/packages/ddbc
The problem that it's work fine when it's used from desktop App, 
but when I try to run it's from vibed app i get "Access 
Violation".

In my.ini I added string:

bind-address = 127.0.0.1

Also I run next command:

  GRANT ALL PRIVILEGES ON *.* TO 'root' '%' IDENTIFIED BY 
'password' WITH GRANT OPTION;

p.s. this command return my: "Affected rows: 0 "
May 17 2015
next sibling parent "Suliman" <evermind live.ru> writes:
still can't get it's work :(
May 18 2015
prev sibling parent reply "Vadim Lopatin" <coolreader.org gmail.com> writes:
On Sunday, 17 May 2015 at 10:24:43 UTC, Suliman wrote:
 I am using this driver for access to MariaDB 
 http://code.dlang.org/packages/ddbc
 The problem that it's work fine when it's used from desktop 
 App, but when I try to run it's from vibed app i get "Access 
 Violation".

 In my.ini I added string:

 bind-address = 127.0.0.1

 Also I run next command:

  GRANT ALL PRIVILEGES ON *.* TO 'root' '%' IDENTIFIED BY 
 'password' WITH GRANT OPTION;

 p.s. this command return my: "Affected rows: 0 "
Do you see some stack trace on crash?
May 18 2015
parent reply "Suliman" <evermind live.ru> writes:
 GRANT ALL PRIVILEGES ON *.* TO 'root' '%' IDENTIFIED BY 
 'password' WITH GRANT OPTION;

 p.s. this command return my: "Affected rows: 0 "
Do you see some stack trace on crash?
No. I checked on 2 PC and it's not look like my issue, because result is totally same. If I change void main() to vibed's static this() I get this error.
May 18 2015
next sibling parent "Vadim Lopatin" <coolreader.org gmail.com> writes:
On Monday, 18 May 2015 at 18:54:20 UTC, Suliman wrote:
 GRANT ALL PRIVILEGES ON *.* TO 'root' '%' IDENTIFIED BY 
 'password' WITH GRANT OPTION;

 p.s. this command return my: "Affected rows: 0 "
Do you see some stack trace on crash?
No. I checked on 2 PC and it's not look like my issue, because result is totally same. If I change void main() to vibed's static this() I get this error.
Try running under debugger. See where it's crashed.
May 20 2015
prev sibling parent "TiberiuGal" <galtiberiu gmail.com> writes:
On Monday, 18 May 2015 at 18:54:20 UTC, Suliman wrote:
 GRANT ALL PRIVILEGES ON *.* TO 'root' '%' IDENTIFIED BY 
 'password' WITH GRANT OPTION;

 p.s. this command return my: "Affected rows: 0 "
Do you see some stack trace on crash?
No. I checked on 2 PC and it's not look like my issue, because result is totally same. If I change void main() to vibed's static this() I get this error.
Hi, There's are several related problems with vibe's "static this"; some needed variables are not initialized at the time "static this" is executed, that's why you get access violation ( it has nothing to do with permissions ). The solution is to use main(). here are some reported issues related to the problem you have described. https://github.com/mysql-d/mysql-native/issues/53 https://github.com/rejectedsoftware/vibe.d/issues/906
May 20 2015