[+soci-users]

Hi Michael,

Can you tell me what connect string you are using?  This error means soci
couldn't parse the connect string.

Thanks,

Aleksander


On Sun, Nov 25, 2012 at 3:57 PM, Michael Liguori <[email protected]>wrote:

> Hello Pawel,
>
> I read that you were in charge of the mysql development of SOCI.
> Can you help me?
>
> I've also posted this on Github.
> https://github.com/SOCI/soci/issues/20
>
> Regards,
>
> Michael V. Liguori
>
> ---------- Forwarded message ----------
> From: Michael Liguori <[email protected]>
> Date: Sun, Nov 25, 2012 at 6:20 PM
> Subject: SOCI session
> To: [email protected]
>
>
> Hello All,
>
> I hope that you can help me.  I've installed SOCI on a 64-bit fedora 17
> using a g++ 4.7 compiler.
>
> Everything has compiled and linked.  Unfortunately I'm getting a runtime
> error.  I've created the mysql DB.  I'm not sure what is wrong.  Can you
> help me? I see that the forum is closed.
>
> Output:
> login=service=my_db user=root password=password
>
> Error
> terminate called after throwing an instance of 'soci::soci_error'
>   what():  Malformed connection string.
>
> Program received signal SIGABRT, Aborted.
> [Switching to Thread 0x7ffff746d700 (LWP 16784)]
> 0x0000003c25635925 in raise () from /lib64/libc.so.6
> Missing separate debuginfos, use: debuginfo-install
> glibc-2.15-57.fc17.x86_64 keyutils-libs-1.5.5-2.fc17.x86_64
> krb5-libs-1.10.2-6.fc17.x86_64 libcom_err-1.42.3-3.fc17.x86_64
> libgcc-4.7.2-2.fc17.x86_64 libselinux-2.1.10-3.fc17.x86_64
> libstdc++-4.7.2-2.fc17.x86_64 mysql-libs-5.5.28-1.fc17.x86_64
> openssl-1.0.0j-2.fc17.x86_64 soci-3.1.0-3.fc17.x86_64
> zlib-1.2.5-7.fc17.x86_64
> (gdb) up
> #1  0x0000003c256370d8 in abort () from /lib64/libc.so.6
> (gdb) up
> #2  0x0000003c31260dad in __gnu_cxx::__verbose_terminate_handler() ()
>    from /lib64/libstdc++.so.6
> (gdb) up
> #3  0x0000003c3125eea6 in ?? () from /lib64/libstdc++.so.6
> (gdb) up
> #4  0x0000003c3125eed3 in std::terminate() () from /lib64/libstdc++.so.6
> (gdb) up
> #5  0x0000003c3125f0fe in __cxa_throw () from /lib64/libstdc++.so.6
> (gdb) up
> #6  0x00007ffff7b882af in (anonymous
> namespace)::parse_connect_string(std::string const&, std::string*, bool*,
> std::string*, bool*, std::string*, bool*, std::string*, bool*,
> std::string*, bool*, int*, bool*) () from /lib64/libsoci_mysql.so.3.1
> (gdb) up
> #7  0x00007ffff7b8849c in
> soci::mysql_session_backend::mysql_session_backend(std::string const&) ()
> from /lib64/libsoci_mysql.so.3.1
> (gdb) up
> #8  0x00007ffff7b97aeb in
> soci::mysql_backend_factory::make_session(std::string const&) const () from
> /lib64/libsoci_mysql.so.3.1
> (gdb) up
> #9  0x00007ffff7ddbeb6 in soci::session::session(soci::backend_factory
> const&, std::string const&) () from /lib64/libsoci_core.so.3.1
> (gdb) up
> #10 0x00000000004203ab in txInsertSQL (this=0x698d30, rsIndex=0, msg=
>     "010418:16:5123800") at main.cpp:458
> 458       session sql1(mysql, login);
> (gdb)
>
>
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to