Thread overview
ddbc: MySQL/MariaDB: Access Violation
May 17, 2015
Suliman
May 18, 2015
Suliman
May 18, 2015
Vadim Lopatin
May 18, 2015
Suliman
May 20, 2015
Vadim Lopatin
May 20, 2015
TiberiuGal
May 17, 2015
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 18, 2015
still can't get it's work :(
May 18, 2015
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
>> 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 20, 2015
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
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