Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
May 17, 2015 ddbc: MySQL/MariaDB: Access Violation | ||||
---|---|---|---|---|
| ||||
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 Re: ddbc: MySQL/MariaDB: Access Violation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | still can't get it's work :( |
May 18, 2015 Re: ddbc: MySQL/MariaDB: Access Violation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | 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 Re: ddbc: MySQL/MariaDB: Access Violation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | >> 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 Re: ddbc: MySQL/MariaDB: Access Violation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | 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 Re: ddbc: MySQL/MariaDB: Access Violation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | 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 |
Copyright © 1999-2021 by the D Language Foundation