slave stop: Error 'No data - zero rows fetched, selected, processed' on query

2010-08-06 Thread raid fifa
hi guys, we have a mysql replication setup in our production. Master: mysql-5.0.77 slave: mysql-5.1.46 Recently, slave show many these kind of issues and SQL thread was stopped: Last_SQL_Error: Error 'No data - zero rows fetched, selected, or processed' on quer

RE: When using "FOR UPDATE" whole the table seems to lock instead of selected row

2010-01-18 Thread Gavin Towey
e/part_3.html -Original Message- From: phark...@gmail.com [mailto:phark...@gmail.com] On Behalf Of Perrin Harkins Sent: Friday, January 15, 2010 6:08 AM To: Johan Machielse Cc: Baron Schwartz; mysql@lists.mysql.com Subject: Re: When using "FOR UPDATE" whole the table seems to lo

Re: When using "FOR UPDATE" whole the table seems to lock instead of selected row

2010-01-15 Thread Perrin Harkins
On Fri, Jan 15, 2010 at 2:54 AM, Johan Machielse wrote: > The problem is that multiple users can read and update the same field > simultaneously (worse case) which could lead to unpredictable problems. There are other ways to do handle most cases. For example: UPDATE table SET value = value + 1

Re: When using "FOR UPDATE" whole the table seems to lock instead of selected row

2010-01-14 Thread Johan Machielse
such a problem? Thank you in advance. Regards, Johan Machielse - Original Message - From: "Baron Schwartz" To: "Johan Machielse" Cc: Sent: Friday, January 15, 2010 3:14 AM Subject: Re: When using "FOR UPDATE" whole the table seems to lock instead of s

Re: When using "FOR UPDATE" whole the table seems to lock instead of selected row

2010-01-14 Thread Baron Schwartz
According to the MySql documention only the rows that are > selected using the FOR UPDATE should be locked for other sessions, but > somehow whole the table is locked. This post gives some general information > and then shows 3 scenarios. The first 2 scenarios work as expected, but the > last

When using "FOR UPDATE" whole the table seems to lock instead of selected row

2010-01-14 Thread Johan Machielse
Hi, I have created a query to read and update a stock item by using the FOR UPDATE statement. According to the MySql documention only the rows that are selected using the FOR UPDATE should be locked for other sessions, but somehow whole the table is locked. This post gives some general

Is there a way to disable SET PASSWORD for selected users

2009-07-09 Thread Gary Smith
I would like to prevent users from changing their passwords unless they have grant permission. Is this possible? We have an set of stored procedures for managing users/databases for a single signon project that we are working on. The problem is if a user connects directly to the database usin

Re: No database selected error when running mysql_tzinfo_to_sql

2008-03-10 Thread Tim McDaniel
e city or country names like "Chicago", "Barbados", "Argentina/Rio_Gallegos", "New_York", and such. I know little about how timezones are handled in MySQL, but that's why I personally would stick to using the provided examples. Still curious though why

Re: No database selected error when running mysql_tzinfo_to_sql

2008-03-10 Thread Daniel Brown
On Mon, Mar 10, 2008 at 11:36 AM, Tim McDaniel <[EMAIL PROTECTED]> wrote: > On Mon, 10 Mar 2008, Daniel Brown <[EMAIL PROTECTED]> wrote: > >mysql -D mysql -u xxx -p < mysql_tzinfo_to_sql > /usr/share/zoneinfo/America/ > > > >The -D flag selects the database `mysql`, which is where the t

Re: No database selected error when running mysql_tzinfo_to_sql

2008-03-10 Thread dpgirago
> Its example line is > mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql > There's a trailing "mysql", which specifies the "mysql" database. > It also specifies all zoneinfo, not "America/". Thanks, Tim. I totally missed the trailing mysql. Duh! --David.

Re: No database selected error when running mysql_tzinfo_to_sql

2008-03-10 Thread dpgirago
> On Mon, Mar 10, 2008 at 11:07 AM, <[EMAIL PROTECTED]> wrote: >> I'm getting an error trying to run this command: >> >> root> mysql_tzinfo_to_sql /usr/share/zoneinfo/America/ | mysql -u xxx -p >> xxx >> >> ERROR 1046 (3D000) at line 1:

