I am able to open phpmyadmin with both localhost as well as my IP4 address:
All the above Works
But when i try to apply IP4 address to this
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'me',
password : 'secret'
});
Reference : https://github.com/felixge/node-mysql/#introduction
I get error as :
{ [Error: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
fatal: true }
What am i doing wrong?
Ports which are used are:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:28017 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5939 0.0.0.0:* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
tcp6 0 0 :::80 :::* LISTEN
I tried with netstat -nlt | grep 3306
But i get blank output instead of :
mysqld 1046 mysql 10u IPv4 5203 0t0 TCP xxx.xxx.xxx.xxx:3306 (LISTEN)
When tried with this post: Remote Connections Mysql Ubuntu
But when tried with : netstat -tulpn | grep :3306
I get output as:
tcp 0 0 192.168.3.72:3306 0.0.0.0:* LISTEN -
Can anybody please assist with this...