Re: LOAD DATA INFILE with INNODB

2005-06-06 Thread mfatene
Hi, i did it. If you have myisam tables tables rather than innodb say it. if you have specific os, say it. i think you should elaborate, or read carrefully dev.mysql.com/doc Mathias Selon °l||l° Jinxed °l||l° <[EMAIL PROTECTED]>: > i used start transaction before using SET AUTOCOMMIT=0; also i

fulltext/boolean search

2005-06-06 Thread Sebastian
I created a search app with fulltext, boolean, etc. i have two forms, one that allows the user to just enter a basic search in a single input field and a more advanced form with additional input areas for advanced boolean searches.. now, when you do not specify a boolean operator, what does it

Re: mysql UNION

2005-06-06 Thread mfatene
Hi, If we forget the first method which i mis-adviced, i can give a third which is generic. suppose that you have an indexed "type" column on each table (what i did). You can work with 3 variables. If they are different, you query for a join, if they are equal, you transform the join to a simple q

Re: how can I close the cache for mysql

2005-06-06 Thread Atle Veka
That all depends on how you have configured your caching, but it is easy to do. 'mysqld --help': --query_cache_type=# 0 = OFF = Don't cache or retrieve results. 1 = ON = Cache all results except SELECT SQL_NO_CACHE ... queries. 2 =

how can I close the cache for mysql

2005-06-06 Thread qin lei
I am running a test on mysql. In a specific condition I need avoid using the cache system in mysql how can I do this? If I can't, is there anyway to remove the cached tables from cache manually? _ 与联机的朋友进行交流,请使用 MSN Messenger: ht

Re: LOAD DATA INFILE - what is the path to file?

2005-06-06 Thread Chris
Thank you for your detailed response. It seems my problem is trying to define the path to my data file and this is where I seem to be missing something. Permissions on all directories in the path are by default set to 755 except for the director at the top of the directories in my hosting account

how can I close the cache for mysql

2005-06-06 Thread qin lei
I am running a test on mysql. In a specific conditiob I need avoid using the cache system in mysql how can I do this? If I can't, is there anyway to remove the cached tables from cache manually? _ 享用世界上最大的电子邮件系统― MSN Hotmail。 htt

Slave Dying

2005-06-06 Thread David Griffiths
We are running 4.0.20 on two servers (AMD Opteron and Xeon). Our slave has died twice in the last month with the following error: "Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary lo

Re: MySQL Slave Read Only

2005-06-06 Thread Eric Bergen
There is an option starting in 4.0.14 called read-only that will allow only the slave i/o thread and users with the super priv to execute write queries. Jeremiah Gowdy wrote: Is there a way to make MySQL Slaves read only in regards to all UPDATE, INSERT, DELETE, DROP, TRUNCATE, etc, except

JOINs and composite indexes

2005-06-06 Thread John Stannard
Conceptually, what I'd like to do is join two tables on a hostid for a result like this non-join version where hostid in the 'IN' come from the other table. mysql> explain select avg(load5min) from kstatHostData_20050513 where hostid IN (250, 400) and localdate > '2005-06-06 13:00:00'\G

MySQL Slave Read Only

2005-06-06 Thread Jeremiah Gowdy
Is there a way to make MySQL Slaves read only in regards to all UPDATE, INSERT, DELETE, DROP, TRUNCATE, etc, except for the replication thread? I know you can just change the user accounts to disallow write access to the tables, but I'm thinking it would be convenient to simply have a switch th

Re: LOAD DATA INFILE with INNODB

2005-06-06 Thread °l||l° Jinxed °l||l°
i used start transaction before using SET AUTOCOMMIT=0; also i dont see any difference between the two. if there is please elaborate. - Original Message - . From: <[EMAIL PROTECTED]> To: "°l||l° Jinxed °l||l°" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, June 07, 2005 3:17 AM Subject: Re: LOAD

Re: Empty database name error

2005-06-06 Thread mfatene
variable basedir else change a param. in what you have as file, stop start and see. Mathias Selon Ed Kasky <[EMAIL PROTECTED]>: > I added the line to the configuration file and removed "--log-error=" line > from startup line but it still creates the /usr/local/mysql/var/yoda2.err > as well as /v

Re: LOAD DATA INFILE with INNODB

2005-06-06 Thread mfatene
Hi, you transaction is implicit, so there has been an autocommit. Look at this example ! mysql> start transaction; ^^ mysql> load data infile 'd:\\ldfile.txt' into table ldfile; Query OK, 3 rows affected (0.00 sec) Records: 3 Deleted: 0 Skipped: 0 Warnings: 0 mysql> s

Re: Problem building 4.1.12 on HP-UX 10.20

