Warren Young napsal(a):
> cgifalco wrote:
>
>>> I have mysql-3.23.58-9 on my Fedora Core 2 and I am not able to find
>>> appropriate
>>> MySQL-shared package.
>>
>
> The intention is that you download the MySQL RPMs from mysql.com, or
> that you rebuild the library from source.
>
>> In the meantime I installed MySQL-shared-3.23.58-1.i38 6.rpm and all
>> is OK.
>
>
> You've tested the examples successfully? I'm not sure the binary RPM
> will work against a version 3.23 library. It is built against 4.0.x.
> I should probably make that dependency tighter, rather than looser.
>
> Any comments from the lurkers?
>
Today I tried to test these programs:
custom1.cc, custom2.cc, custom3.cc, custom4.cc, simple1.cc, resetdb.cc
work fine.
dbinfo.cc
issues this output
[root@localhost mysqlexamples]# ./dbinfo
3.23.58
Query: how databases
Records Found: 6
Databases
dbstore
enderunix
mysql
mysql_cpp_data
nuke
test
Error: Query was empty 1065
fieldinf1.cc
issues this output, so I think it works also fine
[root@localhost mysqlexamples]# ./fieldinf1
Query: elect * from stock
Records Found: 5
Query Info:
0 item CHAR NOT NULL Ss
1 num BIGINT NULL N7mysqlpp4NullIxNS_10NullisNullEEE
2 weight DOUBLE NULL N7mysqlpp4NullIdNS_10NullisNullEEE
3 price DOUBLE NULL N7mysqlpp4NullIdNS_10NullisNullEEE
4 sdate DATE NULL N7mysqlpp4NullINS_4DateENS_10NullisNullEEE
Field 'item' is of an SQL type which most closely resembles
the C++ string type
Field 'num' base type is of an SQL type which most closely
resembles the C++ long long int type
load_file.cc
I did't test properly, the issue was
[root@localhost mysqlexamples]# ./load_file
Usage : load_file full_file_path
updel.cc
I did't test properly too, the issue was
[root@localhost mysqlexamples]# ./updel
Error: Unknown database 'telcent' 1049
util.cc
is linked to some of them and I hope it works also fine.
Regards
cgifalcon