Re: HOW TO RUN SQL

2004-02-09 Thread KKoTY
hi, to run a sql script from mysql shell just use command "source your_sql_script.sql" if you want to run it directly from prompt use this mysql --force -uusername -ppassword -e"source your_sql_script.sql" - Original Message - From: "Seena Blace" <[EMAIL PROTECTED]> To: "Remko Lodder" <

Re: Access denied for user: 'ODBC@localhost' (Using password: YES)

2004-02-06 Thread KKoTY
thing that you must omit some parameter when establishing connection. (But I never tried to make connection from COBOL, I'm just using MYSQL C API from C++) - Original Message - From: "Arunachalam" <[EMAIL PROTECTED]> To: "KKoTY" <[EMAIL PROTECTED]> Cc: <

Re: New to MySQL

2004-02-05 Thread KKoTY
- Original Message - From: "/dev/null" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 05, 2004 11:27 PM Subject: New to MySQL > wow, nice product. Pretty easy to use and install - I like it. > > I know enough about SQL and databases to just about break any flavor o

Re: Access denied for user: 'ODBC@localhost' (Using password: YES)

2004-02-05 Thread KKoTY
this occures when you ommit the user name, MYSQL C API uses user ODBC as default when you ommit or enter empty string as user name when calling mysql_real_connect() - Original Message - From: "Arunachalam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 05, 2004 3:38 P

Re: [Q] setting DATE field with default NOW value?

2004-02-05 Thread KKoTY
you can use TIMESTAMP data type, which have default NOW() - Original Message - From: "Riaan Oberholzer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 05, 2004 12:38 PM Subject: [Q] setting DATE field with default NOW value? > In a table definition, how do I get a

Re: wysiwyg web soft

2004-02-04 Thread KKoTY
i'm using this one : http://vsbabu.org/webdev/zopedev/ieeditor.html but it works just on IE5.5 SP1 and above (IE6;) - Original Message - From: "fab" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 04, 2004 5:06 PM Subject: wysiwyg web soft > Hi to all, > > I'm fe

Re: mysql command line syntax

2004-02-02 Thread KKoTY
hi, you can try something like this mysql --force -uuser -ppass -Ddatabase -e"query.sql" where you can put all your SQL commands into to file named "query.sql" - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 02, 2004 8:38 PM Subject: mysql co

Re: yearweek() result back to date format?

2004-01-26 Thread KKoTY
hi, i was solving same problem before month and i finished it by this way: select dayname("2003-11-12"), yearweek("2003-11-12"),ADDDATE('2003-01-06', INTERVAL 7*(WEEK('2003-11-12')-1) DAY),ADDDATE('2003-01-06', INTERVAL 7*(WEEK('2003-11-12')-1)+6 DAY); but there is constant '2003-01-06', that's

Re: A fun one

2004-01-24 Thread KKoTY
try SELECT domain,AVG(speed) FROM your_table GROUP BY domain where domain and speed are columns of table your_table - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 24, 2004 10:59 AM Subject: A fun one > Here's a fun one to tickle your brain

Re: Memory leaks using MySQL C Api

2004-01-19 Thread KKoTY
try this, i found this when solving similar problem.There is another method to make and free connection, here is just one change. The trick is that you dont call mysql_close( ) on &mysql_connection , but on return of mysql_real_connect(); Try it, i think that this solve your is problem. static M

Re: Problem with mysql_close() API

2003-12-29 Thread KKoTY
hi, i had same problem. But after I put mysql_free_result(MYSQL_RES *pResult) after fetching rows from query (or generaly after calling all queries), it was OK without this message. I think there is a problem when you allocate memory for result of a query (with mysql_store_result(MYSQL *myData)),