2005-06-06 Thread Albert Chin
On Mon, Jun 06, 2005 at 04:19:16PM -0500, Dan Nelson wrote: > In the last episode (Jun 06), Albert Chin said: > > I'm trying to build mysql-4.1.12 on HP-UX 10.20 with gcc-3.4.3. HP-UX > > 10.20 has CMA threads. > > > > I have the following build failure: > > gmake[4]: Entering directory `/opt/bu

Re: Problem building 4.1.12 on HP-UX 10.20

2005-06-06 Thread Dan Nelson
In the last episode (Jun 06), Albert Chin said: > I'm trying to build mysql-4.1.12 on HP-UX 10.20 with gcc-3.4.3. HP-UX > 10.20 has CMA threads. > > I have the following build failure: > gmake[4]: Entering directory `/opt/build/mysql-4.1.12/innobase/srv' > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./

LOAD DATA INFILE with INNODB

2005-06-06 Thread °l||l° Jinxed °l||l°
hi, I have been pulling my hair for last couple of days.i want to put few sol statements in TRANSACTION BLOCK. all the tables involved are of type innodb. the first SQL statement in the block is LOAD DATA INFILE. inside the block ( using PHP ) i am checking for errors and incase of error i want

Problem building 4.1.12 on HP-UX 10.20

2005-06-06 Thread Albert Chin
I'm trying to build mysql-4.1.12 on HP-UX 10.20 with gcc-3.4.3. HP-UX 10.20 has CMA threads. I have the following build failure: gmake[4]: Entering directory `/opt/build/mysql-4.1.12/innobase/srv' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I./../../include -I../../include -I/opt/TWWfs

Re: Help needed with complex Query

2005-06-06 Thread Philip Lawatsch
[EMAIL PROTECTED] wrote: >>I pretty much have no idea how I can do this without nested queries (and >>to be frank not even how to do it with them) so I'd really appreciate >>any help! > > >>kind regards Philip > > > Try this as a starting point: > I think you were having two mental problems

Re: error 1418 when creating stored procedure using mysql 5.0.6

2005-06-06 Thread James Black
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here are two of the stored procedures I tried, as I had forgotten to send that with my query. I am hoping that the stored procedure will now work, as it hasn't since mysql 5.0.1. Thanx for any help. CREATE PROCEDURE assignItem ( user CHAR(15), ri

Re: Help needed with complex Query

2005-06-06 Thread Brent Baisley
Unless you are keeping track of whether a widget in complete or not, there is no hope but to scan the entire table to determine if a widget is complete. That's something you don't want to do. You should mark a widget as complete when it is completed. This would mean checking if a particular wid

Re: Help needed with complex Query

2005-06-06 Thread gerald_clark
Philip Lawatsch wrote: Hi, I'm trying hard to figure out how to perform a special query in mysql 4.0. I have one table "widgets" which has a column "widget-id" (int) and one column "number_of_parts" (int). And then I have another table "part_mapping" which has one column "widget-id" (int) and

Re: Help needed with complex Query

2005-06-06 Thread SGreen
Philip Lawatsch <[EMAIL PROTECTED]> wrote on 06/06/2005 01:37:37 PM: > Hi, > I'm trying hard to figure out how to perform a special query in mysql 4.0. > I have one table "widgets" which has a column "widget-id" (int) and one > column "number_of_parts" (int). > And then I have another table "p

Help needed with complex Query

2005-06-06 Thread Philip Lawatsch
Hi, I'm trying hard to figure out how to perform a special query in mysql 4.0. I have one table "widgets" which has a column "widget-id" (int) and one column "number_of_parts" (int). And then I have another table "part_mapping" which has one column "widget-id" (int) and one column "part_id" (int

Re: Access denied/password change

2005-06-06 Thread mfatene
hi , see -skip-grant-tables in dev.mysql.com/doc Mathias Selon Seena Blace <[EMAIL PROTECTED]>: > Is there any way I can change passwd of database without knowing the > administrator . > I'm unable to get into the mysql prompt due to access denied message.I want > to change passwd.How to do this

re: error 1418 when creating stored procedure using mysql 5.0.6

2005-06-06 Thread SGreen
James Black <[EMAIL PROTECTED]> wrote on 06/06/2005 12:33:40 PM: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > I am curious what has changed in 5.0.6 that leds to this error: > ERROR 1418: This routine is declared to be non-deterministic and to > modify data and binary logging is enabled >

Re: mirroring oracle database

2005-06-06 Thread mfatene
Hi, what is tour oracle version ? such tool can be done easily if you put your oracle database in archivelog. Be carrefull to datatypes and create your mysql database with innodb storage. Beginning the game, you can use LogMiner. A simple batch can extract the redo SQL statements and apply them t

