List:MySQL++« Previous MessageNext Message »
From:Kaplenko Vitalij Date:March 2 2005 7:29pm
Subject:simple( problem
View as plain text  
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 -lmysqlpp

If 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
//              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


simple( problemKaplenko Vitalij2 Mar
  • Re: simple( problemWarren Young3 Mar