Re: HELP [nativecode=2013 ** Lost connection to MySQL server during query]

2005-12-16 Thread Gleb Paharenko
Hello. Have a look here: http://dev.mysql.com/doc/refman/5.0/en/communication-errors.html Doug Dalton wrote: I found a log error after turning on warning running the server manually: 051215 17:32:42 [Warning] Aborted connection 3961 to db: 'db' user: 'user' host: `client'

Re: Declare Cursor Question

2005-12-16 Thread Gleb Paharenko
Hello. Surround your code inside the IF statement with BEGIN...END. For example this works for me: drop procedure if exists testcursor; DELIMITER // CREATE PROCEDURE testcursor(IN city_name varchar(255)) DETERMINISTIC BEGIN declare tval int; IF (INSTR(city_name, ',') 0) THEN begin

Re: use deterministic within procedure

2005-12-16 Thread Gleb Paharenko
Hello. In the example,routine_body is non-deterministic.But the function defined DETERNINISTIC.Do mysql throw a exception in creating process? In my opinion, it shouldn't, but you can check this by yourself. I want to say,if i my funciton is a non-deterministic function.But i

Re: CPU 100% + crashes ...

2005-12-16 Thread Dilipan Sebastiampillai
can you please post the complete .err log that also contains information about the crashes. If there are stack traces, please resolve them.

GUI (linux X based or web based) for mysql

2005-12-16 Thread Dotan Cohen
I keep a lot of personal information in a MySQL database. I have a few querys premade for the wife to use, but we have gotten to the point where we need a solution for her to be able to run her own queries. She is NOT about to learn SQL, and myPHPadmin is a little too compicated. I looked at an

Problema with left join

2005-12-16 Thread serrano . neves
Hi, i have a problem, with my one query, this query is OK, in mysql 3.23, but i update my database to mysql 5.0 and one query having a error SELECT count( p.products_id ) AS total FROM products_description pd, products p, products_to_categories p2c LEFT JOIN manufacturers m USING (

Re: Problema with left join

2005-12-16 Thread Jigal van Hemert
[EMAIL PROTECTED] wrote: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.manufacturers_id = m.manufacturers_id ) LEFT JOIN specials s USING ( p.produc' at line 4 What's the error in the query?!!?

BladeCenter of IBM and MySQL

2005-12-16 Thread Yariv Graf
Hi all The company that I'm work for use very intensive MySQL dB on 32 bit platform. because of the limitation of Innodb on linux 32bit (kernel2.6) we've decided to buy a bladecenter of IBM with 14 blades to replace the current configuration. we thought of buying 64 bit Opteron dual core dual

Re: CPU 100% + crashes ...

2005-12-16 Thread Heikki Tuuri
Dilipan, thank you. I think there indeed is a slight unprotected access in: 0x8158a17 innobase_mysql_print_thd + 471 We will investigate if it has been fixed in 4.1.xx. Again, SHOW INNODB STATUS\G shows a very light load inside InnoDB. You would get more informative output if you would

Re: Problema with left join

2005-12-16 Thread serrano . neves
Hi, I resolve my problem... select count(p.products_id) as total from products_description pd, products p left join manufacturers m using (manufacturers_id), products_to_categories p2c left join specials s using (products_id) where p.products_status = '1' and p.products_id = p2c.products_id

Re: Problema with left join

2005-12-16 Thread Jigal van Hemert
[EMAIL PROTECTED] wrote: Hi, I resolve my problem... select count(p.products_id) as total from products_description pd, products p left join manufacturers m using (manufacturers_id), products_to_categories p2c left join specials s using (products_id) where p.products_status = '1' and

Incorrect key file for table '%-.64s'

2005-12-16 Thread Daniel Martinez
Hello list, After running my mysql server 4.1.14 with replication over some months without any problem, suddenly the slave's sql thread crashes. The error log says: 051215 17:29:49 [ERROR] Slave: Query caused different errors on master and slave. Error on master: 'Incorrect key file for table

Re: is there any BEEP command ?

2005-12-16 Thread Rhino
I've never noticed anything like a BEEP command in MySQL but I've never looked either :-) If you don't find a facility like that in MySQL, may I suggest an alternative that will give you more than a mere Beep: it will play any .wav file you like. I use Ant for most of my scripting needs.

Re: GUI (linux X based or web based) for mysql

2005-12-16 Thread Greg Maruszeczka
Dotan Cohen wrote: I keep a lot of personal information in a MySQL database. I have a few querys premade for the wife to use, but we have gotten to the point where we need a solution for her to be able to run her own queries. She is NOT about to learn SQL, and myPHPadmin is a little too

Re: GUI (linux X based or web based) for mysql

2005-12-16 Thread Dotan Cohen
On 12/16/05, Greg Maruszeczka [EMAIL PROTECTED] wrote: Dotan Cohen wrote: I keep a lot of personal information in a MySQL database. I have a few querys premade for the wife to use, but we have gotten to the point where we need a solution for her to be able to run her own queries. She is

Re: is there any BEEP command ?

2005-12-16 Thread Harrison Fisk
Hi, On Dec 16, 2005, at 9:23 AM, C.R.Vegelin wrote: I use various script files with queries to update a MySQL base periodically. These scripts are run from the mysql line with the \. command. I would like to have a BEEP command at the end of the script to get a signal that processing the

Re: is there any BEEP command ?

2005-12-16 Thread James Harvard
Well it works on Mac OS X! While there is no beep command, you can possibly get it to beep by selecting the character code for a terminal beep (this is what the mysql client uses internally) Try out: SELECT char(7); -- MySQL General Mailing List For list archives:

Re: is there any BEEP command ?

2005-12-16 Thread SGreen
Harrison Fisk [EMAIL PROTECTED] wrote on 12/16/2005 11:54:01 AM: Hi, On Dec 16, 2005, at 9:23 AM, C.R.Vegelin wrote: I use various script files with queries to update a MySQL base periodically. These scripts are run from the mysql line with the \. command. I would like to have a

Re: sequential id

2005-12-16 Thread Joseph Alotta
Greetings, Thank you Dahl and Xiaobo. Here it is working for all to see. I particularly like that it doesn't try to use a key again once it is deleted. Joe. mysql use names; Database changed mysql create table people ( id mediumint unsigned not null auto_increment, - first

Re: is there any BEEP command ?

2005-12-16 Thread Nestor
it work on xp :-) On 12/16/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Harrison Fisk [EMAIL PROTECTED] wrote on 12/16/2005 11:54:01 AM: Hi, On Dec 16, 2005, at 9:23 AM, C.R.Vegelin wrote: I use various script files with queries to update a MySQL base periodically. These

Re: is there any BEEP command ?

2005-12-16 Thread Rhino
- Original Message - From: Harrison Fisk [EMAIL PROTECTED] To: C.R.Vegelin [EMAIL PROTECTED] Cc: mysql@lists.mysql.com Sent: Friday, December 16, 2005 11:54 AM Subject: Re: is there any BEEP command ? Hi, On Dec 16, 2005, at 9:23 AM, C.R.Vegelin wrote: I use various script files

Can foreign keys reference tables in another database?

2005-12-16 Thread Scott Plumlee
I am trying to maintain one master list of countries and the states within those countries. I'd like to keep this info in a common database, to be used by 2 or three other databases on the same host, using foreign keys to make sure that all the country/state data matches up to the master

Re: Can foreign keys reference tables in another database?

2005-12-16 Thread Scott Plumlee
sol beach wrote: Why in the world are you trying to keep multiple copies of the data? Why can't you just access the 'master database'? On 12/16/05, Scott Plumlee [EMAIL PROTECTED] wrote: I am trying to maintain one master list of countries and the states within those countries. I'd like to

Re: Can foreign keys reference tables in another database?

2005-12-16 Thread JamesDR
Scott Plumlee wrote: sol beach wrote: Why in the world are you trying to keep multiple copies of the data? Why can't you just access the 'master database'? On 12/16/05, Scott Plumlee [EMAIL PROTECTED] wrote: I am trying to maintain one master list of countries and the states within those

Best way to search all columns for any occurance of criteria

2005-12-16 Thread Dave Ariens
I've got a table on a mysql server (4.1.10a-nt) that I want to query against some search criteria. The table contains approx. 9, 000 records, and will eventually grow to hundreds of thousands. Here are the fields in the table... id int(unsigned) auto_increment firstName varchar(30) lastName

Report tool - Mysql

2005-12-16 Thread Darryl Hoar
Greetings, I need to get a tool to create reports using mysql databases. It would be great if the resultant reports could be run by themselves (not inside the report development environment). Anybody have any recommendations ? thanks, Darryl -- MySQL General Mailing List For list archives:

Re: Can foreign keys reference tables in another database?

2005-12-16 Thread Eric Grau
JamesDR wrote: Scott Plumlee wrote: sol beach wrote: Why in the world are you trying to keep multiple copies of the data? Why can't you just access the 'master database'? On 12/16/05, Scott Plumlee [EMAIL PROTECTED] wrote: I am trying to maintain one master list of countries and the

RE: Report tool - Mysql

2005-12-16 Thread Jimmy Guerrero
Hello, Depending the level of sophistication you require, you might want to take a look at: - JasperSoft (Open Source) - Crystal Reports - If you're running Microsoft Reporting Services somewhere in your shop, I think you can use it to plug into any JDBC compliant DB, but I might be wrong. If

Re: Can foreign keys reference tables in another database?

2005-12-16 Thread Eric Grau
Eric Grau wrote: JamesDR wrote: Scott Plumlee wrote: sol beach wrote: Why in the world are you trying to keep multiple copies of the data? Why can't you just access the 'master database'? On 12/16/05, Scott Plumlee [EMAIL PROTECTED] wrote: I am trying to maintain one master list of

Merging two tables

2005-12-16 Thread Scott Haneda
I need to do this just once... I have table zip_codes and table hardiness_zones In this case, the key will be the actual zip codes. hardiness_zones has two fields, zone_start and zone_end, these are all empty in the zip_codes table. I just need to move the data over, where the zip codes are ==.

Re: Merging two tables

2005-12-16 Thread SGreen
Scott Haneda [EMAIL PROTECTED] wrote on 12/16/2005 08:46:29 PM: I need to do this just once... I have table zip_codes and table hardiness_zones In this case, the key will be the actual zip codes. hardiness_zones has two fields, zone_start and zone_end, these are all empty in the

Error 1013

2005-12-16 Thread Karl Krelove
I'm trying to import a large amount of data from an Access database containing information about 9,000+ students in a school system. I've created a table 'student_list' to hold the data and issued the following command: LOAD DATA INFILE 'home/karl/Student_List.csv' into table student_list

Re: Transactions (not rolling back on error)

2005-12-16 Thread Cory @ SkyVantage
I think it might have something to do with the fact that I'm running the NDB engine. I'm not sure... It doesn't seem to have the same problem on Inno (another transaction-safe engine) I think I need to send MySQL some info so they can try to duplicate it. I'm wondering if anyone else