Re: Empty database name error

2005-06-06 Thread mfatene
resubmitted Selon [EMAIL PROTECTED]: > variable basedir else change a param. in what you have as file, stop start > and > see. > > Mathias > > Selon Ed Kasky <[EMAIL PROTECTED]>: > > > I added the line to the configuration file and removed "--log-error=" line > > from startup line but it still cr

re: error 1418 when creating stored procedure using mysql 5.0.6

2005-06-06 Thread James Black
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am curious what has changed in 5.0.6 that leds to this error: ERROR 1418: This routine is declared to be non-deterministic and to modify data and binary logging is enabled What should I be looking at changing in my CREATE PROCEDURE call to enable

Re: mirroring oracle database

2005-06-06 Thread mfatene
resubmitted Selon [EMAIL PROTECTED]: > Hi, > what is tour oracle version ? > > such tool can be done easily if you put your oracle database in archivelog. > Be > carrefull to datatypes and create your mysql database with innodb storage. > > Beginning the game, you can use LogMiner. A simple batch

Re: MySQL (SQL) Newbie.. Need help with a Query

2005-06-06 Thread mfatene
resubmitted Selon [EMAIL PROTECTED]: > hi, > that's the same. If you use between, mysql do the rest for you : > > mysql> explain SELECT * FROM passengers WHERE > -> reservation_date_time >= '2005-01-01 12:10:00' > -> AND reservation_date_time <= '2005-05-01 12:10:00'; > ++-

Re: mysql UNION

2005-06-06 Thread mfatene
did'n arrive. re-submitted -- sorry Selon [EMAIL PROTECTED]: > Hi, > If we forget the first method which i mis-adviced, i can give a third which > is > generic. > > suppose that you have an indexed "type" column on each table (what i did). > You > can work with 3 variables. If they are different,

Re: Not able to connect to Mysql server from network machine

2005-06-06 Thread rtroiana
Thanks Gleb. I just had to manually make changes in my firewall. I allowed requests to port 3306 & mysqld.exe in exceptions tab and it solved the problem. The only reason I didn't think about firewall setting before since whenever I try to run new service, I wud get a pop up from Firewall asking to

Re: noob question

2005-06-06 Thread mfatene
Hi, look at this : mysql> SET AUTOCOMMIT=0; mysql> start transaction; mysql> insert into inno values(2); mysql> select * from inno; +--+ | t| +--+ |1 | |2 | +--+ 2 rows in set (0.00 sec) mysql> rollback; mysql> select * from inno; +--+ | t| +--+ |1 | +--

Re: Access denied/password change

2005-06-06 Thread Seena Blace
Is there any way I can change passwd of database without knowing the administrator . I'm unable to get into the mysql prompt due to access denied message.I want to change passwd.How to do this? After change passwd do you think we need to grant some priviledges? thanks Anoop kumar V <[EMAIL PRO

Re: noob question

2005-06-06 Thread Digvijoy Chatterjee
Thank You for the quick reply , now i wanted to create INNoDb table such that i could rollback my changes ,but here i am as I issue a rollback command ; nothing happens...is there some thing like autocommit on...or rather how do i alter standard settings of mysql client... MY MAIN QUESTION is :

Re: file my.cnf is missing for Solaris 8, for mysql 5.0.6

2005-06-06 Thread Bastian Balthazar Bux
James Black wrote: > I am getting the following error, when I try to use bin/mysqld_safe, > Could not open require defaults file: $MYSQL_HOME/data/my.cnf > Fata error in defaults handling. Program aborted > Don't remember where I've read it but mysql binary packages don't read anymore the my.cnf

Re: noob question

2005-06-06 Thread SGreen
Digvijoy Chatterjee <[EMAIL PROTECTED]> wrote on 06/06/2005 10:09:15 AM: > How do i explicilty create an innodb table ? > I tried searching thro Manual...but did not get anything important > in the create t > table section. > Thanks > DIgz > > *** CAUTION - Disclaimer **

re: solution found for my.cnf problem in mysql 5.0.6

2005-06-06 Thread James Black
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I followed the steps in http://lists.mysql.com/internals/25364 and fixed my script, so, it would appear that the script is bad for the max version of mysql 5.0.6, for Solaris 8. - -- "Love is mutual self-giving that ends in self-recovery." Fulton Shee

Re: noob question

2005-06-06 Thread Martijn Tonies
> How do i explicilty create an innodb table ? > > I tried searching thro Manual...but did not get anything important in the create t > > table section. CREATE TABLE ... ENGINE=InnoDB With regards, Martijn Tonies Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL Server

noob question

