![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Does anyone know know where I can find protocol information on how to connect to a MySQL database directly using UNIX sockets (without using libmysqlclient.so)? I haven't had any luck googling it. |
#3
| |||
| |||
|
|
Does anyone know know where I can find protocol information on how to connect to a MySQL database directly using UNIX sockets (without using libmysqlclient.so)? I haven't had any luck googling it. |
#4
| |||
| |||
|
|
Does anyone know know where I can find protocol information on how to connect to a MySQL database directly using UNIX sockets |
|
(without using libmysqlclient.so)? |
#5
| |||
| |||
|
|
Rob wrote: Does anyone know know where I can find protocol information on how to connect to a MySQL database directly using UNIX sockets (without using libmysqlclient.so)? I haven't had any luck googling it. Why not just grab the sources and see.. http://dev.mysql.com/downloads/mysql/5.5.html |
#6
| |||
| |||
|
|
Rob <junkmail3 (AT) lavabit (DOT) com> wrote: Does anyone know know where I can find protocol information on how to connect to a MySQL database directly using UNIX sockets Here: http://forge.mysql.com/wiki/MySQL_In...erver_Protocol (without using libmysqlclient.so)? But why? Are you aware of http://dev.mysql.com/doc/refman/5.1/en/connector-c.html ? XL |
#7
| |||
| |||
|
|
Axel Schwenke wrote: Rob <junkmail3 (AT) lavabit (DOT) com> wrote: Does anyone know know where I can find protocol information on how to connect to a MySQL database directly using UNIX sockets Here: http://forge.mysql.com/wiki/MySQL_In...erver_Protocol (without using libmysqlclient.so)? But why? Are you aware of http://dev.mysql.com/doc/refman/5.1/en/connector-c.html ? XL Thanks - that looks like what I was looking for. It looks to be a bigger job than I thought though: I really wasn't thinking about authentication. What I am trying to do is add some database connectivity to some of my CGI programs. The problem is that they do not use the C standard library (instead using the Linux API directly) and I'm not sure if pulling in a library will work (anybody know? The next step probably just have to test and see if it works.) properly. I think the approach I am going to take for now is to write a daemon that uses libmysqlclient.so - I needed an excuse to learn C a little better anyway. ;-) That way I can probably also cache some data and would give me a database "abstraction layer" as I would also like to be able to connect to a MS SQL Server database at some point in the future too. If anyone knows a better approach, I'm open to suggestions. This is the first time I've tried to write a database application, so I'm basically learning from scratch. Thanks, Rob |
#8
| |||
| |||
|
|
Axel Schwenke wrote: Rob <junkmail3 (AT) lavabit (DOT) com> wrote: Does anyone know know where I can find protocol information on how to connect to a MySQL database directly using UNIX sockets Here: http://forge.mysql.com/wiki/MySQL_In...erver_Protocol (without using libmysqlclient.so)? But why? Are you aware of http://dev.mysql.com/doc/refman/5.1/en/connector-c.html ? XL Thanks - that looks like what I was looking for. It looks to be a bigger job than I thought though: I really wasn't thinking about authentication. What I am trying to do is add some database connectivity to some of my CGI programs. The problem is that they do not use the C standard library (instead using the Linux API directly) and I'm not sure if pulling in a library will work (anybody know? The next step probably just have to test and see if it works.) properly. I think the approach I am going to take for now is to write a daemon that uses libmysqlclient.so - I needed an excuse to learn C a little better anyway. ;-) That way I can probably also cache some data and would give me a database "abstraction layer" as I would also like to be able to connect to a MS SQL Server database at some point in the future too. If anyone knows a better approach, I'm open to suggestions. This is the first time I've tried to write a database application, so I'm basically learning from scratch. |
|
Thanks, Rob |
#9
| ||||
| ||||
|
|
Axel Schwenke wrote: Here: http://forge.mysql.com/wiki/MySQL_In...erver_Protocol (without using libmysqlclient.so)? But why? Thanks - that looks like what I was looking for. It looks to be a bigger job than I thought though: I really wasn't thinking about authentication. |
|
What I am trying to do is add some database connectivity to some of my CGI programs. The problem is that they do not use the C standard library (instead using the Linux API directly) and I'm not sure if pulling in a library will work (anybody know? |
|
I think the approach I am going to take for now is to write a daemon that uses libmysqlclient.so - I needed an excuse to learn C a little better anyway. ;-) That way I can probably also cache some data and would give me a database "abstraction layer" as I would also like to be able to connect to a MS SQL Server database at some point in the future too. |
|
If anyone knows a better approach, I'm open to suggestions. |
![]() |
| Thread Tools | |
| Display Modes | |
| |