Sorry, perhaps i was't very informative yesterday
here are things i did to produce the error =)
i drag 1 mysqlconnection (the blue dolphin) to my form
then at form_create i write :
MySQLConnection1.UserName:='root';
MySQLConnection1.Password:='root';
MySQLConnection1.HostName:='localhost';
MySQLConnection1.Open;
i get error message :
project raised exception class 'EDatabaseError' with message:
MySQLConnection1 : Server connect failed
is there any mistakes in my code?
It compiles but that error message shows when running
and after that
lazarus shows a window titled "file not found"
the file "db.pp" was not found
do you want to locate it yourself ?"
Then i change the "compiler option" at project menu
adding path "Other Unit Files" to lazarus\fpcsrc\fcl\db
and lazarus\fpcsrc\fcl\win32
it gives me the same message, but now window db.pp is open and give me this line :
Raise EDatabaseError.CreateFmt('%s : %s',[Comp.Name,Msg]);
with lots of lines in message window looks like :
db.pp(8,44) Hint: File c:\Lazarus\fpcsrc\fcl\db\something.inc is newer than Release PPU file c:\lazarus\pp\units\i386-win32\fcl\db.ppu
Any idea what happens here and how to handle this?
by the way,
i get this error message after I copy the libmysql.dll to
windows/system32 directory
if i copy that file to lazarus directory, it can't find the dll
I change my MySQL version to 5.0 (because i read your reply, it says sqldb can connect to ver 5.0),
yet still use the lib from MySQL 4.0 (since it gives error message if i use the lib from ver 5.0)