dbTalk Databases Forums  

simple(simple1.cc) problem

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss simple(simple1.cc) problem in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kaplenko Vitalij
 
Posts: n/a

Default simple(simple1.cc) problem - 03-02-2005 , 01:37 PM






Hi everyone,

My environment:
- Linux 2.6.7-1.7asp #1 Thu Jul 15 17:36:07 YEKST 2004 i686 i386 GNU/Linux
- gcc version 3.3.2 20031022 (ASPLinux 3.3.2-1)
- server version: 4.1.9-standard
- mysql Ver 14.7 Distrib 4.1.9, for pc-linux-gnu (i686)
- mysql++-1.7.21

Can't connect to local MySQL server through a sample program.
A sample program "simple" I get by:

$ g++ -I/usr/include/mysql -I/usr/include/mysql++ -o simple simple1.cc util.cc -lmysqlpp

If simple1.cc is without any change I get error:

Error: Access denied for user ''@'localhost' to database 'mysql_cpp_data'
Segmentation fault

If I change only one row in simple1.cc:
// mysqlpp::Connection con(mysqlpp::use_exceptions);
mysqlpp::Connection con("bk","localhost","root","mypasswd");
I get error:

Error: Client does not support authentication protocol requested by server; consider upgrading MySQL client
Segmentation fault


Help me, pls.

Many thanks

Vitalij


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: simple(simple1.cc) problem - 03-03-2005 , 12:11 AM






Kaplenko Vitalij wrote:

Quote:
- mysql++-1.7.21
Why are you using an old version of MySQL++? Get the current version
here: http://tangentsoft.net/mysql++/

Quote:
If I change only one row in simple1.cc:
// mysqlpp::Connection con(mysqlpp::use_exceptions);
mysqlpp::Connection con("bk","localhost","root","mypasswd");
You don't need to make this change. The simple1 program takes command
line arguments, as do most of the examples. Read examples/README.

Quote:
Error: Client does not support authentication protocol requested by
server; consider upgrading MySQL client
Segmentation fault
I imagine the error means just what it says: your mysqlclient library is
older than your MySQL version.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.