Re: Help needed with MySQL C API-based client (segfault)

2004-09-05 Thread Aftab Jahan Subedar
have you tried ? http://www.geocities.com/jahan.geo/mysql_c_by_example.html Ruben Safir Secretary NYLXS wrote: On Fri, Sep 19, 2003 at 09:18:22AM +0500, Vikram Vaswani wrote: Hello, I need to write a simple C client for a project. I am using the MySQL C API. Attached is the code. It occassionally s

Re: Help needed with MySQL C API-based client (segfault)

2004-09-04 Thread Ruben Safir Secretary NYLXS
On Fri, Sep 19, 2003 at 09:18:22AM +0500, Vikram Vaswani wrote: > Hello, > > I need to write a simple C client for a project. I am using the MySQL C > API. Attached is the code. It occassionally segfaults with no visible > pattern. Could someone help me figure out why? Or any other comments on the

Help needed with mysql

2003-12-16 Thread Paul Godard
Hi I am using LOAD DATA INFILE to populate a mysql db. I prepare the file in Excell and save it as csv format. Every works fine... except that the file contains special characters with accent or symbols. Is there a way to import such text field directly or do I need to escape all these sp

Re: Help needed with MySQL C API-based client (segfault)

2003-09-18 Thread Ganbold
Here is the corrected version:) Take a look at Paul DuBois book. Don't use gets. Instead use fgets. That's safe. I didn't change your gets call:) hth, Ganbold #include #include #include #if defined(_WIN32) || defined(_WIN64) #include #endif #ifdef WIN32 #pragma comment(lib,"ws2_32") #inc

Help needed with MySQL C API-based client (segfault)

2003-09-18 Thread Vikram Vaswani
Hello, I need to write a simple C client for a project. I am using the MySQL C API. Attached is the code. It occassionally segfaults with no visible pattern. Could someone help me figure out why? Or any other comments on the code to help me make it better? /* client.c */ #include #include int

re: Newbie help needed with mysql : part II

2002-11-11 Thread Victoria Reznichenko
john, Saturday, November 09, 2002, 9:45:15 PM, you wrote: j> Ok.. I got the /etc/my.cnf under control, but now when I do this: j> root@rock:/etc# mysqladmin -u root -h rock password * j> mysqladmin: connect to server at 'rock' failed j> error: 'Host 'rock.biohazard.org' is not allowed to conn

Re: Newbie help needed with mysql : part II

2002-11-09 Thread John Coder
On Sat, 2002-11-09 at 14:45, john wrote: > > > Ok.. I got the /etc/my.cnf under control, but now when I do this: > > root@rock:/etc# mysqladmin -u root -h rock password * > mysqladmin: connect to server at 'rock' failed > error: 'Host 'rock.biohazard.org' is not allowed to connect to this >

Newbie help needed with mysql : part II

2002-11-09 Thread john
Ok.. I got the /etc/my.cnf under control, but now when I do this: root@rock:/etc# mysqladmin -u root -h rock password * mysqladmin: connect to server at 'rock' failed error: 'Host 'rock.biohazard.org' is not allowed to connect to this MySQL server' Then I tried this: root@rock:/etc# mysql

Re: Newbie help needed with mysql

2002-11-09 Thread john
I dont have a my.cnf file, so I "touched" /etc/my.conf still doesnt work. Where do I find a .cnf file to copy over? and root@rock:/var/run/mysql# ls mysql.sock= << it exists. What could my problem be..? I even upgraded. I am using Slackware 8.1 with 2.4.19 kernel. Maybe that will help. Thanks s

Re: Newbie help needed with mysql

2002-11-04 Thread John Coder
On Mon, 2002-11-04 at 18:52, john wrote: > > > When I start safe_mysqld &, I get a command prompt back again and ps aux > shows this: > > mysql30269 0.0 0.1 10580 1024 pts/1S17:38 0:00 > /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql > --pid-file=/var/lib/my

RE: Newbie help needed with mysql

2002-11-04 Thread Black, Kelly W [PCS]
PM To: [EMAIL PROTECTED] Subject: Newbie help needed with mysql When I start safe_mysqld &, I get a command prompt back again and ps aux shows this: mysql30269 0.0 0.1 10580 1024 pts/1S17:38 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-

Newbie help needed with mysql

2002-11-04 Thread john
When I start safe_mysqld &, I get a command prompt back again and ps aux shows this: mysql30269 0.0 0.1 10580 1024 pts/1S17:38 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/rock.pid mysql30271 0.0 0.1 10580 1024 pts/1

Help needed with MySql/MyODBC & ColdFusion on Win2k

2001-11-14 Thread Markus Wollny
Hi! I am desperately trying to get the following combination to run: MySQL (Win32 3.23.44) on host_1.something.tld ColdFusion Enterprise 4.5.1 SP2 for Windows on host_2.something.tld MyODBC 2.50.39 for NT/2000/XP on host_2.something.tld The MySQL-DB ist hosting one database named TEST with one