digitalmars.D.learn - Mysql-native with LAMPP
- Geert (10/10) Sep 11 2016 Hi all!
- wobbles (2/12) Sep 12 2016 You're sure mysql is running?
- Geert (3/19) Sep 12 2016 Yes, it's running. I started it with LAMPP, and i can access to
- Daniel Kozak via Digitalmars-d-learn (3/24) Sep 12 2016 And are you sure it is using tcp4 socket on port 3306? You can use
- Geert (5/7) Sep 12 2016 I get nothing with TCP option, only when i run this command:
- Martin Krejcirik (2/5) Sep 12 2016 Mysql defaults to unix socket, you need to add
- Geert (23/29) Sep 12 2016 That didn't work, but thanks anyway.
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
Sep 11 2016
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 refusedYou're sure mysql is running?
Sep 12 2016
On Monday, 12 September 2016 at 09:59:30 UTC, wobbles wrote:On Monday, 12 September 2016 at 05:31:46 UTC, Geert wrote:Yes, it's running. I started it with LAMPP, and i can access to the database through phpMyAdmin.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 refusedYou're sure mysql is running?
Sep 12 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:Yes, it's running. I started it with LAMPP, and i can access to the database through phpMyAdmin.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 refusedYou're sure mysql is running?
Sep 12 2016
On Monday, 12 September 2016 at 14:00:18 UTC, Daniel Kozak wrote:And are you sure it is using tcp4 socket on port 3306? You can use netstat -tlnp to see if is running on tcpv4 3306I get nothing with TCP option, only when i run this command: unix 2 [ ACC ] STREAM LISTENING 239449 6293/mysqld /opt/lampp/var/mysql/mysql.sock
Sep 12 2016
unix 2 [ ACC ] STREAM LISTENING 239449 6293/mysqld /opt/lampp/var/mysql/mysql.sockMysql defaults to unix socket, you need to add bind-address=127.0.0.1 to my.cnf [mysqld] section.
Sep 12 2016
On Monday, 12 September 2016 at 15:02:50 UTC, Martin Krejcirik wrote:That didn't work, but thanks anyway. Now is working. I had to comment "skip-networking": [mysqld] user = mysql port=3306 socket = /opt/lampp/var/mysql/mysql.sock skip-external-locking #bind-address=127.0.0.1 enhancement, host. named pipes. Windows #commented in by xampp security #skip-networkingunix 2 [ ACC ] STREAM LISTENING 239449 6293/mysqld /opt/lampp/var/mysql/mysql.sockMysql defaults to unix socket, you need to add bind-address=127.0.0.1 to my.cnf [mysqld] section.
Sep 12 2016