Mysql-native with LAMPP
Daniel Kozak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Sep 12 07:00:18 PDT 2016
And are you sure it is using tcp4 socket on port 3306? You can use
netstat -tlnp to see if is running on tcpv4 3306
Dne 12.9.2016 v 15:25 Geert via Digitalmars-d-learn napsal(a):
> On Monday, 12 September 2016 at 09:59:30 UTC, wobbles wrote:
>> On Monday, 12 September 2016 at 05:31:46 UTC, Geert wrote:
>>> Hi all!
>>>
>>> I tried the client driver for MySQL/MariaDB "mysql-native".
>>>
>>> https://github.com/mysql-d/mysql-native
>>>
>>> Everything works well with an individually installed version of
>>> MySql. But I would like to know if there is a way to make D
>>> programms work with LAMPP/XAMPP. I'm getting this error message
>>> while executing the program:
>>>
>>> host=localhost;port=3306;user=root;pwd=MY_testPa550;db=testdb
>>> Failed:
>>> std.socket.SocketOSException@/build/ldc/src/ldc/runtime/phobos/std/socket.d(2822):
>>> Unable to connect socket: Connection refused
>>
>> You're sure mysql is running?
>
> Yes, it's running. I started it with LAMPP, and i can access to the
> database through phpMyAdmin.
More information about the Digitalmars-d-learn
mailing list