RE: inserting into mysql database in linux using C

2001-03-26 Thread Sean Conley
You need to have quotes around test in the insert statement. So it would be as follows: sprintf (query, "INSERT INTO tablename (userid) VALUES(\"%s\")", test"); res=mysql_query(connection, query); Oviously query needs declaration here, but the SQL has to be quoted exactly the same as if you were

Re: Re: more Youch

2001-02-28 Thread Sean Conley
upport option to get assistance with installing from source. Now, in the intrest of the list, I think this flame war should be nipped in the bud, and I will end it with this email. Sean Conley On Wed, 28 Feb 2001, John Jensen wrote: > BUG: Telling me I "shouldn't have done" s

Re: more Youch

2001-02-27 Thread Sean Conley
It sounds like the problem is that you originally installed from RPM and later installed from source, or vice versa. RPMs often use a different file layout than source distributions, this is one reason why I always install software that I consider system critical from source, so that there are no

Re: sth->execute - screen/file output

2001-02-04 Thread Sean Conley
You are just missing a step. The execute method does exactly what it says, executes the prepared SQL statement. Once this is done, you must fetch data from the handle with one of the fetch methods such as fetchrow_array or fetchall_arrayref. Another alternative is to combine the prepare, execut

Re: How to uninstall MySQL?

2001-02-02 Thread Sean Conley
Just take the .rpm off the end, and any additional platform information like i386, etc. It would just be, for example, rpm -e MySQL-3.23.32-1 Sean On Fri, 2 Feb 2001, Abby Jiang wrote: > Hi, > > I installed MySQL on Red Hat 6.2. Now I am having > trouble with uninstalling it. If I do rpm -era

"MySQL server has gone away" error

2001-01-11 Thread Sean Conley
265218 to db: '' user: '' host: `localhost' (Got timeout reading communication packets) 010109 14:37:27 /usr/local/libexec/mysqld: Shutdown Complete 010109 14:37:27 mysqld ended\n Sean Conley - Bef