Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
aplatypus is currently offline  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

 
Read Message
Read Message
Read Message icon12.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Convert String to SqlVal[SOLVED]
Next Topic: SqlArray and checkboxes
Goto Forum:
  


Current Time: Mon Jun 10 12:57:36 CEST 2024

Total time taken to generate the page: 0.01900 seconds