Op maandag 01-12-2008 om 16:45 uur [tijdzone +1030], schreef Eric March: > Tom Lisjac wrote: > > Hi Eric, > > > > > > > I have followed source advice but can't connect. > > > Can anyone help and/or is there a manual? > > > > > > > > > > Error: invalid compiler: file > > > There must be something in my source looking for a compiler in the wrong > > > place :-( > > > > > > > The errors you're getting in the tutorial example are from some hard > > coded paths in the database_try.lpi project file. It's not a problem > > with your system. Since Lazarus has changed since the example was > > written, it might be easier to start your project with the sqldb > > components. > > > > To install sqldb, go to "Package->Open package file", select and > > install the lazarus/components/sqldb/sqldblaz.lpk package. After > > Lazarus recompiles, you should see a "SQLdb" tab. Drop a Mysql50 > > (TMySQL50Connection) on a new form. In the object inspector for this > > component, enter the hostname (probably localhost), a database (test > > or mysql as an example or a database you've already created) and the > > username and password for the database or the "root" you set when > > installing mysql. At this point, establishing a successful mysql > > connection is being able to set the Connected property to true without > > an error. > > > > > Thanks heaps for the help. I Get this far and changing "Connected" to > "True" > gives the error > "Cannot load MySQL library "libmysqlclient.so. Please check your > installation."
Maybe we have to improve that error-message even further. You have to install MySQL to be able to work with it. So install the mysql-client before you can use it. On linux it could be that you also have to install the '-dev' package. Joost _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
