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