2005-06-06 Thread Digvijoy Chatterjee
How do i explicilty create an innodb table ? I tried searching thro Manual...but did not get anything important in the create t table section. Thanks DIgz *** CAUTION - Disclaimer ** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely

re: file my.cnf is missing for Solaris 8, for mysql 5.0.6

2005-06-06 Thread James Black
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am getting the following error, when I try to use bin/mysqld_safe, Could not open require defaults file: $MYSQL_HOME/data/my.cnf Fata error in defaults handling. Program aborted Did I d/l a bad .tar.gz file from a mirror? Thank you. - -- "Love

Re: Not able to connect to Mysql server from network machine

2005-06-06 Thread SGreen
"rtroiana" <[EMAIL PROTECTED]> wrote on 06/06/2005 08:42:18 AM: > Hi All, > > I'm trying to connect to MySql server from MySql Administrator on a network > machine. I specify the Server host as IP of the machine where DB server is > running and Port as 3306. > > Username as 'root' and the pa

Re: Slow LIMIT Query

2005-06-06 Thread mfatene
Hi Doug, with a desc index on stuffed_date, an optimiezd table, the query runs in : mysql> select * from stuff order by stuffed_date desc limit 18,10; +---+--+ | id| stuffed_date | +---+--+ | 88233 | 2005-07-08 | | 88228 | 2005-07-08 | | 88218 | 2005-07-0

Not able to connect to Mysql server from network machine

2005-06-06 Thread rtroiana
Hi All, I'm trying to connect to MySql server from MySql Administrator on a network machine. I specify the Server host as IP of the machine where DB server is running and Port as 3306. Username as 'root' and the password I have tried with other usernames and specifying machine name inst

Re: If statment in query

2005-06-06 Thread SGreen
Sebastian <[EMAIL PROTECTED]> wrote on 06/05/2005 02:23:45 AM: > I have two fields: topic | title > topic does not always have data in it, so i want to select `title` when > `topic` is null.. > i thought i could do this (does not work): > IF(title IS NULL, topic, title) AS heading > Thanks. Y

Delivery reports about your e-mail

2005-06-06 Thread arjen
The original message was received at Mon, 6 Jun 2005 11:40:11 +0200 from mysql.com [50.161.69.24] - The following addresses had permanent fatal errors - - Transcript of session follows - while talking to lists.mysql.com.: >>> MAIL From:[EMAIL PROTECTED] <<< 501 [EMAIL PROTECTED

Re: Re: sleeping processes

2005-06-06 Thread Carl
Ronny, Oops, no I didn't. Odd that my code (which looks very similar to your code) has no problems but your code does. Has to be something in your code (always work from something that works to something that doesn't.) Is there any way you can subset your code to just a few lines to get it to w

reporting tools for mysql- OLAP functionality possibly

2005-06-06 Thread Angelo Zanetti
Hi, I have a system that im busy designing using PHP, mysql apache and linux. I will need to do alot of intense reporting from the system, like viewing statistics for country, province, district etc... so its basically drill down and roll up functionality (OLAP). This will probably run ontop of M

Re: Performance problems through gateway

2005-06-06 Thread Philippe Poelvoorde
Hi, The performance of the data transfers using the direct socket connection goes from <15 milli sec (in the lab) to ~32 milli sec (in pseudo production env). But the database calls go from <1 sec to several seconds (have not measured this yet). The database was exactly the same in both trials.

Re: mirroring oracle database

2005-06-06 Thread Martijn Tonies
Hello Edward, > I'm trying to convince some people here to adopt MySql as a relational database > here. However, we can't start from a clean slate; we have a very mature oracle > database that applications point to right now, and so we need a migration path. > > I was thinking of taking the follow

Re: Slow LIMIT Query

2005-06-06 Thread Felix Geerinckx
On 05/06/2005, "Doug V" wrote: > In your followup message [from [EMAIL PROTECTED], you mention reverse > sorting the query. I imagine on the application side I would need to > reverse sort again to get the correct order. Are there any other ways > to speed up such a query? I find similar beha

Re: Not able to connect to Mysql server from network machine

2005-06-06 Thread Gleb Paharenko
Hello. Check with netstat if MySQL is listening on 3306 port on the server. Use traffic analyzers to see if your packets reach the server. Enable the general query log on the server to see if server receives your requests to connect. See: http://dev.mysql.com/doc/mysql/en/can-not-connect-

Re: Re: sleeping processes

2005-06-06 Thread Ronny Melz
Hi Carl, thank you for your reply. did you have a look at my original posting where I included the code? your code (omitting the error routines) is essentially like this: sock=mysql_init(0)) mysql_real_connect(sock,ipNumber,userName,password,gvDatabase,3306,NULL,0) mysql_select_db(sock,g