Home » U++ Library support » U++ SQL » SQL_mySQL reference problems
Re: SQL_mySQL reference problems [message #1933 is a reply to message #1926] |
Tue, 28 March 2006 02:31  |
aplatypus
Messages: 11 Registered: March 2006 Location: Newcastle, Australia
|
Promising Member |
|
|
main.cpp
if(!session.Connect( "mySelf", "passw", "mysql", "localhost" ))
{
}
Mirek
I am no MySql expert so a direct question: Do you propose to put above to
reference/SQL_MySql as it is more likely work out of box?
Hi Mirek
That's a good question ... The mySQL installation will have some username and password (or 'should') so the code will not work "out of the box" unless the correct username and password is used.
The "mysql" database name is always used.
I can suggest a couple of lines of comment saying to
- 'substitute your username and password in the code below.'
The same situation should apply to the other database examples. I strongly advise using a test username (not the root username) in an example programme.
Cheers,
Will
Kind regards,
aplatypus
________________________________________
[Updated on: Tue, 28 March 2006 02:32] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 27 02:41:08 CEST 2025
Total time taken to generate the page: 0.02964 seconds
|