mYSQL sqldb and cant assign database at mysq howto lazarus / 13-General ---------------------------------------------------------------------- tommassino · 2007-01-03 12:01 Hi am realy new to lazarus and i tried the tutorial but when i run the program i get error after putting the host,user and passwd "Cant assign database " but it writes "connected to server" and please could write me the simplest method of connecting to the mysql with getting data(result) to dbgrid thank you in advance ---------------------------------------------------------------------- matthijs · 2007-01-03 16:13 I have never seen the code to fail Post your original code here and we can have a look at where you go wrong. ---------------------------------------------------------------------- matthijs · 2007-01-04 07:43 After some more thinking. I came up with: It looks like the database properties of the SQLQuery or the SQLTransaction is not set. Could you check that? These should point to the mySQLConnection. ---------------------------------------------------------------------- tommassino · 2007-01-05 17:39 Quote from: "matthijs"After some more thinking. I came up with: It looks like the database properties of the SQLQuery or the SQLTransaction is not set. Could you check that? These should point to the mySQLConnection. yes  i was playing with it and its working now thank you