On May 24, 2008, at 1:21 PM, FreezeBurnX wrote:
This function is part of the examples in MySQL++ v2.x, not part of the
MySQL++ library proper. It exists only for the examples; it's not
something to be reused. Instead, create your connection with the
Connection constructor, or with Connection::connect().
Or, better, switch to MySQL++ 3.x. Among its many improvements are
examples that don't hide this aspect of MySQL++ use within unreusable
functions. Look through the first parts of this section of the v3
user manual to see the difference:
> I've been searching about this for
> more than 4 hours.
A mailing list search for "connect_to_db" pulls up 48 posts, some of
which certainly contain this answer because it's been asked and
answered several times before. I believe it's covered in the Tutorial
chapter of the v2 user manual, too.