Re: No database selected error when running mysql_tzinfo_to_sql

2008-03-10 Thread Tim McDaniel
On Mon, 10 Mar 2008, Daniel Brown <[EMAIL PROTECTED]> wrote: mysql -D mysql -u xxx -p < mysql_tzinfo_to_sql /usr/share/zoneinfo/America/ The -D flag selects the database `mysql`, which is where the time zone information belongs. The < redirect reads from the "file" (which, in this case, i

Re: No database selected error when running mysql_tzinfo_to_sql

2008-03-10 Thread Tim McDaniel
On Mon, 10 Mar 2008, [EMAIL PROTECTED] wrote: I'm getting an error trying to run this command: root> mysql_tzinfo_to_sql /usr/share/zoneinfo/America/ | mysql -u xxx -p xxx ERROR 1046 (3D000) at line 1: No database selected The MySQL 5.0 manual explains mysql_tzinfo_to_sql

Re: No database selected error when running mysql_tzinfo_to_sql

2008-03-10 Thread Daniel Brown
On Mon, Mar 10, 2008 at 11:07 AM, <[EMAIL PROTECTED]> wrote: > I'm getting an error trying to run this command: > > root> mysql_tzinfo_to_sql /usr/share/zoneinfo/America/ | mysql -u xxx -p > xxx > > ERROR 1046 (3D000) at line 1: No database select

No database selected error when running mysql_tzinfo_to_sql

2008-03-10 Thread dpgirago
I'm getting an error trying to run this command: root> mysql_tzinfo_to_sql /usr/share/zoneinfo/America/ | mysql -u xxx -p xxx ERROR 1046 (3D000) at line 1: No database selected Funny thing is I know I've run this on 2 other servers with identical software without issue, howev

Re: lock the row selected by a session and lock those rows for other sessions

2008-02-05 Thread Frederic Belleudy
You said: It is not locking the entire table. It's locking the rows you're selecting. If you don't want the second session to hang and wait, then you need to tell it to lock different rows. Well if you read my message, I dont want another script to select the rows that are sele

Re: lock the row selected by a session and lock those rows for other sessions

2008-02-05 Thread Baron Schwartz
gt;>> > >>>> Ok, let's assume I 've a table and want to select the first 10 rows from > >>>> that table but I want to be sure that no other scripts will select the > >>>> same rows I've previously got by the first script. >

Re: lock the row selected by a session and lock those rows for other sessions

2008-02-05 Thread Baron Schwartz
>> How can I do that? > >> > >> my table contains one primary key. Let's say id is the column name. > >> So my first script is running and select the ids: 1, 2, 3 10 > >> > >> Then that script will play with the returned ids. &

Re: lock the row selected by a session and lock those rows for other sessions

2008-02-05 Thread Frederic Belleudy
script will play with the returned ids. In the same time, I'm running a second script and do the same select. But I don't want him to get the first 10 ids. The only thing I can think about is to lock WRITE my table. I taught innodb was able to automatically lock the selected rows and

Re: lock the row selected by a session and lock those rows for other sessions

2008-02-04 Thread Michael Dykman
ng and select the ids: 1, 2, 3 10 > > Then that script will play with the returned ids. > In the same time, I'm running a second script and do the same select. > But I don't want him to get the first 10 ids. > > The only thing I can think about is to lock WRITE my

lock the row selected by a session and lock those rows for other sessions

2008-02-04 Thread Frederic Belleudy
o the same select. But I don't want him to get the first 10 ids. The only thing I can think about is to lock WRITE my table. I taught innodb was able to automatically lock the selected rows and not allowed any other script to get the same rows until it's commited... Tks --

Re: error loading data from file > ERROR 1329 (02000): No data - zero rows fetched, selected, or processed

2006-06-27 Thread Ferindo Middleton
329 (02000): No data - zero rows fetched, selected, or processed Ferindo On 6/26/06, Dan Buettner <[EMAIL PROTECTED]> wrote: Ferindo - I believe there is a 64K limit on the length of a record in a MyISAM table (text and binary columns excluded), but I haven't ever seen a number o

Re: error loading data from file > ERROR 1329 (02000): No data - zero rows fetched, selected, or processed

2006-06-26 Thread Dan Buettner
hat comes to mind... It's failing because of some kind of constraint or threshold of the db so instead of giving a meaningful messgae, it just says: ERROR 1329 (02000): No data - zero rows fetched, selected, or processed Ferindo On 6/23/06, Ferindo Middleton <[EMAIL PROTECTED]> wrote

Re: error loading data from file > ERROR 1329 (02000): No data - zero rows fetched, selected, or processed

2006-06-26 Thread Ferindo Middleton
threshold of the db so instead of giving a meaningful messgae, it just says: ERROR 1329 (02000): No data - zero rows fetched, selected, or processed Ferindo On 6/23/06, Ferindo Middleton <[EMAIL PROTECTED]> wrote: I guess my general reason for posting this was to ask: "Are there any

Re: error loading data from file > ERROR 1329 (02000): No data - zero rows fetched, selected, or processed

2006-06-23 Thread Ferindo Middleton
ses_id` FOREIGN KEY (`class_id`) REFERENCES `classes` (`id`), CONSTRAINT `fk_registration_title_id_must_always_match_title_salutations_id` FOREIGN KEY (`title_salutation_id`) REFERENCES `title_salutations` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; Do you know why this this one data record wo

Re: error loading data from file > ERROR 1329 (02000): No data - zero rows fetched, selected, or processed

2006-06-23 Thread Gerald L. Clark
Ferindo Middleton wrote: I'm trying to load data into a table from a file but I get an error message: ERROR 1329 (02000): No data - zero rows fetched, selected, or processed This error message isn't very specific as to what is going wrong and I have no idea what it is about the data

error loading data from file > ERROR 1329 (02000): No data - zero rows fetched, selected, or processed

2006-06-23 Thread Ferindo Middleton
I'm trying to load data into a table from a file but I get an error message: ERROR 1329 (02000): No data - zero rows fetched, selected, or processed This error message isn't very specific as to what is going wrong and I have no idea what it is about the data file that is wrong. Of

"No Database Selected" error - only one .asp page affected

2005-08-26 Thread Phil Jones
This is quite odd. I have five .asp pages all using the exact same connection code. For some reason, one of the pages is getting a "No Database Selected" error, yet the other four are not, which leads me to believe my DSN config works fine. Below are the details. Getting the follo

Re: Joining tables - restricting selected records

2005-06-28 Thread Michael Stassen
Mathias wrote: sorry if i wasn't clear. i mean not select puchase_date, but max(purchase_date), i.e. use having clause. The join field is certainly customerId, or There is not sufficient info on tables. Hope that helps :o) Mathias How would you do that with HAVING? I believe the subque

Re: Joining tables - restricting selected records

2005-06-28 Thread Mathias
Selon Michael Stassen <[EMAIL PROTECTED]>: > Mathias wrote: > > > Selon Russell Horn <[EMAIL PROTECTED]>: > > > >>This must have come up before, but I've not found it using a google > >>search. > >> > >>I have two tables customer and purchases > >> > >>customer: > >> customerID > >> customerName

Re: Joining tables - restricting selected records

2005-06-28 Thread Michael Stassen
Mathias wrote: Selon Russell Horn <[EMAIL PROTECTED]>: This must have come up before, but I've not found it using a google search. I have two tables customer and purchases customer: customerID customerName purchases: purchaseID customerID purchaseDate purchaseValue Is it possible in

Re: Joining tables - restricting selected records

2005-06-28 Thread Mathias
Selon Russell Horn <[EMAIL PROTECTED]>: > This must have come up before, but I've not found it using a google > search. > > I have two tables customer and purchases > > customer: > customerID > customerName > > purchases: > purchaseID > customerID > purchaseDate > purchaseValue > > Is

Joining tables - restricting selected records

2005-06-28 Thread Russell Horn
This must have come up before, but I've not found it using a google search. I have two tables customer and purchases customer: customerID customerName purchases: purchaseID customerID purchaseDate purchaseValue Is it possible in MySQL to join the tables so I only get the value of t

limit 3 subqueries per query selected

2005-05-09 Thread Scott Hamm
How do I limit subqueries to 3 selects for each query selected, for example, an operator put in 5 orders in each batch, and there are 2 different reports which is accuracy for all orders and 3 out of each 5 orders processed. QA table holds batch information and Batch table holds all order

Re: returning results in the order they were selected

2005-04-28 Thread Scott Haneda
on 4/28/05 1:41 AM, Johan Höök at [EMAIL PROTECTED] wrote: > Hi Scott, > you can do: > SELECT a, b, c, from table where zip IN (94949, 94945, 94947) > ORDER BY FIELD(zip,94949, 94945, 94947) That is too handy, thanks for the tip. -- - S

Re: returning results in the order they were selected

2005-04-28 Thread Johan Höök
Hi Scott, you can do: SELECT a, b, c, from table where zip IN (94949, 94945, 94947) ORDER BY FIELD(zip,94949, 94945, 94947) /Johan Scott Haneda wrote: mysql 4.0.18-standard I am running this select: SELECT a, b, c, from table where zip IN (94949, 94945, 94947) How can I get back a result set in the

returning results in the order they were selected

2005-04-28 Thread Scott Haneda
mysql 4.0.18-standard I am running this select: SELECT a, b, c, from table where zip IN (94949, 94945, 94947) How can I get back a result set in the order of the `IN` part of the statement? -- - Scott Haneda

How to execute selected text in Query Broswer?

2004-12-21 Thread Homam S.A.
I was wondering what's the shortcut for executing only selected text in the query window (SQL Query Area) in MySQL Query Browser. Using Ctr-E or Ctrl-Enter executes everything in the window, not just the selected text, as MS Query Analyzer does. It's a great hassle to have to comme

Re: Display field of selected record from full table recordset

2004-07-25 Thread Justin Swanhart
You probably want to pick up a good SQL book. MySQL by Paul DuBois is a really good one. http://www.amazon.com/exec/obidos/tg/detail/-/0735712123/qid=1090786499/sr=8-2/ref=pd_ka_2/102-0741496-3072118?v=glance&s=books&n=507846 You want to use the WHERE clause of the select statement. SELECT tabl

Display field of selected record from full table recordset

2004-07-25 Thread Robb Kerr
I have a recordset that retrieves the full content of the table - all fields, all records. Depending upon the content of different fields in different tables, I need to display certain fields of certain records within the full recordset. What's the syntax for selecting a particular record for displ

RE: GRANT TO SELECTED COLUMNS

2003-11-12 Thread richardb
TECTED]>13/11/2003 11:35 AM To: "Mysql List" <[EMAIL PROTECTED]> cc: (bcc: BORNAY Richard/Engr/STATS/ST Group) Subject: RE: GRANT TO SELECTED COLUMNS You can't login as testuser and try to give yourself privileges, it just doesn't work.

RE: GRANT TO SELECTED COLUMNS

2003-11-12 Thread richardb
Paul DuBois <[EMAIL PROTECTED]>13/11/2003 11:14 AM To: BORNAY Richard/Engr/STATS/ST [EMAIL PROTECTED] Domain, [EMAIL PROTECTED] cc: Subject: RE: GRANT TO SELECTED COLUMNS At 10:55 AM +0800 11/13/03, [EMAIL PROTECTED] wrote: >Hi Chris/Lists, >In fact, I was able to

RE: GRANT TO SELECTED COLUMNS

2003-11-12 Thread Chris
the Select privilege FROM mysql.tables_priv.Table_priv WHERE User='testuser' AND Host='%' Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 6:56 PM To: [EMAIL PROTECTED] Subject: RE: GRANT TO SELECTED COLUMNS

RE: GRANT TO SELECTED COLUMNS

2003-11-12 Thread Paul DuBois
nly those two columns. In that case, SELECT * should work. But my impression is that your table has more than just the two columns. "Chris" <[EMAIL PROTECTED]>13/11/2003 10:34 AM To: "Mysql List" <[EMAIL PROTECTED]> cc: (bcc: BORNAY Richard/Engr/S

RE: GRANT TO SELECTED COLUMNS

2003-11-12 Thread richardb
the error Access denied for user 'testuser' Thanks, Richard "Chris" <[EMAIL PROTECTED]>13/11/2003 10:34 AM To: "Mysql List" <[EMAIL PROTECTED]> cc: (bcc: BORNAY Richard/Engr/STATS/ST Group) Subject: RE: GRANT TO SELECTED COLUMNS

RE: GRANT TO SELECTED COLUMNS

2003-11-12 Thread Chris
That second query, byt itself, should have done it, were you logged in as testuser when you tried to run it? Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 5:26 PM To: [EMAIL PROTECTED] Subject: GRANT TO SELECTED COLUMNS

GRANT TO SELECTED COLUMNS

2003-11-12 Thread richardb
Hello List, I have a table named CHECK_SBIN with fields id,jobid,filename,sbin,count, then I would like to create an account lets say testuser with SELECT privileges only to a specific columns. In this case I would like to open only id and jobid to 'testuser'. I have already created an account t

RE: Selected items delete

2003-04-02 Thread Don Read
utton and i want to > be > able to delete the ones selected. Is there a simple mysql command that > could perform this? I can do all the html/form/php list things, but the > mysql is out of my grasp. :-P > If i was too confusing, maybe this helps: How can i delete the records >

Re: Selected items delete

2003-04-02 Thread gerald_clark
be able to delete the ones selected. Is there a simple mysql command that could perform this? I can do all the html/form/php list things, but the mysql is out of my grasp. :-P If i was too confusing, maybe this helps: How can i delete the records whose "num" field is 4,78,34 and

Re: Selected items delete

2003-04-02 Thread Philipp Specht
Hi! Pag wrote: If i was too confusing, maybe this helps: How can i delete the records whose "num" field is 4,78,34 and 23, all in one command? Something along "delete * in 'table' where num=1 and num=13 and num=34" etc. "DELETE FROM table WHERE num=1 OR num=13 OR num=34" or better: http:/

Selected items delete

2003-04-02 Thread Pag
Hi, I am kinda new to this mysql thing, so please forgive the basic question. What i need to do is, list my records on a table with a checkbox for each. After we choose several of the records, we click a button and i want to be able to delete the ones selected. Is there a simple mysql

RE: Query selected

2003-03-04 Thread Andrew
Absolutely brilliant Roger this has sorted the problem out :) Andrew >-Original Message- >From: Roger Baklund [mailto:[EMAIL PROTECTED] >Sent: 04 March 2003 15:48 >To: MySQL-Lista >Cc: [EMAIL PROTECTED] >Subject: Re: Query selected > > >* Andrew >> Can an

Re: Query selected

2003-03-04 Thread Roger Baklund
* Andrew > Can anyone tell me why this mysql query and 'selected' isn't > working? It does keep a fixed id selected but not the one > that was selected and aslo doesn't return any results? Try to keep the html part of the problem separate from the mysql part

Query selected

2003-03-04 Thread Andrew
Can anyone tell me why this mysql query and 'selected' isn't working? It does keep a fixed id selected but not the one that was selected and aslo doesn't return any results? echo ""; $result=mysql_query("SELECT City, CityID FROM city ORDER BY City");

No Database Selected

2002-12-26 Thread Ritesh Nadhani
Greetings When I try to execute a query in SQLYOG( last query I have executed 2 Hours before ), it is giving no database selected, evenif in databases combo box the database is already selected. I am not understanding ? Does MySQL lose the current DB status after a long time of idleness ? Insane

RE: selected records retrieve

2002-07-04 Thread Sebastien DIDIER
: [EMAIL PROTECTED] > Objet : selected records retrieve > > > Hi to all. > I'm new in the list and in mysql as well, so excuse me for anything that > sounds novice or in wrong place.I'm facing the following situation: > > For some reason, i had to use a backup of the d

Re: selected records retrieve

2002-07-04 Thread Roger Baklund
contains tables, and these tables may be SELECTED from. You can also INSERT information into a table based on what you have SELECTed from another table: http://www.mysql.com/doc/I/N/INSERT_SELECT.html > So, what you need is probably something like this: INSERT INTO newdatabase.table1 S

selected records retrieve

2002-07-04 Thread Nixarlidis Aris
Hi to all. I'm new in the list and in mysql as well, so excuse me for anything that sounds novice or in wrong place.I'm facing the following situation: For some reason, i had to use a backup of the database.Because of the difference in time between my backup and the instance i had to use it,i

selected records retrieve (fwd)

2002-07-02 Thread Nixarlidis Aris
-- Forwarded message -- Date: Tue, 2 Jul 2002 17:40:24 +0300 (EEST) From: Nixarlidis Aris <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: selected records retrieve Hi to all. I'm new in the list and in mysql as well, so excuse me for anything that sounds novice

selected records retrieve

2002-07-02 Thread Nixarlidis Aris
Hi to all. I'm new in the list and in mysql as well, so excuse me for anything that sounds novice or in wrong place.I'm facing the following situation: For some reason, i had to use a backup of the database.Because of the difference in time between my backup and the instance i had to use it,i w

Re: Bug#151302: mysql-server: transparent gzip support on selected columns

2002-06-29 Thread Christian Hammers
; Currently I have about 4 records in a table that use to consume 800mb of space. >(about 23kb per row). Now I'm compressing the column that stores the text as a blob >with gzip compression. Now that table only uses 64mb of space. (about 1600 bytes per >row) > > I'

Re: dumping only selected records into another table

2002-06-11 Thread Brent Baisley
Use the INSERT/SELECT combo like this: INSERT INTO dba (field1,field2,...) SELECT fielda,fieldb,... FROM dba WHERE ... > Hi there, > > I have some data in one table which I have to move to another. No I thought > of a mysqldump with a where clause. The problem though is, that it also > tryes t

dumping only selected records into another table

2002-06-11 Thread andy
Hi there, I have some data in one table which I have to move to another. No I thought of a mysqldump with a where clause. The problem though is, that it also tryes to insert the ID which is a autoinc. primary key and already in use by another record. How can I produce a insert statement withouth

joining tables from selected values

2002-04-01 Thread Tomas Sanchez
Hi! Id would like to have 4 tables files ( id int(8), type set("directory", "file", "link"), ) files_directory ( id int(8), is_files int(8), name varchar(20) ... ) files_file ( id int(8), is_files int(8), name varchar(20) ... ) files_link ( id int(8), is_files int(8), name varchar(20) ... )

select then delete everything selected

2002-02-14 Thread Eric Mayers
Hi List, I need to select a set of stuff from the database and then delete exactly the same stuff. I've formed two query statements and I'm tacking modifications to their ends to be consistent, but I'm not sure if with a limit clause the database will delete the same set of co

Replication of selected DB

2002-01-29 Thread Charitha
Hi, I got the solution for the replication of the selected db. I typed only the database name in the replicate-do-db column. And this line is followed by the data dir line. Hope it is taking the path starting from the data dir column itself. Thanks a lot for your response for this mail

Replication of selected DB

2002-01-29 Thread Charitha
Hi, > > Check the error, not in mysqld.log ..its in hostname.err > > Jai > > -Original Message- > From: Charitha [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 29, 2002 9:52 AM > To: Girish Nath > Cc: [EMAIL PROTECTED] > Subject: Replication of s

RE: Replication of selected DB

2002-01-28 Thread Jai Kumar Shinde
Hi, Check the error, not in mysqld.log ..its in hostname.err Jai -Original Message- From: Charitha [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 9:52 AM To: Girish Nath Cc: [EMAIL PROTECTED] Subject: Replication of selected DB Hi, I have to replicate the selected

Replication of selected DB

2002-01-28 Thread Charitha
Hi, I have to replicate the selected Database. I have followed all the steps given in the manual page. But i am not getting the result as i need. There is no error message in the mysqld.log. The message in the log file is "replication is started". But the replication is not happenin

No Database Selected /weird behaviour

2001-08-03 Thread Werner Stuerenburg
Errno: 1046 Error: No Database Selected I get this on only one of my sites, on the first query during a connection only, and actually it is an impossible error. All sites are driven by db_mysql.inc from PHPLIB. Therefore, everything is totally automatic, no chance to omit the database name

row number for selected set?

2001-05-15 Thread John Cartwright
Hello All, is there any kind of row number pseudo-column that identifies a particular row's position in the query's result set? Something like RowNum in oracle. Thanks! -- john -- === John Cartwright Professional Rese

Re: ERROR 1046: No Database Selected

2001-04-22 Thread Siomara Pantarotto
Hello all, I wonder if someone could send me a java code showing how to access a mysql databse. I will appreciate very much, actually my job is counting on that. Thanks in advance Siomara _ Get Your Private, Free E-mail f

Re: ERROR 1046: No Database Selected

2001-04-22 Thread oltra jean-michel
On Fri, 20 Apr 2001, Siomara Pantarotto wrote: > Date: Fri, 20 Apr 2001 19:35:52 -0300 > From: Siomara Pantarotto <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] > Subject: ERROR 1046: No Database Selected > > Hi all, > > I am

Re: ERROR 1046: No Database Selected

2001-04-20 Thread Ed Carp
Siomara Pantarotto ([EMAIL PROTECTED]) writes: > Hi all, > > I am getting this error > > mysql> create table Product ( > -> productID numeric(10), > -> name varchar(30), > -> primary key(productID) > -> ); > ERROR

ERROR 1046: No Database Selected

2001-04-20 Thread Siomara Pantarotto
Hi all, I am getting this error mysql> create table Product ( -> productID numeric(10), -> name varchar(30), -> primary key(productID) -> ); ERROR 1046: No Database Selected mysql> How do I fix that

Re: Index not used for order by when more than 1 field selected, no where clause

2001-02-18 Thread Jeremy D. Zawodny
On Fri, Feb 16, 2001 at 10:56:57PM +0100, Benjamin Pflugmann wrote: > > > When you set up your database server so that it has enough RAM to > > keep the whole database in main memory (buffer cache), random reads > > don't need to wait for physical disk seeks and can be very fast. > [...] > > So m

Re: Index not used for order by when more than 1 field selected, no where clause

2001-02-16 Thread Benjamin Pflugmann
Hi. On Fri, Feb 16, 2001 at 09:42:02AM +0100, [EMAIL PROTECTED] wrote: > Benjamin Pflugmann wrote : [...] > > "Second" is never the best way. MySQL uses "First" up to some > > percentage of the amount of records (30% I believe), then uses > > "Third", because reading the data in file order (unsor

Re: Index not used for order by when more than 1 field selected, no where clause

2001-02-16 Thread Joseph Bueno
Benjamin Pflugmann wrote : > > Hi. > [] > > If MySQL uses the index, it has one of two possibilities. > > First: > 1. Read the whole isbn index, and for each row > 2. seek the record in the data file and get author from it. > This is quite slow because of the random file seeks needed. > >

Re: Index not used for order by when more than 1 field selected, no where clause

2001-02-15 Thread Benjamin Pflugmann
Hi. On Thu, Feb 15, 2001 at 03:53:39PM -0500, [EMAIL PROTECTED] wrote: > 15/02/01 15:14, Quentin Bennett, [EMAIL PROTECTED]: [...] > > Adding the author to the query means that the query now has to go to the > > data file to get the information, and since there is no restriction on isbn, > > the

Re: Index not used for order by when more than 1 field selected, no where clause

2001-02-15 Thread François Bélanger
15/02/01 15:14, Quentin Bennett, [EMAIL PROTECTED]: > Hi, > > I think you are mis-understanding the information provided. What the "using > index" note means is that the isbn column is part of the index, and since > that is all that is selected, the index file is used t

RE: Index not used for order by when more than 1 field selected, no where clause

2001-02-15 Thread Quentin Bennett
Hi, I think you are mis-understanding the information provided. What the "using index" note means is that the isbn column is part of the index, and since that is all that is selected, the index file is used to provide the data, the data file is not touched. Since there is (usually) le

Index not used for order by when more than 1 field selected, nowhere clause

2001-02-15 Thread François Bélanger
Hi, I'm having a hard time figuring why mySQL does not use the index when sorting a table without any where clause when I include more than 1 field in the select part. To resume the case, I created a temp table with 3 single fields, added an index (see bottom for more details), ran 2 queries with