digitalmars.D.learn - ddbc: MySQL/MariaDB: Access Violation
- Suliman (11/11) May 17 2015 I am using this driver for access to MariaDB
- Suliman (1/1) May 18 2015 still can't get it's work :(
- Vadim Lopatin (2/13) May 18 2015 Do you see some stack trace on crash?
- Suliman (3/8) May 18 2015 No. I checked on 2 PC and it's not look like my issue, because
- Vadim Lopatin (3/12) May 20 2015 Try running under debugger.
- TiberiuGal (11/20) May 20 2015 Hi,
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
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
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.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
On Monday, 18 May 2015 at 18:54:20 UTC, Suliman wrote:Try running under debugger. See where it's crashed.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.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 20 2015
On Monday, 18 May 2015 at 18:54:20 UTC, Suliman wrote: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/906No. 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.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 20 2015