[fpc-pascal] connect to postgres db with fpc Mac OS X LION

2012-04-06 Thread César Espinoza
Hi all

I thank you in adavance for your support :-)


I can't connect to postgres db in foc /mac osx Liion

I get the message

 Connection to database template1 failed.

fe_sendauth: no password supplied


My postgres server is woryking ok.

Mac oS X Lion

-- 
---
César Espinoza Soto
-
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Insert into ... mysql

2009-06-28 Thread César Espinoza
Hi all  !!

I did! I can now connect and query to mysql

fpc 2.2.4, console, Macosx 10.5 leopard, Mac book Intel

But I can't (may be I dont know :-( ) insert data in a table

 connect mysql  ... ok
  select db ... ok
.
  new(consulta);
  consultastr:='INSERT INTO lugares (lugar) values (''Sala'')';
  strPCopy(consulta,consultastr);
  writeln ('Executing query : ',Consulta,'...');
if (mysql_query(sock,consulta)  0) then
  begin
  Writeln (stderr,'Query failed ');
  writeln (stderr,mysql_error(sock));
  Halt(1);
  end;
--

What is wrong?
Thanks in advance


-- 
---
César Espinoza Soto
-
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] fpc mysql 5.0 in mac osx 10.5 intel

2009-05-24 Thread César Espinoza
how can I use mysql 5.0 in mac OS X 10.5 Intel?

I did it in OSX 10.4 ppc, but not in 10.5 Intel
I get the message ld: library not found for -llmysqlclient
Thanks in advance

-- 
---
César Espinoza Soto
-
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal