Results 1 to 6 of 6

Thread: Can't connect to MySQL server on '192.xxx.x.x' (111) QMYSQL: Unable to connect

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Can't connect to MySQL server on '192.xxx.x.x' (111) QMYSQL: Unable to connect

    You change the values with a text editor after stopping the MySql server. Find the section labelled "[mysqld]", comment out the skip-networking line if present, change the bind-address line to:
    Qt Code:
    1. [mysqld]
    2. ...
    3.  
    4. # Commented out
    5. # skip-networking
    6.  
    7. # Wide open, listens on all interfaces
    8. bind-address 0.0.0.0
    9. # Or more restricted, listen only on specified interface
    10. bind-address 192.168.1.1
    To copy to clipboard, switch view to plain text mode 
    Beyond that I suggest you go back to MySql sources. This has nothing to do with Qt.

  2. The following user says thank you to ChrisW67 for this useful post:

    shawshank (30th January 2014)

Similar Threads

  1. Replies: 15
    Last Post: 11th March 2014, 01:54
  2. Connect to the MYSQL server successful but can't see any data
    By stereoMatching in forum Qt Programming
    Replies: 1
    Last Post: 9th January 2014, 04:06
  3. Replies: 2
    Last Post: 16th April 2012, 13:42
  4. Replies: 1
    Last Post: 7th April 2012, 06:05
  5. Mysql unknown database, QMYSQL unable to connect
    By lixo1 in forum Qt Programming
    Replies: 3
    Last Post: 14th July 2010, 21:39

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.