Results 1 to 2 of 2

Thread: mysql server connetion problem

  1. #1
    Join Date
    Oct 2010
    Posts
    5
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default mysql server connetion problem

    Hi!
    In my application, I need to connect to mysql server. I installed in my PC Mysql server and mysdl connector. I une this instruction to connect to my server:
    sql::mysql::MySQL_Driver *driver;
    sql::Connection *con;
    driver = sql::mysql::MySQL_Driver::get_mysql_driver_instanc e();
    con = driver->connect("tcp://127.0.0.1:3306", "", "");
    but I got 12 errors:
    sql n'est pas un nom de classe ni d'espace de nom
    MySQL_Driver identificateur non déclaré
    .....
    please help
    Great thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: mysql server connetion problem

    Hi,

    where exactly is the connection to Qt? But anyway as far as I understand the French error message you haven't defined the namespaces you use for the MySQL_Driver.

Similar Threads

  1. Problems generating Mysql Server 4.1 Plugin
    By grantbj74 in forum Installation and Deployment
    Replies: 1
    Last Post: 1st September 2009, 08:19
  2. How to get list of all databases on the MySQL server
    By jambrek in forum Qt Programming
    Replies: 4
    Last Post: 16th June 2009, 00:48
  3. Staying connected to a MySQL server
    By fnmblot in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 11:39
  4. escape input for mysql server
    By tpf80 in forum Qt Programming
    Replies: 8
    Last Post: 18th June 2007, 23:58
  5. Acces to a remote mysql server
    By Alienxs in forum Qt Programming
    Replies: 2
    Last Post: 19th August 2006, 04:10

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
  •  
Qt is a trademark of The Qt Company.