Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2006

    Thumbs up Unanswered: MySQL connection

    I have installed MySQL in my machine which is in LINUX .
    I am able to connect to MySQL from command line in my machine .

    When i tried to connect MySQL from any other applications like DataStudio,DBVisualizer etc it is throwing the following error
    MESSAGE: Connection refused

    PHP Code:
    STACKTRACE: refused
            at com
    at com.mysql.jdbc.MysqlIO.<init>(
    at com.mysql.jdbc.Connection.createNewIO(
    at com.mysql.jdbc.Connection.<init>(
    at com.mysql.jdbc.NonRegisteringDriver.connect(
    at java.sql.DriverManager.getConnection(
    at java.sql.DriverManager.getConnection(
    at NMFL.zk.e(Unknown Source
    I have disabled the firewall in my machine by stopping the IPTABLES using command
    /etc/init.d/iptables stop

    Kindly suggest me what to do

  2. #2
    Join Date
    Oct 2006
    Some more Info..

    When i telnet to the MySQL (telnet localhost 3306)port the below error is thrown
    telnet: connect to address Connection refused
    telnet: Unable to connect to remote host: Connection refused

  3. #3
    Join Date
    May 2007

    Please check configuration file My.cnf, if you have skip_networking in it.
    Also check for current user privileges or create new user with all privileges.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts