[Qt-interest] Deploying application issue

Robert Escott robert at binarylogic.co.za
Sat Oct 3 17:03:35 CEST 2009


I'm not sure if I understand what you are trying to do. I know you're trying to install your application on various other machines but you say that the program must be able to run without MySQL server installed. This could mean a couple of different things.


1) If you mean that you only want one MySQL server to be installed and all other machines must use this central database, then you need to make sure that the application and the driver files are installed on each of the other machines. From what I've seen in your emails, it looks like you've done this correctly. What you need to do now is to get them to connect to your central server. This turns out to be a networking issue, not a Qt one. You must make sure that you specify the database server's IP (or domain name) as the host name, the user name and the password, and then you must also make sure that you get the port correct. You must make sure that, on all the computers that must use your application as well as the server, that the port is not being blocked by a firewall. The default port for MySQL is 3306 but you can change this in the server settings.

2) If you mean that you are only allowed to install the MySQL server on one central computer but want to use your application on many others without connecting to the MySQL server, you can't. The libmysql.dll and qsqlmysql.dll files are only for communicating to a MySQL database. They do not do any data storage themselves.

Regards,

Robert
  ----- Original Message ----- 
  From: Yuvaraj R 
  To: Alessandro Portale 
  Cc: qt-interest at trolltech.com 
  Sent: Saturday, October 03, 2009 12:01 PM
  Subject: Re: [Qt-interest] Deploying application issue


  How do i solve this issue ? With out having mysql server except developer systems?

  Please Help me

  Thanks

  Yuvaraj R


  On Sat, Oct 3, 2009 at 3:24 PM, Alessandro Portale <Alessandro.Portale at trolltech.com> wrote:

    It could be that there is no mysqlserver on your localhost(10060), and
    therefore your application is unable to connect to a MySql database.

    But, there seem to be possibilities to set the host name and port for a
    database connection:
       http://doc.qt.nokia.com/latest/qsqldatabase.html

    Alessandro

    Yuvaraj R schrieb:

    >      > can't connect to mysqlserver on localhost(10060)
    >      > QMYSQL:Unable to connect..
    >      > I have libmysql.dll and qsqlmysql.dll in my application folder..
    >      > How do solve this issue?

    _______________________________________________
    Qt-interest mailing list
    Qt-interest at trolltech.com
    http://lists.trolltech.com/mailman/listinfo/qt-interest


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091003/c0a415b5/attachment.html 


More information about the Qt-interest-old mailing list