| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Warren Young | Date: | March 26 2008 12:50am |
| Subject: | Re: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con; | ||
| View as plain text | |||
Alex Boyer wrote: > > All four variables are defined above it: > const char *db = "xxx", *server = "xx.xx.xx.xx", *user = "fakeuser", > *pass = "fakepass"; Try reverting your changes to the example and just pass the connection parameters on the command line as directed by README-examples.txt. You can do this within the IDE if that makes you happy. Right-click the project you want to run, go to Properties, then Debug, and put something like this in the Command Arguments field: -s xx.xx.xx.xx -u fakeuser -p fakepass Then run the program. Be sure to run resetdb before any of the others, with the same command line parameters. Again, README-examples.txt covers this requirement. I realize you're eager to connect to your existing database, but go through the examples first. If they work, you have to believe MySQL++ can be made to work with other databases, too. :)
