Bug #58127 Examples missing in Connector\C++
Submitted: 10 Nov 2010 23:16 Modified: 11 Mar 2013 19:52
Reporter: nasras silkius Email Updates:
Status: Verified Impact on me:
None 
Category:Connector / C++ Severity:S3 (Non-critical)
Version:Connector/C++ 1.1.0 OS:Windows (xp)
Assigned to: Assigned Account CPU Architecture:Any
Tags: Package I had downloaded

[10 Nov 2010 23:16] nasras silkius
Description:
In manual
22.5.5. MySQL Connector/C++ Getting Started: Usage Examples
where is a line that stats :
"Please check the examples/ directory of your MySQL Connector/C++ installation for complete programs.
The examples in the examples/ directory include:
*
examples/connect.cpp: ......."
But i can't find example directory nor in downloaded nor in installation directory's of connector C++.
Can some one direct me to this directory? Please! :(
i even Googled for separate download but no luck.
Please post me an link or something
You cam email me silkius123@yahoo.com

How to repeat:
Just try to find this directory in Connector/C++ 1.1.0 content.
[11 Nov 2010 7:54] Valeriy Kravchuk
What exact binaries package you had downloaded? I do see examples directory in source code, so it can be some packaging bug.
[11 Nov 2010 17:46] nasras silkius
I had downloaded this package mysql-connector-c++-1.1.0-win32.msi
[12 Nov 2010 18:12] Valeriy Kravchuk
Looks like examples subdirectory is available only in source code tar.gz:

macbook-pro:5.0 openxs$ tar -tzvf ~/Downloads/mysql-connector-c++-1.1.0.tar.gz | grep examples
-rw-r--r-- cteam/staff    7890 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/exceptions.cpp
-rw-r--r-- cteam/staff     557 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/README
-rw-r--r-- cteam/staff    5882 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/resultset_binary.cpp
-rwxr-xr-x cteam/staff    7649 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/CMakeLists.txt
-rw-r--r-- cteam/staff   15866 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/cpp_trace_analyzer.php
-rw-r--r-- cteam/staff   12503 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/resultset_meta.cpp
-rw-r--r-- cteam/staff    9049 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/resultset_types.cpp
-rw-r--r-- cteam/staff    8439 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/connect.cpp
-rwxr-xr-x cteam/staff    4243 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/standalone_example.cpp
-rw-r--r-- cteam/staff    3021 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/standalone_example_docs2.cpp
-rw-r--r-- cteam/staff    1746 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/examples.h
-rw-r--r-- cteam/staff   11085 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/connection_meta_schemaobj.cpp
-rwxr-xr-x cteam/staff   12342 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/dynamic_load.cpp
-rw-r--r-- cteam/staff    6881 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/pthreads.cpp
-rw-r--r-- cteam/staff    2711 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/standalone_example_docs1.cpp
-rw-r--r-- cteam/staff   10777 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/resultset.cpp
-rw-r--r-- cteam/staff    5284 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/statement.cpp
-rw-r--r-- cteam/staff    6132 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/debug_output.cpp
-rw-r--r-- cteam/staff   12402 2010-09-10 12:47:47 mysql-connector-c++-1.1.0/examples/prepared_statement.cpp

If this is intended it would be nice to explicitly explain this in the manual.
[12 Nov 2010 20:00] nasras silkius
thanks a lot, now i can study on my own. and yes it would be nice if directions of example directory were more obvious in manual.
[17 Nov 2010 15:33] Tony Bedford
Is the intention that the examples directory should only be available in the source distribution? Thinking of other products, the examples directory should be available with the binary install shouldn't it? Please clarify so I can update the documentation accordingly. Thanks.
[22 Nov 2010 19:53] nasras silkius
Yes it should
[25 Mar 2011 20:12] Sylvia Si
I downloaded the binary version for Linux. There is no Examples either. So the OS should not only be Microsoft Windows.

OS: Ubuntu 10.04
Binary downloaded: mysql-connector-c++-1.1.0-glibc2.3-x86-32bit.tar.gz

Please add examples directory to linux binary version as well.

Thanks
[10 Jul 2013 16:04] Grayson Moses
I still don't understand how I can open the examples directory. Why has this not been fixed yet?
[11 Jul 2013 22:04] MySQL Verification Team
http://bugs.mysql.com/bug.php?id=69716 marked as duplicate of this one.
[31 Aug 2017 13:05] Chiranjeevi Battula
http://bugs.mysql.com/bug.php?id=87629  marked as duplicate of this one.