Problem in MyCC

2002-01-15 Thread TH Leung

Hi,

I recently download and install a compiled version of MyCC for Windows into
my PC. The installation is successful and the outlook is quite user
friendly. I register a server created by MySQL and when I want to browse for
the tables inside a database, I get an window error showing the message:
MYCC caused an invalid page fault in module QT-MT301.DLL at 0167:39d55ccd.


I am running Windows 98 with MySQL-max in version 4.0.0. Could anyone give
me feedback, thank you very much.

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




MyODBC problem: Show Processlist

2002-01-15 Thread Frans Streur

Hallo,

Im writing an Visual Basic 6 application, using MDAC 2.1 and MySql ODBC
2.50.38.

In some part of this application I like to know the processes that are
running on MySql. I'm using SHOW PROCESSLIST expecting a recordset back
like in SHOW STATUS. I'm getting an runtime-error -2147467259 (80004005),
Function sequence error when I try to go to the first record (.MoveFirst).
This works ok with SHOW STATUS.

I traced the ODBC calls and enclosed the files. You can see that the SHOW
STATUS leaves no error in the trace file. The SHOW PROCESSLIST however
does.

I hope you can give me an advice.

Thanks in advance.
Frans Streur
-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*
 Frans Streur - 's-Hertogenbosch - The Netherlands
   EMail [EMAIL PROTECTED]
-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*

Errors Tracefile: SHOW PROCESSLIST

VB6 120-534 EXIT  SQLNumResultCols  with return code -1 (SQL_ERROR)
HSTMT   031F17E0
SWORD * 0x0012E908

DIAG [S1010] [Microsoft][ODBC Driver Manager] Function sequence error 
(0)

Errors Tracefile: SHOW STATUS

VB6 120-534 ENTER SQLGetDiagRecW
SQLSMALLINT  3
SQLHANDLE   031F17E0
SQLSMALLINT  1
SQLWCHAR *  0x0012E4AC (NYI)
SQLINTEGER *0x0012E4CC
SQLWCHAR *  0x0012E0AC (NYI)
SQLSMALLINT512
SQLSMALLINT *   0x0012E4C4


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Bug#129284: mysql-client: some short options doesn't work

2002-01-15 Thread Christian Hammers

FYI

 -christian-

On Mon, Jan 14, 2002 at 11:54:42PM +0100, Artur R.Czechowski wrote:
 Package: mysql-client
 Version: 3.23.46-2
 Severity: minor
 
 mysqldump: invalid option -- Q
 long GNU option --quota-names used instead works
 Please fix documentation or client :)
 
 Sincerelly
   Artur
 
 -- System Information
 Debian Release: 3.0
 Architecture: i386
 Kernel: Linux goofie 2.4.17 #1 SMP Mon Jan 14 22:14:46 CET 2002 i686
 Locale: LANG=C, LC_CTYPE=C
 
 Versions of packages mysql-client depends on:
 ii  debianutils1.15  Miscellaneous utilities specific t
 ii  libc6  2.2.4-7   GNU C Library: Shared libraries an
 ii  libdbd-mysql-perl  1.2216-2  mySQL database interface for Perl
 ii  libdbi-perl1.20-1The Perl5 Database Interface by Ti
 ii  libmysqlclient10   3.23.46-2 mysql database client library
 ii  libncurses55.2.20010318-3Shared libraries for terminal hand
 ii  libreadline4   4.2a-3GNU readline and history libraries
 ii  libstdc++2.10-glibc2.2 1:2.95.4-0.011006 The GNU stdc++ library
 ii  perl   5.6.1-6   Larry Wall's Practical Extraction 
 ii  zlib1g 1:1.1.3-18compression library - runtime
 


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Insert failed

2002-01-15 Thread Xavier NOPRE

Hi,

I try to insert a new record in a table. The key is an automatic ID.
The insert is refused due to duplicate key, but the key does not
exist. Why ? Is it a bug ?


Any idea ? Some help ?
Thanks

Xavier


Details:

The colums of the table:
++--+--+-+-++
| Field  | Type | Null | Key | Default | Extra
| ++--+--+-+-++
| EventType  | varchar(64)  | YES  | | NULL|  
|
| EventOrigin| varchar(64)  | YES  | | NULL|  
|
| EventText  | varchar(250) | YES  | | NULL|  
|
| EventTimeStamp | datetime | YES  | | NULL|  
|
| EventId| int(11)  |  | PRI | NULL|
auto_increment |
++--+--+-+-++

Operations tried:

mysql select count(*) from events;
+--+
| count(*) |
 +--+
|20506 |
+--+
1 row in set (0.19 sec)
mysql insert into events set EventType='TEST',EventOrigin='me';
ERROR 1062: Duplicate entry '20507' for key 1
mysql select * from events where EventId=20507;
Empty set (0.00 sec)



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




pb with integrity constraint

2002-01-15 Thread TOMASSONI Dominique

Hi the list,

I try to create tables with integrity constraint but it seems no running.

I've got the next script :

create table USERS
(
USER_CODE   INT(8) not null,
USER_NAME   VARCHAR(30)not null,   
primary key (USER_CODE)
)
;
create table ENV
(
USER_CODE   INT(8) not null,
CODE_ENVVARCHAR(6) not null,
primary key (USER_CODE, CODE_ENV),
constraint FK_USER foreign key (USER_CODE) references USERS(USER_CODE)
)
;

The tables creation are ok, but when I insert values in the table ENV
without any data in USERS it works but normally it wouldn't.

Something bad in may script ?


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




MATCH vs LIKE

2002-01-15 Thread Peter Dunham

I am trying to speed up keyword searches using MATCH AGAINST instead of
like, but am getting unexpected results.

I had assumed that using 'WHERE MATCH fulltext(column.name) AGAINST
'searchterm' would produce the same results as 'WHERE column.name LIKE
'%searchterm%' but it doesn't seem to.




Actual queries:

First one returns 190 rows using:
SELECT affiliates.id,
affiliates.site_name,affiliates.site_desc,affiliates.company FROM affiliates
WHERE  MATCH (affiliates.site_desc,affiliates.site_name,affiliates.company)
AGAINST ('shop');

Second one returns 1168 rows using:
SELECT affiliates.id,
affiliates.site_name,affiliates.site_desc,affiliates.company FROM affiliates
WHERE affiliates.site_name like '%shop%' OR affiliates.site_desc like
'%shop%' OR affiliates.company like '%shop%';


This is the index:

mysql show index from affiliates;
++++--+-+---
+-+--++--+
| Table  | Non_unique | Key_name   | Seq_in_index | Column_name |
Collation | Cardinality | Sub_part | Packed | Comment  |
++++--+-+---
+-+--++--+
| affiliates |  0 | PRIMARY|1 | id  | A
|9019 | NULL | NULL   |  |
| affiliates |  0 | id |1 | id  | A
|9019 | NULL | NULL   |  |
| affiliates |  1 | SEARCHTEXT |1 | site_desc   | A
|NULL |1 | NULL   | FULLTEXT |
| affiliates |  1 | SEARCHTEXT |2 | site_name   | A
|NULL | NULL | NULL   | FULLTEXT |
| affiliates |  1 | SEARCHTEXT |3 | company | A
|NULL | NULL | NULL   | FULLTEXT |
++++--+-+---
+-+--++--+
5 rows in set (0.00 sec)

This is the table:

mysql show columns from affiliates;
+---+--+--+-+-++
| Field | Type | Null | Key | Default | Extra  |
+---+--+--+-+-++
| id| int(20)  |  | PRI | NULL| auto_increment |
| contact_name  | varchar(100) |  | | ||
| company   | varchar(75)  | YES  | | NULL||
| address_1 | varchar(100) | YES  | | NULL||
| address_2 | varchar(100) | YES  | | NULL||
| city  | varchar(25)  | YES  | | NULL||
| county| varchar(25)  | YES  | | NULL||
| post_code | varchar(12)  | YES  | | NULL||
| country   | varchar(25)  | YES  | | NULL||
| email | varchar(75)  |  | | ||
| telephone | varchar(20)  | YES  | | NULL||
| cheques   | varchar(75)  | YES  | | NULL||
| vat_reg   | char(1)  | YES  | | 0   ||
| vat_type  | char(1)  | YES  | | NULL||
| vat_no| varchar(13)  | YES  | | NULL||
| site_name | varchar(75)  |  | | ||
| URL   | varchar(150) | YES  | | NULL||
| site_desc | text | YES  | MUL | NULL||
| primary_content   | varchar(20)  | YES  | | NULL||
| secondary_content | varchar(20)  | YES  | | NULL||
| password  | varchar(20)  |  | | ||
| refered   | int(11)  | YES  | | NULL||
| timestamp | datetime | YES  | | NULL||
| confirmed | tinyint(1)   | YES  | | 0   ||
| active| tinyint(1)   | YES  | | 1   ||
| confirmcode   | varchar(25)  | YES  | | NULL||
| signup_ip | varchar(15)  | YES  | | NULL||
| email_list| tinyint(1)   | YES  | | 1   ||
+---+--+--+-+-++
28 rows in set (0.00 sec)


Any thoughts please?


---
Peter Dunham
www.affiliatewindow.com
the future of web marketing
---


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? 

Re: MATCH vs LIKE

2002-01-15 Thread Carsten Gehling

- Original Message -
From: Peter Dunham [EMAIL PROTECTED]
To: MYSQL [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 12:03 PM
Subject: MATCH vs LIKE


 I am trying to speed up keyword searches using MATCH AGAINST instead of
 like, but am getting unexpected results.

 I had assumed that using 'WHERE MATCH fulltext(column.name) AGAINST
 'searchterm' would produce the same results as 'WHERE column.name LIKE
 '%searchterm%' but it doesn't seem to.

Not quite, not yet.

If you search on house with LIKE, you will find house, inhouse,
houses, etc.
With MATCH you will only find house

A newer version of MySQL (4.0 or 4.1) will make you able to find houses
(aka. LIKE 'house%'), but I gueds that inhouse (aka. LIKE '%house') will
never be available.

The reason is, that your FULLTEXT index is made up of an (alphabetically)
ordered list of words. When searching, this list is traversed as a binary
search. This will only be possible, if you know the starting characters (ie.
'house' and 'house%'). '%house' has a wildcard as the starting characters,
therefor only a linear search would be possible. This would not do well for
performance.

- Carsten




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




MySQL can't tell the difference between two databases???

2002-01-15 Thread Nuno Gonçalves


Hi!

I've got two mysql databases that have exactly the same structure (same
tables using BDB, columns, etc.) and different data.

When I try to do a select on a table from database A, I get the right
results, but when I try the same select on the same table from database B, I
get the results from the database A.

The only way I seem to be able to access the data on database B is to remove
the other database from MySQL.
From my tests it seems that MySQL only uses the table name to access the
data (not using also the database name).

Anyone has an idea, of why this happens.

Nuno A. S. Gonçalves
[EMAIL PROTECTED]





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL can't tell the difference between two databases???

2002-01-15 Thread Duncan Hill

On Tue, 15 Jan 2002, Nuno Gonçalves wrote:

 The only way I seem to be able to access the data on database B is to
 remove the other database from MySQL. From my tests it seems that MySQL
 only uses the table name to access the data (not using also the database
 name).

The sql queries you are using on your database would help.  We are not 
mind-readers (well, I'm not!).


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Multi-table delete/update

2002-01-15 Thread Sinisa Milivojevic


Thank you for your report.

We shall take a look at it.

-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   ___/   www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL can't tell the difference between two databases???

2002-01-15 Thread Nuno Gonçalves


It's something like this:

mysql use db1
mysql select * from products;
++-+-+--+--+
| Id | Ref | Version | Type | Name |
++-+-+--+--+
|  1 | XXX |   1 |1 | XXX  |
++-+-+--+--+
1 row in set (0.27 sec)

mysql use db2
mysql select * from products;
++-+-+--+--+
| Id | Ref | Version | Type | Name |
++-+-+--+--+
|  1 | XXX |   1 |1 | XXX  |
++-+-+--+--+
1 row in set (0.16 sec)

I'm sure the table products on database db2 is empty, because of the results
I get when I remove db1 from the system.
The same select returns empty.

Hope that helps. Thanks.

Nuno A. S. Gonçalves
[EMAIL PROTECTED]


- Original Message -
From: Duncan Hill [EMAIL PROTECTED]
To: Nuno Gonçalves [EMAIL PROTECTED]
Cc: Mailing list MySql [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 12:13 PM
Subject: Re: MySQL can't tell the difference between two databases???


 On Tue, 15 Jan 2002, Nuno Gonçalves wrote:

  The only way I seem to be able to access the data on database B is to
  remove the other database from MySQL. From my tests it seems that MySQL
  only uses the table name to access the data (not using also the database
  name).

 The sql queries you are using on your database would help.  We are not
 mind-readers (well, I'm not!).





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Official State of Mysql-Max

2002-01-15 Thread Heikki Tuuri

Ross,

Ross Davis wrote in message ...
On the front screen of the mysql site the mysql-Max 3.23.47 is listed as
stable.

However on the download page it is said to be considered a beta yet?

the download page is lagging behind. The MySQL manual describes it as gamma,
which is also the official classification by Innobase Oy.

The reason that I am asking this question, is that the Borland Delphi
Developers will not release a new version that supports the record locking
until this program is OFFICIALLY listed as stable.

If it is not yet listed as stable, then is there an ETA?

We will declare MySQL-Max stable during this month if no serious new bug
reports appear. The last bug classified as serious in InnoDB was the insert
buffer bug which was fixed on November 17th, 2001. The MySQL part in
MySQL-Max has been officially stable for a year now. You can follow the
official status of MySQL/InnoDB from the InnoDB website
http://www.innodb.com. It contains also a bug list.

Thanks in advance.

Best regards,

Heikki Tuuri
Innobase Oy
---
InnoDB - transactions, row level locking, and foreign key support for MySQL
See http://www.innodb.com, download MySQL-Max from http://www.mysql.com




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: MySQL can't tell the difference between two databases???

2002-01-15 Thread Javier Armendáriz

What happens if you try select * from db1.products and select * from
db2.products;???

Doing that does the same?



 -Mensaje original-
 De: Nuno Gonçalves [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 15 de enero de 2002 13:24
 Para: Mailing list MySql
 Asunto: Re: MySQL can't tell the difference between two databases???



 It's something like this:

 mysql use db1
 mysql select * from products;
 ++-+-+--+--+
 | Id | Ref | Version | Type | Name |
 ++-+-+--+--+
 |  1 | XXX |   1 |1 | XXX  |
 ++-+-+--+--+
 1 row in set (0.27 sec)

 mysql use db2
 mysql select * from products;
 ++-+-+--+--+
 | Id | Ref | Version | Type | Name |
 ++-+-+--+--+
 |  1 | XXX |   1 |1 | XXX  |
 ++-+-+--+--+
 1 row in set (0.16 sec)

 I'm sure the table products on database db2 is empty, because of
 the results
 I get when I remove db1 from the system.
 The same select returns empty.

 Hope that helps. Thanks.

 Nuno A. S. Gonçalves
 [EMAIL PROTECTED]


 - Original Message -
 From: Duncan Hill [EMAIL PROTECTED]
 To: Nuno Gonçalves [EMAIL PROTECTED]
 Cc: Mailing list MySql [EMAIL PROTECTED]
 Sent: Tuesday, January 15, 2002 12:13 PM
 Subject: Re: MySQL can't tell the difference between two databases???


  On Tue, 15 Jan 2002, Nuno Gonçalves wrote:
 
   The only way I seem to be able to access the data on database B is to
   remove the other database from MySQL. From my tests it seems
 that MySQL
   only uses the table name to access the data (not using also
 the database
   name).
 
  The sql queries you are using on your database would help.  We are not
  mind-readers (well, I'm not!).
 
 



 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Altering InnoDB tables

2002-01-15 Thread Heikki Tuuri

John,

did you configure innodb_buffer_pool_size and InnoDB log files big? Look at
the online manual on the recommended sizes.

If the table is very big, then UNIQUE secondary keys will cause a lot of
disk i/o, because a disk read is required to check the constraint for each
row, and the insert buffer cannot be used.

Hmm... a fix would be to disable UNIQUE checking during the conversion. I
could add an option where you can switch the UNIQUE checking off in my.cnf.
That option would be used during big conversion procedures, if you already
know that the data satisifies the constraint.

Ok, I will introduce the my.cnf option

innodb_no_unique_checks

in 3.23.4x. Thank you for bringing this up :).

About Robert Ricci's question: SHOW TABLE STATUS FROM ... reports FOREIGN
KEY constraints in the table comment section.

Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on InnoDB



John Kemp wrote in message ...
I am also in the process of altering tables from MyISAM to INNODB. I
have one big problem - a very large table ( 5 million rows) with 5
indices/indexes on it, including a couple that are UNIQUE but with NULL
values allowed. Creating the last of these indices is taking an absurd
amount of time on my test system, which makes it impossible for me to
recommend this change for production as our systems would be down for
many days.

Here are the steps I took (note that after each failure, I recreated the
original data structure)

1) I tried altering the table directly to be Innodb. I stopped this
after 4 days, when all it said in the process list was 'copying to tmp
table' - after 4 days!
2) Then I tried mysqldumping the table structure, and changing MyISAM -
INNODB, dropped the table, and ran the mysqldump output back into the
database. The INSERTS ran horribly slowly - something like 50,000
inserts in 4 hours. This extrapolates to a query that would run for
several weeks on 5 million rows, so I stopped it again.
3) Then I tried dropping all the indices, altering the table to INNODB
and re-creating the indicies. This worked pretty quickly until the final
index creation, which is still running after more than 4 days.

What am I doing wrong? This seems like an unacceptable length of time to
convert a valid MyISAM table to Innodb, yet I REALLY need the row-level
locking ASAP!

Any help would be appreciated.

Table structure is shown below, as is the current mysqladmin processlist.

Thanks,

John



CREATE TABLE Subscriber (
   SubscriberID int(11) NOT NULL auto_increment,
   Email varchar(255) NOT NULL default '',
   Zipcode varchar(5) default NULL,
   InitialContactDate date NOT NULL default '-00-00',
   FirstName varchar(20) default NULL,
   LastName varchar(20) default NULL,
   OrigDate date NOT NULL default '-00-00',
   AlertWhenAvailable char(1) default NULL,
   Gender char(1) default NULL,
   DOB date default NULL,
   Password varchar(25) default NULL,
   SubscriberTypeID mediumint(9) default NULL,
   Attempts tinyint(4) NOT NULL default '0',
   Username varchar(255) default NULL,
   Address varchar(255) default NULL,
   City varchar(100) default NULL,
   State char(2) default NULL,
   Married char(1) default NULL,
   Age varchar(5) default NULL,
   Income varchar(20) default NULL,
   optin int(11) default NULL,
   Country char(2) default 'US',
   SourcePartnerID int(11) default '0',
   Occupation char(2) default NULL,
   PRIMARY KEY  (SubscriberID),
   UNIQUE KEY AK1Subscriber (Email),
   UNIQUE KEY XAK2Subscriber (Username),
   KEY xie2Subscriber (optin,Gender,DOB),
   KEY xie3Subscriber (Zipcode)
) TYPE=MyISAM;

__

++---+---++-++-
--+---+
| Id | User  | Host  | db | Command | Time   | State
  | Info
  |
++---+---++-++-
--+---+
| 87 | jkemp | localhost | streetmail | Query   | 250195 | copy to tmp
table | alter table Subscriber add unique index XAK2Subscriber (Username) |
| 95 | jkemp | localhost || Query   | 0  |
  | show processlist
  |
++---+---++-++-
--+---+

__
Robert P Ricci wrote:

 I've recently converted from using MyISAM to InnoDB tables, and am
 pleased with InnoDB so far. However, the inability to use 'ALTER TABLE'
 with InnoDB tables is very problematic, as our software is still under
 heavy development and our database schema changes frequently. I'm
 working on a way to automate the drop/create/repopulate 

Re: innoDB confusion

2002-01-15 Thread Heikki Tuuri

Aaron,

please look at http://www.innodb.com/features.html,
http://www.innodb.com/division.html, and http://www.innodb.com/ibman.html

Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on InnoDB


Rutledge, Aaron wrote in message ...
Hello,  I am new to this list and MySQL.  I am very excited about this
open source community.  I can definitely see MySQL becoming to database
servers, what Apache has become to web servers.
I am currently developing a mission critical manufacturing web
application in Java and I am leaning towards using MySQL as the back-end
DB.  Since MySQL has gotten excellent reviews as far as stability,
speed, and ease of use--and my application does not require foreign key
restraints or lots of bells and whistles --I decided it was worth a
shot.  My only concern from the onset was that it wasn't transactionally
safe.  I can't have the DB lose data if the server goes down.  I have
learned that InnoDB provides this functionality on top of MySQL, but the
interrelation between the two is very unclear to me.  I haven't found a
good FAQ for explaining what InnoDB does and how it does it with MySQL.
I've only found information in the 'do this, this and this to make this
work' style.  I am never sure if I am working with InnoDB or MySQL or
both.  I don't feel like I can really commit to this DB until I get a
good grasp of the complexity of this relationship.
So far I have set up the InnoDB data files and directories and have
MySQL up and running.  I set my my.ini file with
'default-table-type=innodb' and my innodb information.  Everything seems
great--I can create tables, do all my select statements, etc..
Everything seems easy as pie, but I can't shake the concern that I am
not understanding InnoDB.  So what I am wondering--am I creating
transactionally safe tables in the innodb format every time I create a
new table?  Do I no longer have to worry about innodb?  WHat about these
ibdata1 and ibdata2 files I created?  I am assuming these hold
transactional information.  SHould I be worried about whats in there?
Will these fill up with data and outgrow their pre-defined size?  I just
feel like I am missing something.  If anyone can point me to a good
low-level FAQ or book that might explain to me about what exactly going
on with this I would be grateful.  I have been to the Innodb.com site.
Great tutorial, but It leaves me with lots of questions--especially in
regards to coordination with MySQL.
Best Regards to all, Aaron





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: mysql-gui won't connect

2002-01-15 Thread Sinisa Milivojevic

Hi!

All you have to do is follow instructions from the README document.

Enter Options dialogue, fill up all entries carefully and click on
Save.

In SQL init command  set a location of the socket file, if both
client and server are running on the same Unix machine.

In any case, just follow instructions in README and you will be up and
going in the matter of minutes.

-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   ___/   www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




I have one question...

2002-01-15 Thread

I want to store long binary data in mysql 
I set max_allowed_packet size to 50M, but I can`t stor data 
mysql error code is ' 020114 17:34:30  Aborted connection 2 to db:
'lake' user: 'lake' host: `alia' (Got an error reading communication
packets)'

and jdbc error code is ' java.sql.SQLException: Communication link
failure: java.io.IOException'

I have read  'The protocol limits for max_allowed_packet is 16M in
MySQL 3.23 and 4G in MySQL 4.0'

What is protocol limits? 

How can I stor long binary data(50M) in mysql ? (longblob type field)

Please help me


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




synopsis of the problem (one line)

2002-01-15 Thread root

Description:

How-To-Repeat:

Fix:


Submitter-Id:  submitter ID
Originator:root
Organization:
 
MySQL support: [none | licence | email support | extended email support ]
Synopsis:  
Severity:  
Priority:  
Category:  mysql
Class: 
Release:   mysql-3.23.41 (Source distribution)

Environment:

System: Linux vice.squad.vice 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 2731 (Red Hat Linux 7.1 2.96-98)
Compilation info: CC='gcc'  CFLAGS='-O2 -march=i386 -mcpu=i686 -D_GNU_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE'  CXX='c++'  CXXFLAGS='-O2 -march=i386 
-mcpu=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE'  LDFLAGS=''
LIBC: 
lrwxrwxrwx1 root root   13 Dez 29 19:40 /lib/libc.so.6 - libc-2.2.4.so
-rwxr-xr-x2 root root  1282588 Set  4 20:49 /lib/libc-2.2.4.so
-rw-r--r--1 root root 27304836 Set  4 20:34 /usr/lib/libc.a
-rw-r--r--1 root root  178 Set  4 20:34 /usr/lib/libc.so
lrwxrwxrwx1 root root   10 Dez 29 20:18 /usr/lib/libc-client.a - 
c-client.a
Configure command: ./configure  i386-redhat-linux --prefix=/usr --exec-prefix=/usr 
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share 
--includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec 
--localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man 
--infodir=/usr/share/info --without-debug --without-readline --enable-shared 
--with-extra-charsets=complex --with-bench --localstatedir=/var/lib/mysql 
--with-unix-socket-path=/var/lib/mysql/mysql.sock --with-mysqld-user=mysql 
--with-extra-charsets=all --disable-assember --with-berkeley-db 
--enable-large-files=yes --enable-largefile=yes --with-thread-safe-client 
--enable-assembler










-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL can't tell the difference between two databases???

2002-01-15 Thread Nuno Gonçalves



- Original Message -
From: Javier Armendáriz [EMAIL PROTECTED]
To: Mailing list MySql [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 12:49 PM
Subject: RE: MySQL can't tell the difference between two databases???


 What happens if you try select * from db1.products and select * from
 db2.products;???

 Doing that does the same?


   Yes, it's exactly the same results.




  -Mensaje original-
  De: Nuno Gonçalves [mailto:[EMAIL PROTECTED]]
  Enviado el: martes, 15 de enero de 2002 13:24
  Para: Mailing list MySql
  Asunto: Re: MySQL can't tell the difference between two databases???
 
 
 
  It's something like this:
 
  mysql use db1
  mysql select * from products;
  ++-+-+--+--+
  | Id | Ref | Version | Type | Name |
  ++-+-+--+--+
  |  1 | XXX |   1 |1 | XXX  |
  ++-+-+--+--+
  1 row in set (0.27 sec)
 
  mysql use db2
  mysql select * from products;
  ++-+-+--+--+
  | Id | Ref | Version | Type | Name |
  ++-+-+--+--+
  |  1 | XXX |   1 |1 | XXX  |
  ++-+-+--+--+
  1 row in set (0.16 sec)
 
  I'm sure the table products on database db2 is empty, because of
  the results
  I get when I remove db1 from the system.
  The same select returns empty.
 
  Hope that helps. Thanks.
 
  Nuno A. S. Gonçalves
  [EMAIL PROTECTED]
 
 
  - Original Message -
  From: Duncan Hill [EMAIL PROTECTED]
  To: Nuno Gonçalves [EMAIL PROTECTED]
  Cc: Mailing list MySql [EMAIL PROTECTED]
  Sent: Tuesday, January 15, 2002 12:13 PM
  Subject: Re: MySQL can't tell the difference between two databases???
 
 
   On Tue, 15 Jan 2002, Nuno Gonçalves wrote:
  
The only way I seem to be able to access the data on database B is
to
remove the other database from MySQL. From my tests it seems
  that MySQL
only uses the table name to access the data (not using also
  the database
name).
  
   The sql queries you are using on your database would help.  We are not
   mind-readers (well, I'm not!).
  
  
 
 
 
  -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
 
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail
  [EMAIL PROTECTED]
  Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: pb with integrity constraint

2002-01-15 Thread Steve Edberg

See doc sections:

http://www.mysql.com/doc/A/N/ANSI_diff_Foreign_Keys.html
and
http://www.mysql.com/doc/C/R/CREATE_TABLE.html

 From the CREATE TABLE docs:

The FOREIGN KEY, CHECK, and REFERENCES clauses don't 
actually do anything. The syntax for them is provided only for 
compatibility, to make it easier to port code from other SQL servers 
and to run applications that create tables with references. See 
section 1.7.4 MySQL Differences Compared to ANSI SQL92.

And, judging by the .fr domain, you might be interested in French 
translations of the docs:

http://dev.nexen.net/docs/mysql/chargement.html


-steve


At 11:46 AM +0100 1/15/02, TOMASSONI Dominique wrote:
Hi the list,

I try to create tables with integrity constraint but it seems no running.

I've got the next script :

create table USERS
(
 USER_CODE   INT(8) not null,
 USER_NAME   VARCHAR(30)not null,  
 primary key (USER_CODE)
)
;
create table ENV
(
 USER_CODE   INT(8) not null,
 CODE_ENVVARCHAR(6) not null,
 primary key (USER_CODE, CODE_ENV),
 constraint FK_USER foreign key (USER_CODE) references USERS(USER_CODE)
)
;

The tables creation are ok, but when I insert values in the table ENV
without any data in USERS it works but normally it wouldn't.

Something bad in may script ?



-- 
++
| Steve Edberg  [EMAIL PROTECTED] |
| University of California, Davis  (530)754-9127 |
| Programming/Database/SysAdmin   http://pgfsun.ucdavis.edu/ |
++
| Restriction of free thought and free speech is the most dangerous of  |
| all subversions. It is the one un-American act that could most easily  |
| defeat us.|
| - Supreme Court Justice (1939-1975) William O. Douglas |
++

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Official State of Mysql-Max

2002-01-15 Thread Sinisa Milivojevic

Ross Davis writes:
 On the front screen of the mysql site the mysql-Max 3.23.47 is listed as 
 stable. 
 
 However on the download page it is said to be considered a beta yet? 
 
 The reason that I am asking this question, is that the Borland Delphi 
 Developers will not release a new version that supports the record locking 
 until this program is OFFICIALLY listed as stable. 
 
 If it is not yet listed as stable, then is there an ETA? 
 
 Thanks in advance.
 

We shall soon change our WWW page.

-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   ___/   www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: java.sql.SQLException: Lost connection to server during query the error is here

2002-01-15 Thread TAKAHASHI, Tomohiro
  Hi,

  What Application Server do you use?

  I think JDBC connection has been disconnected from MySQL
because that connection has not used for a long time.
  This error depends on Application Server. 

shashidhara n wrote:
 
 hello
 
 we are running web application using apache as web server and mysql as
 databse. after running server for 6- 8 hr it will give the following
 error
 
 java.sql.SQLException: Lost connection to server during query the error is
 here
 
 if we  restart apache server it will works
 
 i want to know why this problem occuring, any problem in mysql server
 or apache server
 please mail  to

-- 
TAKAHASHI, Tomohiro

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


Re: Unable to save result set - but why?

2002-01-15 Thread Gerald Clark

It sounds like two problems to me.

1. Check/repair your tables;

2. Check your return codes in your PHP script, and take appropiate action.

Randall Stone Tayler wrote:

From a SSH I run a query and get the following:

ERROR 1030: Got error 134 from table handler

From a browser, when I run the same query I get:

Warning: MySQL: Unable to save result set in [my php file here] on line 7

Warning: Supplied argument is not a valid MySQL result resource in [my php
file here] on line 8

If I add LIMIT 12 to the query, it can handle it, but anything above 12 and
it chokes.

Other queries run fine; the result set on this query has no more than 246
results, which seems pretty low to choke the system.

The server's running mysql Ver 11.15 Distrib 3.23.43, for pc-linux-gnu
(i686)

Randy Tayler
www.RandymThoughts.com
www.Singlesaints.com
If I had something funny to say, I'd put it here.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail 
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Insert failed

2002-01-15 Thread Gerald Clark

Looks like someone entered a  negative number for EventId, or it just 
reached its maximum value.
Check its maximum and minimum values.

Change it to an unsigned int.

Xavier NOPRE wrote:

Hi,

I try to insert a new record in a table. The key is an automatic ID.
The insert is refused due to duplicate key, but the key does not
exist. Why ? Is it a bug ?


Any idea ? Some help ?
Thanks

Xavier


Details:

The colums of the table:
++--+--+-+-++
| Field  | Type | Null | Key | Default | Extra
| ++--+--+-+-++
| EventType  | varchar(64)  | YES  | | NULL|  
|
| EventOrigin| varchar(64)  | YES  | | NULL|  
|
| EventText  | varchar(250) | YES  | | NULL|  
|
| EventTimeStamp | datetime | YES  | | NULL|  
|
| EventId| int(11)  |  | PRI | NULL|
auto_increment |
++--+--+-+-++

Operations tried:

mysql select count(*) from events;
+--+
| count(*) |
 +--+
|20506 |
+--+
1 row in set (0.19 sec)
mysql insert into events set EventType='TEST',EventOrigin='me';
ERROR 1062: Duplicate entry '20507' for key 1
mysql select * from events where EventId=20507;
Empty set (0.00 sec)



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail 
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL can't tell the difference between two databases???

2002-01-15 Thread Gerald Clark

Is db2 a symlink to db1?

Nuno Gonçalves wrote:

Hi!

I've got two mysql databases that have exactly the same structure (same
tables using BDB, columns, etc.) and different data.

When I try to do a select on a table from database A, I get the right
results, but when I try the same select on the same table from database B, I
get the results from the database A.

The only way I seem to be able to access the data on database B is to remove
the other database from MySQL.
From my tests it seems that MySQL only uses the table name to access the
data (not using also the database name).

Anyone has an idea, of why this happens.

Nuno A. S. Gonçalves
[EMAIL PROTECTED]





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail 
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL can't tell the difference between two databases???

2002-01-15 Thread Nuno Gonçalves



- Original Message -
From: Gerald Clark [EMAIL PROTECTED]
To: Nuno Gonçalves [EMAIL PROTECTED]
Cc: Mailing list MySql [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 2:35 PM
Subject: Re: MySQL can't tell the difference between two databases???


 Is db2 a symlink to db1?

db2 is a symlink, but not to db1. I'm sure of that.

I've done some more tests. It appears that if you change something on one of
the tables (adding a new column on the table products of db1), mysql decides
that both tables on the two databases are different, and it starts to give
the correct results.

I've also tested with INSERT and the same thing happens:
use db1
INSERT INTO products  ...;
use db2
INSERT INTO products  ...;
The first insert ends up in both databases, and the second only appears in
the first database.

Well, if this isn't a bug I don't know what it is.



 Nuno Gonçalves wrote:

 Hi!
 
 I've got two mysql databases that have exactly the same structure (same
 tables using BDB, columns, etc.) and different data.
 
 When I try to do a select on a table from database A, I get the right
 results, but when I try the same select on the same table from database
B, I
 get the results from the database A.
 
 The only way I seem to be able to access the data on database B is to
remove
 the other database from MySQL.
 From my tests it seems that MySQL only uses the table name to access the
 data (not using also the database name).
 
 Anyone has an idea, of why this happens.
 
 Nuno A. S. Gonçalves
 [EMAIL PROTECTED]
 
 
 
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 



 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL can't tell the difference between two databases???

2002-01-15 Thread Sinisa Milivojevic

Nuno Gonçalves writes:
 
 
 - Original Message -
 From: Gerald Clark [EMAIL PROTECTED]
 To: Nuno Gonçalves [EMAIL PROTECTED]
 Cc: Mailing list MySql [EMAIL PROTECTED]
 Sent: Tuesday, January 15, 2002 2:35 PM
 Subject: Re: MySQL can't tell the difference between two databases???
 
 
  Is db2 a symlink to db1?
 
 db2 is a symlink, but not to db1. I'm sure of that.
 
 I've done some more tests. It appears that if you change something on one of
 the tables (adding a new column on the table products of db1), mysql decides
 that both tables on the two databases are different, and it starts to give
 the correct results.
 
 I've also tested with INSERT and the same thing happens:
 use db1
 INSERT INTO products  ...;
 use db2
 INSERT INTO products  ...;
 The first insert ends up in both databases, and the second only appears in
 the first database.
 
 Well, if this isn't a bug I don't know what it is.
 

Hi!

I must admit that this sounds very strange.

Can you please make a test case, so that we can investigate a matter. 

Please follow instructions from the following chapter in our manual : 


How to Report Bugs or Problems
..


-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   ___/   www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: MySQL can't tell the difference between two databases???

2002-01-15 Thread Javier Armendáriz

I really don´t undarstand

My Linux is working fine in a situation like yours. I´ve simulated your
situation


mysql use db2;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql select * from tab1;
+++
| id | name   |
+++
|  1 | javier |
+++
1 row in set (0.00 sec)


mysql use db1;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql select * from tab1;
Empty set (0.00 sec)


My database and table description:

ysql use db1;
Database changed
mysql show tables;
+---+
| Tables_in_db1 |
+---+
| tab1  |
+---+
1 row in set (0.01 sec)

mysql describe tab1;
+---+-+--+-+-++
| Field | Type| Null | Key | Default | Extra  |
+---+-+--+-+-++
| id| int(11) |  | PRI | NULL| auto_increment |
| name  | varchar(10) | YES  | | NULL||
+---+-+--+-+-++
2 rows in set (0.00 sec)

mysql select * from tab1;
Empty set (0.01 sec)






mysql use db2
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql show tables;
+---+
| Tables_in_db2 |
+---+
| tab1  |
+---+
1 row in set (0.00 sec)

mysql describe tab1;
+---+-+--+-+-++
| Field | Type| Null | Key | Default | Extra  |
+---+-+--+-+-++
| id| int(11) |  | PRI | NULL| auto_increment |
| name  | varchar(10) | YES  | | NULL||
+---+-+--+-+-++
2 rows in set (0.00 sec)

mysql select * from tab1;
+++
| id | name   |
+++
|  1 | javier |
+++
1 row in set (0.01 sec)

And finally my server and sistem data:

mysql status;
--
mysql  Ver 11.15 Distrib 3.23.44, for pc-linux-gnu (i686)

Connection id:  6
Current database:   db1
Current user:   [EMAIL PROTECTED]
Current pager:  stdout
Using outfile:  ''
Server version: 3.23.44
Protocol version:   10
Connection: linux2 via TCP/IP
Client characterset:latin1
Server characterset:latin1
TCP port:   3306
Uptime: 7 hours 27 min 52 sec


Red Hat Linux release 7.0 (Guinness)
Kernel 2.2.16-22 on an i586


 -Mensaje original-
 De: Gerald Clark [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 15 de enero de 2002 15:35
 Para: Nuno Gonçalves
 CC: Mailing list MySql
 Asunto: Re: MySQL can't tell the difference between two databases???


 Is db2 a symlink to db1?


If it was deleting one database or table must delete de another one.



Javier Armendáriz
[EMAIL PROTECTED]


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




copying databases

2002-01-15 Thread Bryan McCloskey

I am attempting to make a copy of my database, so that I will have one copy 
that my scripts in development can tinker with, while the functional version 
remains safe and unchanged. However, I am having difficulty figuring out how 
to do this. All that is important is that I create a copy of the database 
table descriptions; the data itself is not important for the test copy. (In 
fact, it would be better if I could _not_ copy the thousands of rows of 
data, so my test version would be smaller and faster.) Anyone know how to do 
this?

-bryan

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQL can't tell the difference between two databases???

2002-01-15 Thread Nuno Gonçalves


Maybe it has something to do with the MySql version and OS i'm using:

I'm running 3.23.42-max-nt on a Win2000 system, using BDB tables.

Nuno A. S. Gonçalves
[EMAIL PROTECTED]


- Original Message -
From: Javier Armendáriz [EMAIL PROTECTED]
To: Mailing list MySql [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 3:28 PM
Subject: RE: MySQL can't tell the difference between two databases???


 I really don´t undarstand

 My Linux is working fine in a situation like yours. I´ve simulated your
 situation


 mysql use db2;
 Reading table information for completion of table and column names
 You can turn off this feature to get a quicker startup with -A

 Database changed
 mysql select * from tab1;
 +++
 | id | name   |
 +++
 |  1 | javier |
 +++
 1 row in set (0.00 sec)


 mysql use db1;
 Reading table information for completion of table and column names
 You can turn off this feature to get a quicker startup with -A

 Database changed
 mysql select * from tab1;
 Empty set (0.00 sec)


 My database and table description:

 ysql use db1;
 Database changed
 mysql show tables;
 +---+
 | Tables_in_db1 |
 +---+
 | tab1  |
 +---+
 1 row in set (0.01 sec)

 mysql describe tab1;
 +---+-+--+-+-++
 | Field | Type| Null | Key | Default | Extra  |
 +---+-+--+-+-++
 | id| int(11) |  | PRI | NULL| auto_increment |
 | name  | varchar(10) | YES  | | NULL||
 +---+-+--+-+-++
 2 rows in set (0.00 sec)

 mysql select * from tab1;
 Empty set (0.01 sec)






 mysql use db2
 Reading table information for completion of table and column names
 You can turn off this feature to get a quicker startup with -A

 Database changed
 mysql show tables;
 +---+
 | Tables_in_db2 |
 +---+
 | tab1  |
 +---+
 1 row in set (0.00 sec)

 mysql describe tab1;
 +---+-+--+-+-++
 | Field | Type| Null | Key | Default | Extra  |
 +---+-+--+-+-++
 | id| int(11) |  | PRI | NULL| auto_increment |
 | name  | varchar(10) | YES  | | NULL||
 +---+-+--+-+-++
 2 rows in set (0.00 sec)

 mysql select * from tab1;
 +++
 | id | name   |
 +++
 |  1 | javier |
 +++
 1 row in set (0.01 sec)

 And finally my server and sistem data:

 mysql status;
 --
 mysql  Ver 11.15 Distrib 3.23.44, for pc-linux-gnu (i686)

 Connection id:  6
 Current database:   db1
 Current user:   [EMAIL PROTECTED]
 Current pager:  stdout
 Using outfile:  ''
 Server version: 3.23.44
 Protocol version:   10
 Connection: linux2 via TCP/IP
 Client characterset:latin1
 Server characterset:latin1
 TCP port:   3306
 Uptime: 7 hours 27 min 52 sec


 Red Hat Linux release 7.0 (Guinness)
 Kernel 2.2.16-22 on an i586


  -Mensaje original-
  De: Gerald Clark [mailto:[EMAIL PROTECTED]]
  Enviado el: martes, 15 de enero de 2002 15:35
  Para: Nuno Gonçalves
  CC: Mailing list MySql
  Asunto: Re: MySQL can't tell the difference between two databases???
 
 
  Is db2 a symlink to db1?
 

 If it was deleting one database or table must delete de another one.


 
 Javier Armendáriz
 [EMAIL PROTECTED]


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: copying databases

2002-01-15 Thread Rodney Broom

Hi Bryan,

Start with this:

  % mysqldump --help


From: Bryan McCloskey [EMAIL PROTECTED]

 ...make a copy of my database

  % mysqldump --opt database_one  copy.sql


 ...data itself is not important...
 ...better if I could _not_ copy the thousands of rows...

  % mysqldump --opt -d database_one  copy.sql


To reload into database_two:

  % mysql [options] database_two  copy.sql
  # Or
  % cat copy.sql | mysql [options] database_two


If you need to create a database:

  % mysqladmin create database_two

---
Rodney Broom
Programmer: Desert.Net




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




MySQL - Win SQL2k DTS - MySQL

2002-01-15 Thread jfobel

Hello,

Has anyone successfully implemented using a Microsoft SQL 2000 DTS package to copy 
data from one mysql database into another mysql database? I am getting some errors 
pertaining to 'cannot insert blob fields'. -which they are not blob fields. I've tried 
this on text, char, varchar, tinytext.

I feel like the MyODBC driver is very limited in the data types that it supports.

Thanks,


Jack
[EMAIL PROTECTED]




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Altering InnoDB tables

2002-01-15 Thread John Kemp

Heikki,

I didn't config the log that big, but the buffer pool is using 1GB of 
memory, and yes, the UNIQUE index is definitely causing a lot of disk I/O!

I will be very happy to see your change, and thanks for (as usual) being 
so quick to make changes to an already very welcome addition to MySQL.

I'll add this - we're running several tables that have 5-10 million 
rows, one logging table with 56 million rows on a web-based system that 
is used by 30 people at our company, editing our newsletters (which are 
stored in the database), and almost 1 million email subscribers, who 
receive 3 database-driven emails every week, and use our similarly 
data-driven website. So MySQL is dealing with a lot of roughly 
simultaneous requests. Row-level locking has improved the performance 
massively, and made my internal and external customers happier, which 
makes my day better (fewer complaints!)

Thanks again,

John Kemp
Director, Software Development
Streetmail

Heikki Tuuri wrote:

 John,
 
 did you configure innodb_buffer_pool_size and InnoDB log files big? Look at
 the online manual on the recommended sizes.
 
 If the table is very big, then UNIQUE secondary keys will cause a lot of
 disk i/o, because a disk read is required to check the constraint for each
 row, and the insert buffer cannot be used.
 
 Hmm... a fix would be to disable UNIQUE checking during the conversion. I
 could add an option where you can switch the UNIQUE checking off in my.cnf.
 That option would be used during big conversion procedures, if you already
 know that the data satisifies the constraint.
 
 Ok, I will introduce the my.cnf option
 
 innodb_no_unique_checks
 
 in 3.23.4x. Thank you for bringing this up :).
 
 About Robert Ricci's question: SHOW TABLE STATUS FROM ... reports FOREIGN
 KEY constraints in the table comment section.
 
 Best regards,
 
 Heikki Tuuri
 Innobase Oy
 ---
 Order technical MySQL/InnoDB support at https://order.mysql.com/
 See http://www.innodb.com for the online manual and latest news on InnoDB
 
 
 
 John Kemp wrote in message ...
 
I am also in the process of altering tables from MyISAM to INNODB. I
have one big problem - a very large table ( 5 million rows) with 5
indices/indexes on it, including a couple that are UNIQUE but with NULL
values allowed. Creating the last of these indices is taking an absurd
amount of time on my test system, which makes it impossible for me to
recommend this change for production as our systems would be down for
many days.

Here are the steps I took (note that after each failure, I recreated the
original data structure)

1) I tried altering the table directly to be Innodb. I stopped this
after 4 days, when all it said in the process list was 'copying to tmp
table' - after 4 days!
2) Then I tried mysqldumping the table structure, and changing MyISAM -
INNODB, dropped the table, and ran the mysqldump output back into the
database. The INSERTS ran horribly slowly - something like 50,000
inserts in 4 hours. This extrapolates to a query that would run for
several weeks on 5 million rows, so I stopped it again.
3) Then I tried dropping all the indices, altering the table to INNODB
and re-creating the indicies. This worked pretty quickly until the final
index creation, which is still running after more than 4 days.

What am I doing wrong? This seems like an unacceptable length of time to
convert a valid MyISAM table to Innodb, yet I REALLY need the row-level
locking ASAP!

Any help would be appreciated.

Table structure is shown below, as is the current mysqladmin processlist.

Thanks,

John



CREATE TABLE Subscriber (
  SubscriberID int(11) NOT NULL auto_increment,
  Email varchar(255) NOT NULL default '',
  Zipcode varchar(5) default NULL,
  InitialContactDate date NOT NULL default '-00-00',
  FirstName varchar(20) default NULL,
  LastName varchar(20) default NULL,
  OrigDate date NOT NULL default '-00-00',
  AlertWhenAvailable char(1) default NULL,
  Gender char(1) default NULL,
  DOB date default NULL,
  Password varchar(25) default NULL,
  SubscriberTypeID mediumint(9) default NULL,
  Attempts tinyint(4) NOT NULL default '0',
  Username varchar(255) default NULL,
  Address varchar(255) default NULL,
  City varchar(100) default NULL,
  State char(2) default NULL,
  Married char(1) default NULL,
  Age varchar(5) default NULL,
  Income varchar(20) default NULL,
  optin int(11) default NULL,
  Country char(2) default 'US',
  SourcePartnerID int(11) default '0',
  Occupation char(2) default NULL,
  PRIMARY KEY  (SubscriberID),
  UNIQUE KEY AK1Subscriber (Email),
  UNIQUE KEY XAK2Subscriber (Username),
  KEY xie2Subscriber (optin,Gender,DOB),
  KEY xie3Subscriber (Zipcode)
) TYPE=MyISAM;

__

++---+---++-++-

 --+---+
 
| Id | User  | Host 

[spamreply@orbz.org: Re: [Momo.Yu: Multi-function Digital Camera - PDC-31]]

2002-01-15 Thread System Administrator a.k.a. The Root of the Problem

Getting more problems again?

- Forwarded message from ORBZ Spam Report Reply [EMAIL PROTECTED] -

Return-Path: [EMAIL PROTECTED]
Received: from orbz.org ([EMAIL PROTECTED] [205.231.149.25])
by doctor.nl2k.ab.ca (8.12.2/8.12.2) with SMTP id g0FGCG2O011901
for [EMAIL PROTECTED]; Tue, 15 Jan 2002 09:12:16 -0700 (MST)
Received: (qmail 22686 invoked by uid 1017); 15 Jan 2002 16:12:46 -
Date: 15 Jan 2002 16:12:46 -
Message-ID: [EMAIL PROTECTED]
From: ORBZ Spam Report Reply [EMAIL PROTECTED]
Subject: Re: [Momo.Yu: Multi-function Digital Camera - PDC-31]
To: [EMAIL PROTECTED]
X-processor: spam

Results for 204.209.81.1:
br
bWarning/b:  Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (2) in b/home/ian/orbz-apache/htdocs/functions.php/b on line 
b35/bbr
br
bWarning/b:  Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (2) in b/home/ian/orbz-apache/htdocs/functions.php/b on line 
b36/bbr
br
bWarning/b:  MySQL Connection Failed: Can't connect to local MySQL server 
through socket '/tmp/mysql.sock' (2)
 in b/home/ian/orbz-apache/htdocs/functions.php/b on line b36/bbr
br
bWarning/b:  MySQL:  A link to the server could not be established in 
b/home/ian/orbz-apache/htdocs/functions.php/b on line b36/bbr
br
bWarning/b:  Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (2) in b/home/ian/orbz-apache/htdocs/functions.php/b on line 
b40/bbr
br
bWarning/b:  MySQL Connection Failed: Can't connect to local MySQL server 
through socket '/tmp/mysql.sock' (2)
 in b/home/ian/orbz-apache/htdocs/functions.php/b on line b40/bbr
br
bWarning/b:  MySQL:  A link to the server could not be established in 
b/home/ian/orbz-apache/htdocs/functions.php/b on line b40/bbr
br
bWarning/b:  Supplied argument is not a valid MySQL result resource in 
b/home/ian/orbz-apache/htdocs/functions.php/b on line b41/bbr
br
bWarning/b:  Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (2) in b/home/ian/orbz-apache/htdocs/functions.php/b on line 
b58/bbr
br
bWarning/b:  MySQL Connection Failed: Can't connect to local MySQL server 
through socket '/tmp/mysql.sock' (2)
 in b/home/ian/orbz-apache/htdocs/functions.php/b on line b58/bbr
br
bWarning/b:  MySQL:  A link to the server could not be established in 
b/home/ian/orbz-apache/htdocs/functions.php/b on line b58/bbr
This IP has been added to the queue for checking.
Results for 127.0.0.1:
This is a private IP and will not be added.

- End forwarded message -

-- 
contact:
Dave Yadallee  NetKnow  The Internet Knowledge Company
[EMAIL PROTECTED]  http://www.nl2k.ab.ca
990-3244

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: mysql replication and failover

2002-01-15 Thread Steve Rapaport

Ronnie, I'm copying this to the list so it ends up in the archive for
anyone to use in future.

In answer to your question about the floating IP for the master, I'm
using heartbeat, more at http://www.samag.com/documents/s=1146/sam0109c/0109c.htm

My semi-scripts and explanations are at the bottom of this mail
as I sent them to the
last person who asked.

Best to all,
Steve Rapaport.

Ronnie Garcia wrote:

Hi Steve,
  I just found your post about failover and mysql on google ( 
http://groups.google.com/groups?hl=frthreadm=a11dqg%242slq%241%40FreeBSD.csie.NCTU.edu.twrnum=7prev=/groups%3Fq%3Dfailover%2Bmysql%26hl%3Dfr%26scoring%3Dd%26selm%3Da11dqg%25242slq%25241%2540FreeBSD.csie.NCTU.edu.tw%26rnum%3D7)

  I would be pleased to get your half-scripted solution, since i want my 
slave to get the INSERT and UPDATES while my master is down.

  Can you also explain me how do you handle the floating IP address for the 
master ? I'm thinking about nsupdate .. ?

  Thank you much,
Ronnie.


-- part of your post --

1) Use circular replication, where all machines are simulataneously master and
slave.  Problem: recovery from a screwup is really hard.
2) Change  roles upon failure:  Use CHANGE MASTER TO on all the slaves.
Problems: tricky to set up and test.  Hints in the FAQ help but are not
really tested.  Configuration files may need to be changed at failure time.
3) Never change roles, slave becomes temporary master on failure, manual reset.
This is easiest to setup and test, but inelegant to reset.

For 2) and 3) you also need to have a floating IP address for your master
that can be changed upon failure to point to the current master, using
BIND or using a gratuitous ARP scheme.


Anyway, I'm currently using scheme 3, and I'll be happy to send you my

half-scripted solution which you are welcome to improve upon.  I was also
using scheme 1 before, but gave up after something mis-synchronized the
replication logs and it was impossible to recover.


ere are the scripts I'm (sort of) using, and how to run them, on a 2-machine 
system.  Note that the order of operations could be improved to reduce 
downtime, but I don't see how it could be reduced to zero yet.  When I
tried it this way I had only about 30 seconds down, but that's partly because
I only copied the databases that update!


This is for use only when the master has failed, and the slave has been
making updates for some time.

[steve@db1 mysql]$ cat reset-slave.sh
#!/bin/sh
# the SLAVE half of what to do when recovering from a failover
# this runs on db1, the SLAVE.
#
# Steve Dec 27, 2001

# Note the master half is reset-slave.sh, on db2.

# stop slave replication
mysqladmin slave-stop

# stop updates and freeze data files : note this is incorrect syntax!
mysqladmin flush-tables --with-read-lock
# this won't work, you need to run something like:
# mysql -uuser -ppassword -e FLUSH TABLES WITH READ LOCK

#copy the new dynamic databases to db2  NOTE Omit any large read-only db's!
cd /var/lib/mysql
tar cvzf STEVE/reset.tgz atono mysql push
scp STEVE/reset.tgz steve@db2:/var/lib/mysql/STEVE
password

# (perhaps redundant) tell slave that bin files are meaningless
mysqladmin reset-slave

# stop the slave
mysqladmin shutdown

# remove all the bin files to reset the slave
rm db1-bin*

# reboot this system so heartbeat forces dbhost to switch over to db2.
sync
sync
/sbin/telinit 6




And now, on the other machine (db2) reset it to be the master:

[steve@db2 mysql]$ cat reset-master.sh
#!/bin/sh
# the MASTER half of what to do when recovering from a failover
#
# Steve Dec 27, 2001

# Note the slave half is reset-slave.sh, on db1.
# THE SLAVE HALF IS TO BE RUN FIRST, with master shut down.

# Shutdown the master
mysqladmin shutdown

#copy the new dynamic databases from db1
cd /var/lib/mysql
tar xvzf STEVE/reset.tgz

# remove all the bin files to reset the master
rm db2-bin*

# start the master
mysqladmin start

# (perhaps redundant) tell master that bin files are gone
mysqladmin reset-master




Reminder:
For 2) and 3) you also need to have a floating IP address for your
master that can be changed upon failure to point to the current
master, using BIND or using a gratuitous ARP scheme.

(Mine is gratuitous ARP with heartbeat detection.)




If you get scheme 2) to work, let me know, I might want to change.


Scheme 2 would probably be best for our environment, as I don't plan
on being here forever to baby it, so the more the system can do on
its own the better:) I'd definitely like to take a look at your
script to see if it gives me any ideas on how to get from 3 to 2


Agreed here.

(they seem like pretty much the same idea, just one is more complete
than the other)


I wish I could agree with you.  Scheme 2 is pretty different, since
there's no data copying going on, but the configuration files must
be changed (I think) as well as telling all the systems, in the
correct order, to change masters.  Also, the dying master must
remember to record its SHOW MASTER 

Re: innoDB confusion

2002-01-15 Thread Heikki Tuuri

Aaron,

-Original Message-
From: Rutledge, Aaron [EMAIL PROTECTED]
To: Heikki Tuuri [EMAIL PROTECTED]
Date: Tuesday, January 15, 2002 7:13 PM
Subject: RE: innoDB confusion


Thank You Heikki,
   That information helps a lot.  A couple quick questions if you dont
mind:

In regards to the statement:

InnoDB stores the tables defined as type InnoDB to its own tablespace
and builds indexes to the tables in its own tablespace.

I am assuming the tablespaces are the ibdata files.  Does it store the


Yes the tablespace is the data files concatenated.

actual records here, or only the indexes and table definitions?  When
using innoDB tables, is anything stored in the MySQL/data directory, or
is everything in the innoDB tablespace?  The innoDB tablespace seems a


Everything is stored to the tablespace, except the tablename.frm files which
the MySQL interpreter uses to store its own table schemas.

little voodoo to me.  I am expecially concerned because they are a fixed
size and I dont understand how MySQL communicates with them.


You must make the data files big enough that your application fits there.
Note that you are then safe from the problem that someone inadvertently
fills the hard disk. That is the benefit of preallocation.

Highest regards,
Aaron


Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on InnoDB




-Original Message-
From: Heikki Tuuri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 6:08 AM
To: [EMAIL PROTECTED]
Subject: Re: innoDB confusion


Aaron,

please look at http://www.innodb.com/features.html,
http://www.innodb.com/division.html, and
http://www.innodb.com/ibman.html

Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on
InnoDB


Rutledge, Aaron wrote in message ...
Hello,  I am new to this list and MySQL.  I am very excited about this
open source community.  I can definitely see MySQL becoming to database
servers, what Apache has become to web servers.
I am currently developing a mission critical manufacturing web
application in Java and I am leaning towards using MySQL as the
back-end
DB.  Since MySQL has gotten excellent reviews as far as stability,
speed, and ease of use--and my application does not require foreign key
restraints or lots of bells and whistles --I decided it was worth a
shot.  My only concern from the onset was that it wasn't
transactionally
safe.  I can't have the DB lose data if the server goes down.  I have
learned that InnoDB provides this functionality on top of MySQL, but
the
interrelation between the two is very unclear to me.  I haven't found a
good FAQ for explaining what InnoDB does and how it does it with MySQL.
I've only found information in the 'do this, this and this to make this
work' style.  I am never sure if I am working with InnoDB or MySQL or
both.  I don't feel like I can really commit to this DB until I get a
good grasp of the complexity of this relationship.
So far I have set up the InnoDB data files and directories and have
MySQL up and running.  I set my my.ini file with
'default-table-type=innodb' and my innodb information.  Everything
seems
great--I can create tables, do all my select statements, etc..
Everything seems easy as pie, but I can't shake the concern that I am
not understanding InnoDB.  So what I am wondering--am I creating
transactionally safe tables in the innodb format every time I create a
new table?  Do I no longer have to worry about innodb?  WHat about
these
ibdata1 and ibdata2 files I created?  I am assuming these hold
transactional information.  SHould I be worried about whats in there?
Will these fill up with data and outgrow their pre-defined size?  I
just
feel like I am missing something.  If anyone can point me to a good
low-level FAQ or book that might explain to me about what exactly going
on with this I would be grateful.  I have been to the Innodb.com site.
Great tutorial, but It leaves me with lots of questions--especially in
regards to coordination with MySQL.
Best Regards to all, Aaron





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Tergat MySQL Studio

2002-01-15 Thread Chris Lott

Has anyone had a chance to try out the new MySQL Studio product
(http://www.mysqlstudio.com/feature.php3)? There doesn't appear to be any
kind of demo, ad while it is only $70, I figured I'd check with all of you
before trying it.

What I would really like is something akin to ER Studio and other
Embarcadero products I use for SQL Server that would work with (or also
with) MySQL! Sure makes dealing with massively complex relationships and
structures more convenient, either with InnoDB or with forthcoming MySQL 4.1
...

c
--
Chris Lott -- http://www.chrislott.org/

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Foreign keys

2002-01-15 Thread Pierre Radulescu

Hi,

I am trying two create two innodb tables:

1.
CREATE TABLE FIRST (NAME VARCHAR(15), COD VARCHAR(10) NOT NULL, PRIMARY
KEY(COD)) TYPE=INNODB;

2.
CREATE TABLE SECOND (ID INT NOT NULL, F_COD VARCHAR(10), PRIMARY
KEY(ID), INDEX PAR_IND(F_COD), FOREIGN KEY(F_COD) REFERENCES FIRST(COD))
TYPE=INNODB;

The second table cannot be created (errno: 150)

Thanks in advance for help!

Pierre





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




My ODBC Error

2002-01-15 Thread Frankie Cooke

Hello All

I can currently connect to a Mysql database on my local machine, a windows
o/s.  However, when I try and do this on unix - get the error:

Vbscript Runtime error 'ASP 0185 : -2147467259'
Data source name not found or no default driver specified

include/dbconnectcrop.asp,line 11


Line 11 is the where I am opening the connection.  I feel that I have not
matched the driver name.  Is the driver MyODBC called something different
on Unix, other than MySQL.  Below is my conenction string.

%

' Connect to MySQL database for passwords  section documents

Dim dbconnect, anyRs, insComm

set dbconnect=Server.CreateObject(ADODB.Connection)

dbconnect.ConnectionString=Driver=MySQL;server=localhost;Database=cropwise;


dbconnect.Open

%

Thanks for any help

Frankie




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: innoDB confusion

2002-01-15 Thread Rutledge, Aaron

One final question, and I am done.  You have helped me
tremendously--thank you.  Wow, I really didn't expect the developer of
the software to answer my questions--this is terrific.  

Is there way to verify that the tables I create are in the InnoDB
tablespace?  I am assuming that if I set 'default-table-type=innodb' in
my.ini that all tables created by the MySQL client will be created in
the innodb tablespace.  However, they also show up in the MySQL data
directory as .frm files.  How do I also know that it was created in the
InnoDB tablespace?  Aaron



-Original Message-
From: Heikki Tuuri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 10:43 AM
To: Rutledge, Aaron
Cc: [EMAIL PROTECTED]
Subject: Re: innoDB confusion


Aaron,

-Original Message-
From: Rutledge, Aaron [EMAIL PROTECTED]
To: Heikki Tuuri [EMAIL PROTECTED]
Date: Tuesday, January 15, 2002 7:13 PM
Subject: RE: innoDB confusion


Thank You Heikki,
   That information helps a lot.  A couple quick questions if you dont
mind:

In regards to the statement:

InnoDB stores the tables defined as type InnoDB to its own tablespace
and builds indexes to the tables in its own tablespace.

I am assuming the tablespaces are the ibdata files.  Does it store the


Yes the tablespace is the data files concatenated.

actual records here, or only the indexes and table definitions?  When
using innoDB tables, is anything stored in the MySQL/data directory, or
is everything in the innoDB tablespace?  The innoDB tablespace seems a


Everything is stored to the tablespace, except the tablename.frm files
which
the MySQL interpreter uses to store its own table schemas.

little voodoo to me.  I am expecially concerned because they are a
fixed
size and I dont understand how MySQL communicates with them.


You must make the data files big enough that your application fits
there.
Note that you are then safe from the problem that someone inadvertently
fills the hard disk. That is the benefit of preallocation.

Highest regards,
Aaron


Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on
InnoDB




-Original Message-
From: Heikki Tuuri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 6:08 AM
To: [EMAIL PROTECTED]
Subject: Re: innoDB confusion


Aaron,

please look at http://www.innodb.com/features.html,
http://www.innodb.com/division.html, and
http://www.innodb.com/ibman.html

Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on
InnoDB


Rutledge, Aaron wrote in message ...
Hello,  I am new to this list and MySQL.  I am very excited about this
open source community.  I can definitely see MySQL becoming to
database
servers, what Apache has become to web servers.
I am currently developing a mission critical manufacturing web
application in Java and I am leaning towards using MySQL as the
back-end
DB.  Since MySQL has gotten excellent reviews as far as stability,
speed, and ease of use--and my application does not require foreign
key
restraints or lots of bells and whistles --I decided it was worth a
shot.  My only concern from the onset was that it wasn't
transactionally
safe.  I can't have the DB lose data if the server goes down.  I have
learned that InnoDB provides this functionality on top of MySQL, but
the
interrelation between the two is very unclear to me.  I haven't found
a
good FAQ for explaining what InnoDB does and how it does it with
MySQL.
I've only found information in the 'do this, this and this to make
this
work' style.  I am never sure if I am working with InnoDB or MySQL or
both.  I don't feel like I can really commit to this DB until I get a
good grasp of the complexity of this relationship.
So far I have set up the InnoDB data files and directories and have
MySQL up and running.  I set my my.ini file with
'default-table-type=innodb' and my innodb information.  Everything
seems
great--I can create tables, do all my select statements, etc..
Everything seems easy as pie, but I can't shake the concern that I am
not understanding InnoDB.  So what I am wondering--am I creating
transactionally safe tables in the innodb format every time I create a
new table?  Do I no longer have to worry about innodb?  WHat about
these
ibdata1 and ibdata2 files I created?  I am assuming these hold
transactional information.  SHould I be worried about whats in there?
Will these fill up with data and outgrow their pre-defined size?  I
just
feel like I am missing something.  If anyone can point me to a good
low-level FAQ or book that might explain to me about what exactly
going
on with this I would be grateful.  I have been to the Innodb.com site.
Great tutorial, but It leaves me with lots of questions--especially in
regards to coordination with MySQL.
Best Regards to all, Aaron






RE: DAYOFYEAR()

2002-01-15 Thread Curtis Gordon

It's not my perl code, that error comes from webmin when I try to run that 
query. It's okay though, I have solved the problem, I'm just saving the date 
and the time separately now and it all works great. Thank you for the help

(C:

From: Daniel Rosher [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Curtis Gordon [EMAIL PROTECTED]
Subject: RE: DAYOFYEAR()
Date: Mon, 14 Jan 2002 16:36:07 +1300

Curtis,

This is not a mysql issue ('Error - Perl execution failed')

works fine for me:

my $hashref = $dbh-selectall_hashref(END_SQL);
 select DAYOFYEAR('2002-01-14 11:08:40')
END_SQL

printing with Data::Dumper produces

$VAR1 = [
   {
 'DAYOFYEAR(\'2002-01-14 11:08:40\')' = '14'
   }
 ];

as expected.

Something is wrong with your perl code.

Regards,
Dan
  -Original Message-
  From: Curtis Gordon [mailto:[EMAIL PROTECTED]]
  Sent: Monday, 14 January 2002 4:24 p.m.
  To: [EMAIL PROTECTED]
  Subject: DAYOFYEAR()
 
 
  Hi! I'm storing a date in this format :
 
  2002-01-13 11:08:40
  -mm-dd hh:mm:ss
 
  This is great because it gives me the date and the time, which I need.
  I want to compare this date from the database to the current DAYOFYEAR()
 
  but when I do this
  select DAYOFYEAR('2002-01-13 11:08:40')
 
  I get this
  Error - Perl execution failed
 
  Modification of non-creatable array value attempted, subscript -1 at
  ./mysql-lib.pl line 187, line 2.
 
 
 
  It works great when I do select DAYOFYEAR(NOW()) though, I'm totally
  confused, is this a known bug or is there a work around that
  anybody knows
  of that you can let me in on?
 
  Ulitmately I want to compare todays DAYOFYEAR to the DAYOFYEAR
  from fields
  in the database to establish entries that were created today.
 
  I'm looking at what I have written here and I think I have
  confused myself,
  if this is not clear, please feel free to flame me.
 
  I'm looking forward to any light that can be shed on this problem.
 
 
 
 
  _
  Join the world’s largest e-mail service with MSN Hotmail.
  http://www.hotmail.com
 
 
  -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
 
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail
  [EMAIL PROTECTED]
  Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 





_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




access denied set mysql root user

2002-01-15 Thread Kory Wheatley

I installed the binary of mysql 3.23.39 with the following steps and it
started fine

 ln -s mysql-VERSION-OS mysql
 cd mysql
 scripts/mysql_install_db
 chown -R root  /usr/local/mysql
 chown -R mysql /usr/local/mysql/data
 chgrp -R mysql /usr/local/mysql
 chown -R root /usr/local/mysql/bin
 bin/safe_mysqld --user=mysql 

Then I tried to set a password for the MYSQL root user and I get the
following error.

./bin/mysqladmin -u root -p password 'christ1'
Enter password: ***

./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: YES)

ALSO TRIED
# ./bin/mysqladmin -u root -h dallas.isu.edu -p password 'christ1'
Enter password: ***
./bin/mysqladmin: connect to server at 'dallas.isu.edu' failed
error: 'Host 'dallas.isu.edu' is not allowed to connect to this MySQL
server

ANY SOLUTIONS?

Kory Wheatley


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: innoDB confusion

2002-01-15 Thread Weaver, Walt

Do a show table status at the mysql prompt. Under type you should see
InnoDB.

--Walt Weaver
  Bozeman, Montana

-Original Message-
From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 10:57 AM
To: Mysql List (E-mail)
Subject: RE: innoDB confusion


One final question, and I am done.  You have helped me
tremendously--thank you.  Wow, I really didn't expect the developer of
the software to answer my questions--this is terrific.  

Is there way to verify that the tables I create are in the InnoDB
tablespace?  I am assuming that if I set 'default-table-type=innodb' in
my.ini that all tables created by the MySQL client will be created in
the innodb tablespace.  However, they also show up in the MySQL data
directory as .frm files.  How do I also know that it was created in the
InnoDB tablespace?  Aaron



-Original Message-
From: Heikki Tuuri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 10:43 AM
To: Rutledge, Aaron
Cc: [EMAIL PROTECTED]
Subject: Re: innoDB confusion


Aaron,

-Original Message-
From: Rutledge, Aaron [EMAIL PROTECTED]
To: Heikki Tuuri [EMAIL PROTECTED]
Date: Tuesday, January 15, 2002 7:13 PM
Subject: RE: innoDB confusion


Thank You Heikki,
   That information helps a lot.  A couple quick questions if you dont
mind:

In regards to the statement:

InnoDB stores the tables defined as type InnoDB to its own tablespace
and builds indexes to the tables in its own tablespace.

I am assuming the tablespaces are the ibdata files.  Does it store the


Yes the tablespace is the data files concatenated.

actual records here, or only the indexes and table definitions?  When
using innoDB tables, is anything stored in the MySQL/data directory, or
is everything in the innoDB tablespace?  The innoDB tablespace seems a


Everything is stored to the tablespace, except the tablename.frm files
which
the MySQL interpreter uses to store its own table schemas.

little voodoo to me.  I am expecially concerned because they are a
fixed
size and I dont understand how MySQL communicates with them.


You must make the data files big enough that your application fits
there.
Note that you are then safe from the problem that someone inadvertently
fills the hard disk. That is the benefit of preallocation.

Highest regards,
Aaron


Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on
InnoDB




-Original Message-
From: Heikki Tuuri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 6:08 AM
To: [EMAIL PROTECTED]
Subject: Re: innoDB confusion


Aaron,

please look at http://www.innodb.com/features.html,
http://www.innodb.com/division.html, and
http://www.innodb.com/ibman.html

Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on
InnoDB


Rutledge, Aaron wrote in message ...
Hello,  I am new to this list and MySQL.  I am very excited about this
open source community.  I can definitely see MySQL becoming to
database
servers, what Apache has become to web servers.
I am currently developing a mission critical manufacturing web
application in Java and I am leaning towards using MySQL as the
back-end
DB.  Since MySQL has gotten excellent reviews as far as stability,
speed, and ease of use--and my application does not require foreign
key
restraints or lots of bells and whistles --I decided it was worth a
shot.  My only concern from the onset was that it wasn't
transactionally
safe.  I can't have the DB lose data if the server goes down.  I have
learned that InnoDB provides this functionality on top of MySQL, but
the
interrelation between the two is very unclear to me.  I haven't found
a
good FAQ for explaining what InnoDB does and how it does it with
MySQL.
I've only found information in the 'do this, this and this to make
this
work' style.  I am never sure if I am working with InnoDB or MySQL or
both.  I don't feel like I can really commit to this DB until I get a
good grasp of the complexity of this relationship.
So far I have set up the InnoDB data files and directories and have
MySQL up and running.  I set my my.ini file with
'default-table-type=innodb' and my innodb information.  Everything
seems
great--I can create tables, do all my select statements, etc..
Everything seems easy as pie, but I can't shake the concern that I am
not understanding InnoDB.  So what I am wondering--am I creating
transactionally safe tables in the innodb format every time I create a
new table?  Do I no longer have to worry about innodb?  WHat about
these
ibdata1 and ibdata2 files I created?  I am assuming these hold
transactional information.  SHould I be worried about whats in there?
Will these fill up with data and outgrow their pre-defined size?  I
just
feel like I am missing something.  If anyone can point me to a good

Re: Foreign keys

2002-01-15 Thread Heikki Tuuri

Pierre,

I tested this with versions 3.23.46 and .48 on Linux and they worked ok:

mysql CREATE TABLE FIRST (NAME VARCHAR(15), COD VARCHAR(10) NOT NULL,
PRIMARY
- KEY(COD)) TYPE=INNODB;
Query OK, 0 rows affected (0.02 sec)

mysql CREATE TABLE SECOND (ID INT NOT NULL, F_COD VARCHAR(10), PRIMARY
- KEY(ID), INDEX PAR_IND(F_COD), FOREIGN KEY(F_COD) REFERENCES
FIRST(COD))
- TYPE=INNODB;
Query OK, 0 rows affected (0.04 sec)

mysql

But on Windows there was bug in database case in some earlier versions. See
http://www.innodb.com/bugfixes.html

Are you running on Windows? Check also with SHOW TABLE STATUS that the table
FIRST was really created in your test.

Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on InnoDB


Pierre Radulescu wrote in message ...
Hi,

I am trying two create two innodb tables:

1.
CREATE TABLE FIRST (NAME VARCHAR(15), COD VARCHAR(10) NOT NULL, PRIMARY
KEY(COD)) TYPE=INNODB;

2.
CREATE TABLE SECOND (ID INT NOT NULL, F_COD VARCHAR(10), PRIMARY
KEY(ID), INDEX PAR_IND(F_COD), FOREIGN KEY(F_COD) REFERENCES FIRST(COD))
TYPE=INNODB;

The second table cannot be created (errno: 150)

Thanks in advance for help!

Pierre




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: innoDB confusion

2002-01-15 Thread Heikki Tuuri

Hi!

Weaver, Walt wrote in message ...
Do a show table status at the mysql prompt. Under type you should see
InnoDB.

Yes, and in really problematic situations, where you have lost your .frm
files, for example, you can use innodb_table_monitor as explained in the
InnoDB online manual.

Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on InnoDB

--Walt Weaver
  Bozeman, Montana

-Original Message-
From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 10:57 AM
To: Mysql List (E-mail)
Subject: RE: innoDB confusion


One final question, and I am done.  You have helped me
tremendously--thank you.  Wow, I really didn't expect the developer of
the software to answer my questions--this is terrific.

Is there way to verify that the tables I create are in the InnoDB
tablespace?  I am assuming that if I set 'default-table-type=innodb' in
my.ini that all tables created by the MySQL client will be created in
the innodb tablespace.  However, they also show up in the MySQL data
directory as .frm files.  How do I also know that it was created in the
InnoDB tablespace?  Aaron




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: MyODBC problem: Show Processlist

2002-01-15 Thread Venu

Hi, 

 
 Hallo,
 
 Im writing an Visual Basic 6 application, using MDAC 2.1 and MySql ODBC
 2.50.38.
 
 In some part of this application I like to know the processes that are
 running on MySql. I'm using SHOW PROCESSLIST expecting a recordset back
 like in SHOW STATUS. I'm getting an runtime-error -2147467259 (80004005),
 Function sequence error when I try to go to the first record (.MoveFirst).
 This works ok with SHOW STATUS.
 
 I traced the ODBC calls and enclosed the files. You can see that the SHOW
 STATUS leaves no error in the trace file. The SHOW PROCESSLIST however
 does.
 
 I hope you can give me an advice.
 
 Thanks in advance.
 Frans Streur
 -=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*
  Frans Streur - 's-Hertogenbosch - The Netherlands
EMail [EMAIL PROTECTED]
 -=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*
 
 Errors Tracefile: SHOW PROCESSLIST
 
 VB6 120-534   EXIT  SQLNumResultCols  with return code -1 (SQL_ERROR)
   HSTMT   031F17E0
   SWORD * 0x0012E908
 
   DIAG [S1010] [Microsoft][ODBC Driver Manager] Function 
 sequence error (0)
 

What is its previous call ? Is it SQLPrepare or SQLExecDirect ? 
Note that, if it is SQLPrepare, then please upgrade your driver 
to .39 version to have a fix for this.

Other wise, please send me the complete trace, but before that 
try with .39 version of the driver.

NOTE: The error is returned by the DM, not by the driver, so 
we need to have a trace to understand what is happening from 
the application, and my guess is something to do with app 
calling sequence.

Regards, Venu
--
For technical support contracts, go to https://order.mysql.com
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /   Mr. Venu [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, Developer
/_/  /_/\_, /___/\___\_\___/  California, USA
   ___/  www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: MySQL - Win SQL2k DTS - MySQL

2002-01-15 Thread Venu

Hi, 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 7:51 AM
 To: [EMAIL PROTECTED]
 Subject: MySQL - Win SQL2k DTS - MySQL
 
 
 Hello,
 
 Has anyone successfully implemented using a Microsoft SQL 2000 DTS 
 package to copy data from one mysql database into another mysql 
 database? I am getting some errors pertaining to 'cannot insert blob 
 fields'. -which they are not blob fields. I've tried this on text, 
 char, varchar, tinytext.
 
 I feel like the MyODBC driver is very limited in the data types that 
 it supports.
 

I will look into it. Last time when I traced this, found that the DTS 
is not doing a correct data type mapping while converting. Let me 
investigate further on this today. 

Thanks for the info.

Regards, Venu
--
For technical support contracts, go to https://order.mysql.com
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /   Mr. Venu [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, Developer
/_/  /_/\_, /___/\___\_\___/  California, USA
   ___/  www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: innoDB confusion

2002-01-15 Thread Philip Molter

On Tue, Jan 15, 2002 at 08:17:53PM +0200, Heikki Tuuri wrote:
: Hi!
: 
: Weaver, Walt wrote in message ...
: Do a show table status at the mysql prompt. Under type you should see
: InnoDB.
: 
: Yes, and in really problematic situations, where you have lost your .frm
: files, for example, you can use innodb_table_monitor as explained in the
: InnoDB online manual.

This brings up an interesting point.  If you've lost your .frm
files, are you totally screwed, or does InnoDB contain enough
information to restore those .frm files?  It's not a big deal if
it doesn't.  That's why God gave us backups, after all.

I know oftentimes, when we're doing testing with very large tables,
rather than go through the hassle of cleaning stuff out, we just
drop the .frm files, which causes InnoDB to lose the tables.
Then we can recreate just fine.

* Philip Molter
* Texas.net Internet
* http://www.texas.net/
* [EMAIL PROTECTED]

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: My ODBC Error

2002-01-15 Thread Venu

Hi, 

 -Original Message-
 From: Frankie Cooke [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 9:48 AM
 To: [EMAIL PROTECTED]
 Subject: My ODBC Error
 
 
 Hello All
 
 I can currently connect to a Mysql database on my local machine, a windows
 o/s.  However, when I try and do this on unix - get the error:
 
 Vbscript Runtime error 'ASP 0185 : -2147467259'
 Data source name not found or no default driver specified
 
 include/dbconnectcrop.asp,line 11
 
 
 Line 11 is the where I am opening the connection.  I feel that I have not
 matched the driver name.  Is the driver MyODBC called something different
 on Unix, other than MySQL.  Below is my conenction string.
 
 %
 
 ' Connect to MySQL database for passwords  section documents
 
 Dim dbconnect, anyRs, insComm
 
 set dbconnect=Server.CreateObject(ADODB.Connection)
 
 dbconnect.ConnectionString=Driver=MySQL;server=localhost;Database=cropwise;
 
 
 dbconnect.Open
 
 %
 
 Thanks for any help
 
 Frankie
 

You said you are trying to connect to server running on Unix, but 
your ADO connect string has localhost. Any way, 

For more information on how to establish a remote connection using 
MyODBC, refer to the following link:

http://lists.mysql.com/cgi-ez/ezmlm-cgi?5:mss:4326:200112:pnidmlbpjaokppdkhnhp

Regards, Venu
--
For technical support contracts, go to https://order.mysql.com
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /   Mr. Venu [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, Developer
/_/  /_/\_, /___/\___\_\___/  California, USA
   ___/  www.mysql.com
 


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: innoDB confusion

2002-01-15 Thread Heikki Tuuri

Hi!
-Original Message-
From: Philip Molter [EMAIL PROTECTED]
To: Heikki Tuuri [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, January 15, 2002 8:24 PM
Subject: Re: innoDB confusion


On Tue, Jan 15, 2002 at 08:17:53PM +0200, Heikki Tuuri wrote:
: Hi!
:
: Weaver, Walt wrote in message ...
: Do a show table status at the mysql prompt. Under type you should
see
: InnoDB.
:
: Yes, and in really problematic situations, where you have lost your .frm
: files, for example, you can use innodb_table_monitor as explained in the
: InnoDB online manual.

This brings up an interesting point.  If you've lost your .frm
files, are you totally screwed, or does InnoDB contain enough
information to restore those .frm files?  It's not a big deal if


With some work, yes. innodb_table_monitor prints the internal schema of
InnoDB. There are fewer column types inside InnoDB than in MySQL. For
example, a DATE column will appear as an integer.

it doesn't.  That's why God gave us backups, after all.


I know oftentimes, when we're doing testing with very large tables,
rather than go through the hassle of cleaning stuff out, we just
drop the .frm files, which causes InnoDB to lose the tables.
Then we can recreate just fine.


Sorry, but I do not understand? If you delete the .frm file, then the large
table is preserved inside the tablespace. And if you create a table with the
same name, InnoDB will complain.

* Philip Molter
* Texas.net Internet
* http://www.texas.net/
* [EMAIL PROTECTED]

Best regards,

Heikki Tuuri
Innobase Oy
---
InnoDB - transactions, row level locking, and foreign key support for MySQL
See http://www.innodb.com, download MySQL-Max from http://www.mysql.com






-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Roadmap

2002-01-15 Thread Emmanuel van der Meulen

Hello all,

Is there a roadmap for MySQL releases, and in particular when it the eta for
4.1?

Kind regards
Emmanuel


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: innoDB confusion

2002-01-15 Thread Rutledge, Aaron

The added complexity frightens me a little.  It seems a little
black-boxish to me right now.  I am sure it is only a matter of getting
use to and working with the architecture.  The idea of a separate
table-handler in the RDBMS seems very foreign when you come from the
Oracle world.  However, I can see where this will also allow for a lot
of flexibility in design later on (anyone working on an XML data handler
for MySQL?).  Thanks for your comments.  I think I feel comfortable
enough now to proceede with using MySQL and InnoDB.  Regards, Aaron
 


-Original Message-
From: Philip Molter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 11:24 AM
To: Heikki Tuuri
Cc: [EMAIL PROTECTED]
Subject: Re: innoDB confusion


On Tue, Jan 15, 2002 at 08:17:53PM +0200, Heikki Tuuri wrote:
: Hi!
: 
: Weaver, Walt wrote in message ...
: Do a show table status at the mysql prompt. Under type you should
see
: InnoDB.
: 
: Yes, and in really problematic situations, where you have lost your
.frm
: files, for example, you can use innodb_table_monitor as explained in
the
: InnoDB online manual.

This brings up an interesting point.  If you've lost your .frm
files, are you totally screwed, or does InnoDB contain enough
information to restore those .frm files?  It's not a big deal if
it doesn't.  That's why God gave us backups, after all.

I know oftentimes, when we're doing testing with very large tables,
rather than go through the hassle of cleaning stuff out, we just
drop the .frm files, which causes InnoDB to lose the tables.
Then we can recreate just fine.

* Philip Molter
* Texas.net Internet
* http://www.texas.net/
* [EMAIL PROTECTED]

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: innoDB confusion

2002-01-15 Thread Rutledge, Aaron


Woah...

Heikki Tuuri wrote:
With some work, yes. innodb_table_monitor prints the internal schema of
InnoDB. There are fewer column types inside InnoDB than in MySQL. For
example, a DATE column will appear as an integer.

Now I am confused again.  Do you only have access to column types
specified by InnoDB?  I thought that was the purpose of the .frm files.
--Aaron

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: access denied set mysql root user

2002-01-15 Thread Diana Soares

 Then I tried to set a password for the MYSQL root user and I get the
 following error.
 
 ./bin/mysqladmin -u root -p password 'christ1'
 Enter password: ***
 
 ./bin/mysqladmin: connect to server at 'localhost' failed
 error: 'Access denied for user: 'root@localhost' (Using password: YES)

Try:
./bin/mysqladmin -u root password 'christ1'

If this works, the problem was that you were giving the new password
(Enter password: ***) when mysql was asking you the old password -
if you were changing root password for the first time, root password is
empty. 

-- 
Diana Soares


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: innoDB confusion

2002-01-15 Thread Heikki Tuuri

Aaron,

Rutledge, Aaron wrote in message ...

Woah...

Heikki Tuuri wrote:
With some work, yes. innodb_table_monitor prints the internal schema of
InnoDB. There are fewer column types inside InnoDB than in MySQL. For
example, a DATE column will appear as an integer.

Now I am confused again.  Do you only have access to column types
specified by InnoDB?  I thought that was the purpose of the .frm files.

you have all the column types of MySQL available. The above just means that
at the lower level types are mapped to more basic types. Internally DATE
columns can be compared like integer columns.

--Aaron

Best regards,

Heikki Tuuri
Innobase Oy
---
InnoDB - transactions, row level locking, and foreign key support for MySQL
See http://www.innodb.com, download MySQL-Max from http://www.mysql.com





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




OS X Install not working

2002-01-15 Thread Rich Fortnum

Hi there.  I'm trying a binary install of MySQL for OS X.  Can anybody help
me?  The directories are messed up, so it doesn't know where to look for it.

Where should I have the master folder for MySQL?

Cheers.



@@@ Rich Fortnum / Viaduct Productions / Toronto (EST)
@@@ Web Design / Databases / Internet Video / Wireless Data
@@@ [EMAIL PROTECTED] / http://www.viaduct-productions.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: innoDB confusion

2002-01-15 Thread Rutledge, Aaron

Thanks again,
It is becoming relatively clear now.  Sounds like for the most part,
once InnoDB is set up, everything is handled like a 'normal' MyISAM
table with InnoDB simply adding the transactional support.  Does Michael
Kofler's book discuss a lot of these types of things?  The InnoDB
material is terrific, but I think I will definitely need some dead-tree
literature on this (so I don't have to keep bugging this list with
low-level topics).  Thanks, Aaron

 


-Original Message-
From: Heikki Tuuri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:24 PM
To: [EMAIL PROTECTED]
Subject: Re: innoDB confusion


Aaron,

Rutledge, Aaron wrote in message ...

Woah...

Heikki Tuuri wrote:
With some work, yes. innodb_table_monitor prints the internal schema
of
InnoDB. There are fewer column types inside InnoDB than in MySQL. For
example, a DATE column will appear as an integer.

Now I am confused again.  Do you only have access to column types
specified by InnoDB?  I thought that was the purpose of the .frm files.

you have all the column types of MySQL available. The above just means
that
at the lower level types are mapped to more basic types. Internally DATE
columns can be compared like integer columns.

--Aaron

Best regards,

Heikki Tuuri
Innobase Oy
---
InnoDB - transactions, row level locking, and foreign key support for
MySQL
See http://www.innodb.com, download MySQL-Max from http://www.mysql.com





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Error with code utilizing perl DBI mysql ??

2002-01-15 Thread Investor


This is a bit strange, but I was writing code
and adding some select statements that seemed to be
working fine until about the 5 th one,  ...
then i get errors :

I am a bit of a newbie at mysql  dbi.

any help much appreciated

Error:
Can’t set DBI::db-HASH(0x1b73b70-{Printerror}:
unrecongnised attribute at
C:/indogoperl/site/lib/DBI.pm line 441.
Issuing rollback() for database handle being DESTROY’d
without explicit disconnect().

Code
use DBI;
my $dir = C:/indigoperl/bin;
my $file1 = out1.txt;
my $file2 = out2.txt;
my $file3 = out3.txt;
my $file4 = out4.txt;
my $file5 = out5.txt;

open(F1, $dir/$file1) or warn Did not open $file1:
$!\n;
open(F2, $dir/$file2) or warn Did not open $file1:
$!\n;
open(F3, $dir/$file3) or warn Did not open $file1:
$!\n;
open(F4, $dir/$file4) or warn Did not open $file1:
$!\n;
open(F5, $dir/$file5) or warn Did not open $file1:
$!\n;

my ($dbh, $sth, $count, $dsn, $user, $pwd);
my ($flag, $sic, $sic2, $sic3);
my ($cite, $reg);

$dsn = DBI:mysql:host=localhost;database=air;
$user = root;
$pwd = wick;
$dbh = DBI-connect($dsn, $user, $pwd,{Printerror =
0, RaiseError = 1});

#  Table sicc
$flag =Y;
print  Enter data for sicc table? 'y' or 'n'\n;
chomp($flag = STDIN);
while ( uc($flag) eq 'Y') {  
print  Enter values for sic, sic2, sic3 separate with
commas \n;
chomp($dat = STDIN);
($sic, $sic2, $sic3) = split (/,/, $dat);
$dbh-do ( INSERT INTO sicc (sic, sic2, sic3) values
(?,?,?)  ,
undef, $sic, $sic2, $sic3);
print F1 Enter new row of data:   'y' or 'n' \n;
chomp($flag = STDIN);
undef $sic, $sic2, $sic3, $dat;
} # end of while for table sicc

# Table permitno
$f2=Y;
print  Enter data for permitno table? 'y' or 'n'\n;
chomp($f2 = STDIN);
while ( uc($f2) eq 'Y') {  
print  Enter values for pn, datep separate with
commas \n;
chomp($dat = STDIN);
($pn, $datep) = split (/,/, $dat);
$dbh-do ( INSERT INTO permitno (pn,datep) values
(?,?)  ,
undef, $pn, $datep );
print Enter new row of data:   'y' or 'n' \n;
chomp($f2 = STDIN);
undef $pn, $datep, $dat;
}  # End of while for table permitno

# Table equip
$f3=Y;

while ( uc($f3) eq 'Y') {  
print  Enter value for type  \n;
chomp($dat = STDIN);
($type) = split (/,/, $dat);
$dbh-do ( INSERT INTO equip (type) values (?)  ,
undef, $type );
print Enter new row of data:   'y' or 'n' \n;
chomp($f3 = STDIN);
undef $type, $dat;
}  # End of while for table permitno

# Table regs
$f4 = Y;
while ( uc($f4) eq 'Y') {  
print  Enter values cite and reg  \n;
chomp($dat = STDIN);
($cite, $reg) = split (/,/, $dat);
$dbh-do ( INSERT INTO regs (cite, reg) values (?,?)
 ,
undef, $cite, $reg );
print Enter new row of data:   'y' or 'n' \n;
chomp($f4 = STDIN);
undef $cite, $reg, $dat;
}  # End of while for table regs

# Table refs
$f5 = Y;
while ( uc($f5) eq 'Y') {  
print  Enter value for ref \n;
chomp($dat = STDIN);
($ref) = split (/,/, $dat);
$dbh-do ( INSERT INTO refs (ref) values (?)  ,
undef, $ref );
print Enter new row of data:   'y' or 'n' \n;
chomp($f5 = STDIN);
undef $ref, $dat;
}  # End of while for table refs


$sth=$dbh-prepare (SELECT *  FROM  sicc);
$sth-execute ();
$count = 0;
while (my $ref = $sth -fetchrow_hashref () )  {
print F3 Found a row: sic_id =$ref-{'sic_id'}, sic
=$ref-{'sic'}, sic2= $ref-{'sic2'}, 
sic3=$ref-{'sic3'}\n;
++$count;
}
$sth-finish();
print $count rows total\n;


$sth=$dbh-prepare (SELECT *  FROM  permitno);
$sth-execute ();
$count = 0;
while (my $ref = $sth -fetchrow_hashref () )  {
print F2 Found a row: pn_id =$ref-{'pn_id'}, datep
=$ref-{'datep'}, pn= $ref-{'pn'}\n;
++$count;
}
$sth-finish();
print $count rows total\n;

$sth=$dbh-prepare (SELECT *  FROM  equip);
$sth-execute ();
$count = 0;
while (my $ref = $sth -fetchrow_hashref () )  {
print F3 Row $count:   type_id =$ref-{'type_id'},
type =$ref-{'type'}\n;
++$count;
}
$sth-finish();
print $count rows total\n;

$sth=$dbh-prepare (SELECT *  FROM  regs);
$sth-execute ();
$count = 0;
while (my $ref = $sth -fetchrow_hashref () )  {
print F4 Row $count:   reg_id =$ref-{'reg_id'},
cite =$ref-{'cite'}, reg =$ref-{'reg'}\n;
++$count;
}
$sth-finish();
print $count rows total\n;

$sth=$dbh-prepare (SELECT *  FROM  refs);
$sth-execute ();
$count = 0;
while (my $ref = $sth -fetchrow_hashref () )  {
print F5 Row $count:   ref_id =$ref-{'ref_id'}, ref
=$ref-{'ref'}\n;
++$count;
}
$sth-finish();
print $count rows total\n;


close (F1);
close (F2);
close (F3);
close (F4);
close (F5);
$dbh-disconnect ();
$dbh-disconnect ();
$dbh-disconnect ();
$dbh-disconnect ();
$dbh-disconnect ();
$dbh-disconnect ();


exit (0);
/code


=
Regards,

Investorclb

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-
Before posting, please 

Queries entering Sleep state.

2002-01-15 Thread Greer, Darren (MED)

Hello again all.  Thanks for the help on the query time issue, I have
begun a transition.  

I have another question.  I have some queries which are apparently going
into a Sleep mode in my database.  Can anyone point me in the right
direction on this for more information?

Thanks,

Darren

++-+++-+---+---+
--+
| Id | User | Host | db | Command | Time | State | Info |
++-+++-+---+---+
--+
| 15 | web | localhost | mailer | Sleep | 47743 | NULL | NULL |
| 20 | adssurvey | 66.6.196.2 | mailer | Sleep | 370 | NULL | NULL |
| 22 | root | localhost | mailer | Query | 0 | NULL | show processlist |
++-+++-+---+---+
--+
3 rows in set (0.00 sec)

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: innoDB confusion

2002-01-15 Thread Weaver, Walt

Heikki,

I must be missing something really simple here, but I can't get the InnoDB
Monitor to work. I created the innodb_monitor table with create table
innodb_monitor(a int) type=innodb;

What do I do next? The manual says mysqld will print the output to stdout. I
guess I'm confused as to how I capture this.

I'm running on Linux Redhat 6.2 with the 2.4 kernel, mysql 3.23.44.

Thanks,
-- Confused In Bozeman

-Original Message-
From: Heikki Tuuri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: Re: innoDB confusion


Hi!

Weaver, Walt wrote in message ...
Do a show table status at the mysql prompt. Under type you should see
InnoDB.

Yes, and in really problematic situations, where you have lost your .frm
files, for example, you can use innodb_table_monitor as explained in the
InnoDB online manual.

Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on InnoDB

--Walt Weaver
  Bozeman, Montana

-Original Message-
From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 10:57 AM
To: Mysql List (E-mail)
Subject: RE: innoDB confusion


One final question, and I am done.  You have helped me
tremendously--thank you.  Wow, I really didn't expect the developer of
the software to answer my questions--this is terrific.

Is there way to verify that the tables I create are in the InnoDB
tablespace?  I am assuming that if I set 'default-table-type=innodb' in
my.ini that all tables created by the MySQL client will be created in
the innodb tablespace.  However, they also show up in the MySQL data
directory as .frm files.  How do I also know that it was created in the
InnoDB tablespace?  Aaron




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Queries entering Sleep state.

2002-01-15 Thread James Montebello


This is caused by a connection that's still held open by a client, or
(more commonly) by a connection that wasn't closed gracefully by the
client.  One of the oddities of TCP is that one end of the connection
won't know that the other end has dropped the connection until it
tries to write something to the connection.  Since MySQL doesn't write
except in reply to a query, it's sitting there with one end of a dead
connection patiently waiting for a new query to arrive.

james montebello

On Tue, 15 Jan 2002, Greer, Darren (MED) wrote:

 Hello again all.  Thanks for the help on the query time issue, I have
 begun a transition.  
 
 I have another question.  I have some queries which are apparently going
 into a Sleep mode in my database.  Can anyone point me in the right
 direction on this for more information?
 
 Thanks,
 
 Darren
 
 ++-+++-+---+---+
 --+
 | Id | User | Host | db | Command | Time | State | Info |
 ++-+++-+---+---+
 --+
 | 15 | web | localhost | mailer | Sleep | 47743 | NULL | NULL |
 | 20 | adssurvey | 66.6.196.2 | mailer | Sleep | 370 | NULL | NULL |
 | 22 | root | localhost | mailer | Query | 0 | NULL | show processlist |
 ++-+++-+---+---+
 --+
 3 rows in set (0.00 sec)
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: innoDB confusion

2002-01-15 Thread John Kemp

Walt,

It'll go to the database_machine_name.err file on that machine.

John

Weaver, Walt wrote:

 Heikki,
 
 I must be missing something really simple here, but I can't get the InnoDB
 Monitor to work. I created the innodb_monitor table with create table
 innodb_monitor(a int) type=innodb;
 
 What do I do next? The manual says mysqld will print the output to stdout. I
 guess I'm confused as to how I capture this.
 
 I'm running on Linux Redhat 6.2 with the 2.4 kernel, mysql 3.23.44.
 
 Thanks,
 -- Confused In Bozeman
 
 -Original Message-
 From: Heikki Tuuri [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 11:18 AM
 To: [EMAIL PROTECTED]
 Subject: Re: innoDB confusion
 
 
 Hi!
 
 Weaver, Walt wrote in message ...
 
Do a show table status at the mysql prompt. Under type you should see
InnoDB.

 
 Yes, and in really problematic situations, where you have lost your .frm
 files, for example, you can use innodb_table_monitor as explained in the
 InnoDB online manual.
 
 Best regards,
 
 Heikki Tuuri
 Innobase Oy
 ---
 Order technical MySQL/InnoDB support at https://order.mysql.com/
 See http://www.innodb.com for the online manual and latest news on InnoDB
 
 
--Walt Weaver
 Bozeman, Montana

-Original Message-
From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 10:57 AM
To: Mysql List (E-mail)
Subject: RE: innoDB confusion


One final question, and I am done.  You have helped me
tremendously--thank you.  Wow, I really didn't expect the developer of
the software to answer my questions--this is terrific.

Is there way to verify that the tables I create are in the InnoDB
tablespace?  I am assuming that if I set 'default-table-type=innodb' in
my.ini that all tables created by the MySQL client will be created in
the innodb tablespace.  However, they also show up in the MySQL data
directory as .frm files.  How do I also know that it was created in the
InnoDB tablespace?  Aaron

 
 
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 .
 
 



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: innoDB confusion

2002-01-15 Thread Weaver, Walt

Cool. Thanks, John.

--Walt

-Original Message-
From: John Kemp [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 1:06 PM
To: Weaver, Walt
Cc: [EMAIL PROTECTED]
Subject: Re: innoDB confusion


Walt,

It'll go to the database_machine_name.err file on that machine.

John

Weaver, Walt wrote:

 Heikki,
 
 I must be missing something really simple here, but I can't get the InnoDB
 Monitor to work. I created the innodb_monitor table with create table
 innodb_monitor(a int) type=innodb;
 
 What do I do next? The manual says mysqld will print the output to stdout.
I
 guess I'm confused as to how I capture this.
 
 I'm running on Linux Redhat 6.2 with the 2.4 kernel, mysql 3.23.44.
 
 Thanks,
 -- Confused In Bozeman
 
 -Original Message-
 From: Heikki Tuuri [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 11:18 AM
 To: [EMAIL PROTECTED]
 Subject: Re: innoDB confusion
 
 
 Hi!
 
 Weaver, Walt wrote in message ...
 
Do a show table status at the mysql prompt. Under type you should see
InnoDB.

 
 Yes, and in really problematic situations, where you have lost your .frm
 files, for example, you can use innodb_table_monitor as explained in the
 InnoDB online manual.
 
 Best regards,
 
 Heikki Tuuri
 Innobase Oy
 ---
 Order technical MySQL/InnoDB support at https://order.mysql.com/
 See http://www.innodb.com for the online manual and latest news on InnoDB
 
 
--Walt Weaver
 Bozeman, Montana

-Original Message-
From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 10:57 AM
To: Mysql List (E-mail)
Subject: RE: innoDB confusion


One final question, and I am done.  You have helped me
tremendously--thank you.  Wow, I really didn't expect the developer of
the software to answer my questions--this is terrific.

Is there way to verify that the tables I create are in the InnoDB
tablespace?  I am assuming that if I set 'default-table-type=innodb' in
my.ini that all tables created by the MySQL client will be created in
the innodb tablespace.  However, they also show up in the MySQL data
directory as .frm files.  How do I also know that it was created in the
InnoDB tablespace?  Aaron

 
 
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 .
 
 


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Can't find any matching row in the user table

2002-01-15 Thread Tim Gustafson

Hello

I'm getting this error when trying to issue a grant command:

Can't find any matching row in the user table

What does this mean?  Thist just started popping up the other day.  The
command I'm executing is:

grant all on dn1024.* to 'dn1024' identified by 'hispassword';

Any help is appreciated.

Tim

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Tim Gustafson - [EMAIL PROTECTED]   http://www.falconsoft.com/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Share your knowledge - it's a way to achieve immortality.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Queries entering Sleep state.

2002-01-15 Thread Greer, Darren (MED)

If say, that client closes the connection at some point in the
future...that will clean up then?  Or has the connection been severed?

-Original Message-
From: James Montebello [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 15, 2002 1:59 PM
To: Greer, Darren (MED)
Cc: '[EMAIL PROTECTED]'
Subject: Re: Queries entering Sleep state.



This is caused by a connection that's still held open by a client, or
(more commonly) by a connection that wasn't closed gracefully by the
client.  One of the oddities of TCP is that one end of the connection
won't know that the other end has dropped the connection until it
tries to write something to the connection.  Since MySQL doesn't write
except in reply to a query, it's sitting there with one end of a dead
connection patiently waiting for a new query to arrive.

james montebello

On Tue, 15 Jan 2002, Greer, Darren (MED) wrote:

 Hello again all.  Thanks for the help on the query time issue, I have 
 begun a transition.
 
 I have another question.  I have some queries which are apparently 
 going into a Sleep mode in my database.  Can anyone point me in the 
 right direction on this for more information?
 
 Thanks,
 
 Darren
 

++-+++-+---+---+
 --+
 | Id | User | Host | db | Command | Time | State | Info |

++-+++-+---+---+
 --+
 | 15 | web | localhost | mailer | Sleep | 47743 | NULL | NULL | 20 | 
 | adssurvey | 66.6.196.2 | mailer | Sleep | 370 | NULL | NULL | 22 | 
 | root | localhost | mailer | Query | 0 | NULL | show processlist |

++-+++-+---+---+
 --+
 3 rows in set (0.00 sec)
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail 
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Queries entering Sleep state.

2002-01-15 Thread James Montebello


If the client closes the connection grace fully (using the MySQL
handshaking to close the connection), then it will be cleaned up.  If the
client severed the connection w/o performing the close handshake (say,
if it closed the socket, or simply exited, which also closes the socket),
then it won't be cleaned up.  If it can be determined these connections
really aren't in use, they can be KILL'd at the server. 

james montebello


On Tue, 15 Jan 2002, Greer, Darren (MED) wrote:

 If say, that client closes the connection at some point in the
 future...that will clean up then?  Or has the connection been severed?
 
 -Original Message-
 From: James Montebello [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, January 15, 2002 1:59 PM
 To: Greer, Darren (MED)
 Cc: '[EMAIL PROTECTED]'
 Subject: Re: Queries entering Sleep state.
 
 
 
 This is caused by a connection that's still held open by a client, or
 (more commonly) by a connection that wasn't closed gracefully by the
 client.  One of the oddities of TCP is that one end of the connection
 won't know that the other end has dropped the connection until it
 tries to write something to the connection.  Since MySQL doesn't write
 except in reply to a query, it's sitting there with one end of a dead
 connection patiently waiting for a new query to arrive.
 
 james montebello
 
 On Tue, 15 Jan 2002, Greer, Darren (MED) wrote:
 
  Hello again all.  Thanks for the help on the query time issue, I have 
  begun a transition.
  
  I have another question.  I have some queries which are apparently 
  going into a Sleep mode in my database.  Can anyone point me in the 
  right direction on this for more information?
  
  Thanks,
  
  Darren
  
 
 ++-+++-+---+---+
  --+
  | Id | User | Host | db | Command | Time | State | Info |
 
 ++-+++-+---+---+
  --+
  | 15 | web | localhost | mailer | Sleep | 47743 | NULL | NULL | 20 | 
  | adssurvey | 66.6.196.2 | mailer | Sleep | 370 | NULL | NULL | 22 | 
  | root | localhost | mailer | Query | 0 | NULL | show processlist |
 
 ++-+++-+---+---+
  --+
  3 rows in set (0.00 sec)
  
  -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
  
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail 
  [EMAIL PROTECTED]
  Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
  
 


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Queries entering Sleep state.

2002-01-15 Thread Jeremy Zawodny

On Tue, Jan 15, 2002 at 02:59:05PM -0600, Greer, Darren (MED) wrote:

 If say, that client closes the connection at some point in the
 future...that will clean up then?

Then the entry will vanish from the list.
-- 
Jeremy D. Zawodny, [EMAIL PROTECTED]
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936

MySQL 3.23.41-max: up 12 days, processed 301,555,611 queries (270/sec. avg)

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: mysql.sock error

2002-01-15 Thread Trond Eivind Glomsrød

Jay Paulson [EMAIL PROTECTED] writes:

 I'm running RedHat 7.1 and I'm trying to run mysql.  I've gone and run the
 mysql_install_db 

Not good. If you had just started the script, it would have been done
automatically - as it is, you created a set of files you can't access
(root owns them, the db runs as user mysql).

A chown -R mysql.mysql /var/lib/mysql would fix it.
 

-- 
Trond Eivind Glomsrød
Red Hat, Inc.

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Purging records

2002-01-15 Thread SNK

Hi , I would need help with the syntax for this:

I have Table1 and Table2. Table2 consists only of records that also exist in
Table1 (duplicates), and I wish to delete all the records in Table1 that are
matched in Table2, while keeping the rest of the records in Table1 intact.
Can anyone help?

Thanks very much in advance.

Fers, Buenos Aires - Argentina.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Changing root password

2002-01-15 Thread Jay Paulson

I'm trying to change the root password for mysql.  This is the first time
I've tried to change the password and I can't get it to work.  Below is the
error message I get:

[root@localhost bin]# ./mysqladmin -u root -p password 'new-password'
Enter password:
./mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: YES)'

I've looked at the manual and it doesn't say much that I've already done.
I've also looked up the --skip-grant-tables but the only mysqld file I have
to run is in the /etc/rc.d/init.d/ directory and it doesn't take
the --skip-grant-tables flag.  So I'm at a lost at what to do next.

thanks.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




synchronize??

2002-01-15 Thread Rich Foreman

Hi,

I have two servers (one remotely hosted, and one locally) that I would like
to have the same database on for backup purposes.

I would like the two databases to synchronize automatically and all the time.

Is there currently any way to do this?

Remote server:  FreeBSD running MySQL 3.23.40
Local Server: WinXP with phpTriad and MySQL 3.23.32 (I am changing this
server to foxserv with latest MySQL tomorrow)

Databases have same name and user/password combos

Thanks,

Rich

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.314 / Virus Database: 175 - Release Date: 1/11/2002
 

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: synchronize??

2002-01-15 Thread Dan Nelson

In the last episode (Jan 15), Rich Foreman said:
 I have two servers (one remotely hosted, and one locally) that I
 would like to have the same database on for backup purposes. I would
 like the two databases to synchronize automatically and all the time.
 
 Is there currently any way to do this?
 
 Remote server:  FreeBSD running MySQL 3.23.40
 Local Server: WinXP with phpTriad and MySQL 3.23.32 (I am changing this
 server to foxserv with latest MySQL tomorrow)
 
 Databases have same name and user/password combos

Replication should do what you need.

http://www.mysql.com/doc/R/e/Replication.html

-- 
Dan Nelson
[EMAIL PROTECTED]

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Changing root password

2002-01-15 Thread Gary . Every

The file in the /etc/rc.d/init.d is likely called S95mysql, and you CAN add
that parameter to that file. You'll need to edit the file, and add something
like this:

/opt/mysql/bin/mysqld \
--basedir=opt/mysql \
...
--skip-grant-tables \
...
 /var/log/mysql/mysql.err 21

The ...'s above are other parameters that may or may not be there.



-Original Message-
From: Jay Paulson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 4:57 PM
To: [EMAIL PROTECTED]
Subject: Changing root password


I'm trying to change the root password for mysql.  This is the first time
I've tried to change the password and I can't get it to work.  Below is the
error message I get:

[root@localhost bin]# ./mysqladmin -u root -p password 'new-password'
Enter password:
./mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: YES)'

I've looked at the manual and it doesn't say much that I've already done.
I've also looked up the --skip-grant-tables but the only mysqld file I have
to run is in the /etc/rc.d/init.d/ directory and it doesn't take
the --skip-grant-tables flag.  So I'm at a lost at what to do next.

thanks.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




INFILE DATE Problem

2002-01-15 Thread Vernon A Webb

I'm using the:
LOAD DATA LOCAL INFILE /home/filename.txt INTO TABLE list;
which works just fine. Only problem is the date column 
which is formatted as such 4/11/1970 comes out as -
00-
00 

The date field is setup as Field: s_date, Type: date, 
Null, YES, Key: BLANK, Default: Null, Extra BLANK.

Any ideas on how to resolve this?

Thanks



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




auto_increment

2002-01-15 Thread Ben Curran

Sorry if this is a newbie question, I've been through the manual, still
can't figure it out.

If one has created a table, with a key using auto_increment, how does one
Insert data into it? 

If my table consists of (inID (primary key, auto incremented), employeeID
(foreign key) time, date).
if I use 
$dbh-do(INSERT INTO timein VALUES('$employeeID','$timein','$day'));
obviously, it tells me that
DBD::mysql::db do failed: Column count doesn't match value count.

How do I refer to the auto incremented field when attempting to place values
in a new row?

my only thought is that it has something to do with mysql_insert_id. not
sure how though.

thanks.
ben.


This e-mail (and any attachments) is confidential and may contain personal
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system, do not use,
copy or disclose the information in any way nor act in reliance on it and notify
the sender immediately. Please note that the BBC monitors e-mails sent
or received. Further communication will signify your consent to this.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: auto_increment

2002-01-15 Thread Rune Sandbakken

Ben Curran wrote:

 If one has created a table, with a key using auto_increment, how does one
 Insert data into it? 
 

Data is automatically inserted for you ;-)


 If my table consists of (inID (primary key, auto incremented), employeeID
 (foreign key) time, date).
 if I use 
 $dbh-do(INSERT INTO timein VALUES('$employeeID','$timein','$day'));
 obviously, it tells me that
 DBD::mysql::db do failed: Column count doesn't match value count.


When not specifying fields MySQL expects all columns including the 
autoincremented one.  You can insert a NULL in the autoincrement value 
field, which causes it to auto-increment.

There are good reasons to rather explicitly specify fields:

$dbh-do(INSERT INTO timein(employeeID,time,date) 
VALUES('$employeeID','$timein','$day'));

 

   Rune


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




synchronize??

2002-01-15 Thread Michael Widenius


Hi!

 Rich == Rich Foreman [EMAIL PROTECTED] writes:

Rich Hi,
Rich I have two servers (one remotely hosted, and one locally) that I would like
Rich to have the same database on for backup purposes.

Rich I would like the two databases to synchronize automatically and all the time.

Rich Is there currently any way to do this?

Yes, as long as the updates are not conflicting.
In this case you 'just' need set up both servers as 'masters' and then
set them to be a slave of the other.

Please consult the MySQL replication chapter in the manual for how to
do this.

Rich Remote server:  FreeBSD running MySQL 3.23.40
Rich Local Server: WinXP with phpTriad and MySQL 3.23.32 (I am changing this
Rich server to foxserv with latest MySQL tomorrow)

Rich Databases have same name and user/password combos

Regards,
Monty

-- 
For technical support contracts, goto https://order.mysql.com/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Michael Widenius [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, CTO
/_/  /_/\_, /___/\___\_\___/   Helsinki, Finland
   ___/   www.mysql.com

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Compile woes :(

2002-01-15 Thread Ryn

Has anyone received the following [Exhibit 1] when building mysql 3.23.47 on
Solaris 8? I am following
the directions from the source installation web page on mysql.com.

Thanks for any info,

Ryan

[Exhibit 1]
gcc -DUNDEF_THREADS_HACK -I./../include -I../inc
lude -I./.. -I..-I..-O3 -DDBUG_OFF -O3 -feli
de-constructors -fno-exceptions -fno-rtti  -fno-implicit-templates -fno-exceptio
ns -fno-rtti -DHAVE_CURSES_H -I/export/home/desc/pkg/mysql-3.23.47/include -DHAV
E_RWLOCK_T -c mysqlbinlog.cc
/bin/sh ../libtool --mode=link
gcc  -O3 -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti  -fno-imp
licit-templates -fno-exceptions -fno-rtti -DHAVE_CURSES_H -I/export/home/desc/pk
g/mysql-3.23.47/include -DHAVE_RWLOCK_T  -o mysqlbinlog  mysqlbinlog.o
../libmysql/libmysqlclient.la -lz -lcrypt -lgen -lsocket -lnsl -lm
gcc -O3 -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti -fno-impli
cit-templates -fno-exceptions -fno-rtti -DHAVE_CURSES_H -I/export/home/desc/pkg/
mysql-3.23.47/include -DHAVE_RWLOCK_T -o .libs/mysqlbinlog mysqlbinlog.o
../libmysql/.libs/libmysqlclient.so -lz -lcrypt -lgen -lsocket -lnsl -lm -lz -lc
rypt -lgen -lsocket -lnsl -lm -Wl,--rpath -Wl,/usr/local/mysql/lib/mysql
mysqlbinlog.o(.gnu.linkonce.d._ZTV9Log_event+0xc): undefined reference to
`__cxa_pure_virtual'
mysqlbinlog.o(.gnu.linkonce.d._ZTV9Log_event+0x1c): undefined reference to
`__cxa_pure_virtual'
collect2: ld returned 1 exit status
make[2]: *** [mysqlbinlog] Error 1
make[2]: Leaving directory `/export/home/desc/pkg/mysql-3.23.47/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/desc/pkg/mysql-3.23.47'
make: *** [all-recursive-am] Error 2




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: pb with integrity constraint

2002-01-15 Thread Erv Young

Dominique,

At 05:45 AM 1/15/2002 -0800, Steve Edberg wrote:
See doc sections:

 http://www.mysql.com/doc/A/N/ANSI_diff_Foreign_Keys.html
and
 http://www.mysql.com/doc/C/R/CREATE_TABLE.html

 From the CREATE TABLE docs:

 The FOREIGN KEY, CHECK, and REFERENCES clauses don't actually do 
 anything. The syntax for them is provided only for compatibility, to make 
 it easier to port code from other SQL servers and to run applications 
 that create tables with references. See section 1.7.4 MySQL Differences 
 Compared to ANSI SQL92.




At 11:46 AM +0100 1/15/02, TOMASSONI Dominique wrote:
Hi the list,

I try to create tables with integrity constraint but it seems no running.

I've got the next script :

create table USERS
(
 USER_CODE   INT(8) not null,
 USER_NAME   VARCHAR(30)not null,
 primary key (USER_CODE)
)
;
create table ENV
(
 USER_CODE   INT(8) not null,
 CODE_ENVVARCHAR(6) not null,
 primary key (USER_CODE, CODE_ENV),
 constraint FK_USER foreign key (USER_CODE) references USERS(USER_CODE)
)
;

The tables creation are ok, but when I insert values in the table ENV
without any data in USERS it works but normally it wouldn't.

The first section that Steve cites makes it clear that foreign key 
constraints are enforced for InnoDB-type tables:

In MySQL Server 3.23.44 and up, InnoDB tables supports checking of foreign 
key constraints For other table types, MySQL Server does parse the 
FOREIGN KEY syntax in CREATE TABLE commands, but without further action 
being taken.

Since you do not specify TYPE = InnoDB, that would explain your difficulty, 
as Steve says.

But it is also important not to expect too much of a foreign key 
constraint, even when it is being enforced.  FOREIGN KEY does _not_ imply 
NOT NULL.  The FOREIGN KEY constraint by itself does not protect against 
inserting orphaned child records.  If you want to make sure that each child 
record has a corresponding parent record, then you must specify NOT NULL in 
addition to FOREIGN KEY.

I realize that this does not help you with today's problem, but perhaps it 
may help avert tomorrow's problem.  (For me, an Oracle user, it was last 
month's problem, and the memory is still painfully fresh.)

Hope this helps.

--Erv


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




MySQLGUI

2002-01-15 Thread Vernon A Webb

I posted about this before and got nothing back so I guess I 
should take it a step at a time.

I've granted a user ALL PRIVILEGES on a particular database 
and when they log in using MySQLGUI they can see all the 
databases on the server. Even though they can't do anything 
with them, I would prefer if they didn't see them at all. 
Any ideas?

Thanks



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: MySQLGUI

2002-01-15 Thread indrek siitan

Hi,

 I've granted a user ALL PRIVILEGES on a particular database 
 and when they log in using MySQLGUI they can see all the 
 databases on the server. Even though they can't do anything 
 with them, I would prefer if they didn't see them at all. 
 Any ideas?

Check out: http://www.mysql.com/doc/P/r/Privileges_options.html
You need to run the server with the --safe-show-database option.


Rgds,
Indrek

--
For technical support contracts, goto https://order.mysql.com/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Indrek Siitan [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, The Web Guru
/_/  /_/\_, /___/\___\_\___/   Tallinn, Estonia
   ___/   www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Bug in replication 3.23.46-max

2002-01-15 Thread Wendell Dingus

I'm fairly certain this is a bug. It's on 3.23.46-max and the changelog for
.47 doesn't mention it.

I have 2 servers using replication. Server1 is used by client machines and
all updates are to it. Server2 stays in perfect sync with it and logs all
updates to it's own binary log. I then use mysqlbinlog from server2 to parse
out those database changes every half hour or so and send to another server
via a (part-time) internet connection where it attempts to maintain a synced
copy of the data as well. A modify table to add a new field on server1
propogates to server2 but NOT to the third server. I've not tracked down
exactly where things are breaking down yet. Server1 and 2 are Linux and are
using INNODB tables. Server3 is not Linux and is not able to use INNODB at
the moment. Even a create table ... type=INNODB works on server3 making
the table MyISAM instead. It's just the modify table statements with the
addition of a new field that don't make it.

I've not captured and analyzed one of the binary logs yet but will try to do
so. Just wanted to let someone know of a probable bug. I'll also upgrade to
.47 and report back if that resolves this.


To reiterate:

Server1=Master - Server2=Slave Replication works fine and everything stays
in proper sync.

Server2 logs all updates from server1 for a particular database and a PERL
script calls mysqlbinlog periodically to capture to plain text all the
updates/inserts/deletes. This file is sent to a 3rd server where they're
integrated into that copy of the database via the standard command-line
mysql client. Any modify table statements to add a new field on server1
make it to server2 just fine but NOT to the 3rd server.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Skip-Show-Database

2002-01-15 Thread Vernon A Webb

I'm sorry if I'm bothering people, some times I get the 
feeling that I am, so please let me know if I'm out of line.

So now I've figured out that I need to use the 
skip-show-database option which I have added to the my.cnf 
file under [mysqld]. When I do this now and log in using 
MySQLGUI as any other user other than root I get access 
denied.

Any ideas?



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




NOW() is returning incorrect value

2002-01-15 Thread 2bunnyhop

Description:
This problem is being experienced on both MySQL 4.0.0 and 4.0.1.
Currently the system's timezone is set to PST, and MySQL's timezone variable 
is PST (no problem there)
However if I do a NOW() on the system, the returned result is 8 hours earlier 
that the current time
Any helpful hints or suggestions would be much appreciated

Submitter-Id:  submitter ID
Originator:
Organization:
 
MySQL support: none
Synopsis:  NOW returning incorrect results
Severity:  serious
Priority:  medium
Category:  mysql
Class: sw-bug
Release:   mysql-4.0.1-alpha (Source distribution)
Server: /bin/mysqladmin  Ver 8.23 Distrib 4.0.1-alpha, for pc-linux-gnu on i686
Copyright (C) 2000 MySQL AB  MySQL Finland AB  TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version  4.0.1-alpha-log
Protocol version10
Connection  Localhost via UNIX socket
UNIX socket /tmp/mysql.sock
Uptime: 8 min 24 sec

Threads: 4  Questions: 28  Slow queries: 0  Opens: 11  Flush tables: 1  Open tables: 4 
 Queries per second avg: 0.056
Environment:

System: Linux master-db 2.4.14 #1 SMP Thu Nov 8 18:26:59 /etc/localtime 2001 i686 
unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
Compilation info: CC='gcc'  CFLAGS=''  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
lrwxrwxrwx1 root root   13 Nov  7 18:27 /lib/libc.so.6 - libc-2.1.3.so
-rwxr-xr-x1 root root  1013224 Mar 21  2000 /lib/libc-2.1.3.so
-rw-r--r--1 root root 20266642 Mar 20  2000 /usr/lib/libc.a
-rw-r--r--1 root root  178 Mar 20  2000 /usr/lib/libc.so
lrwxrwxrwx1 root root   29 Nov  7 18:27 /usr/lib/libc.so.1 - 
/usr/i486-sysv4/lib/libc.so.1
Configure command: ./configure  --without-docs --without-bench --without-debug 
--prefix=/var/lib/mysql --with-mysqld-user=mysql


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: java.sql.SQLException: Lost connection to server during query theerror is here

2002-01-15 Thread ryc

There are many different things that could cause this error. Did you check
the mysql error log for helpful information?

Most likely the problem is not with Apache, its either mysql or your
application. One source of that error message is mysql crashing and
burning... I have seen it a few times on servers that were rather flaky and
crashed under high load (I am not saying this is the case here, but it is
something to look into).

good luck,
ryan

- Original Message -
From: shashidhara n [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 12:20 AM
Subject: java.sql.SQLException: Lost connection to server during query the
error is here


 hello

 we are running web application using apache as web server and mysql as
 databse. after running server for 6- 8 hr it will give the following
 error

 java.sql.SQLException: Lost connection to server during query the error is
 here

 if we  restart apache server it will works

 i want to know why this problem occuring, any problem in mysql server
 or apache server
 please mail  to
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]





 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Altering InnoDB tables

2002-01-15 Thread Geoffrey Soh

Hi,

I also did experience the same problem converting a 2 million + row table
from MYISAM to INNODB.  It took 3 days!  I had highlighted the problem to
Heikki. (thanks Heikki for the response previously :)).

In my case, there was no UNIQUE KEY for the table, but just an index on one
of the varchars.  However, common to both schemas in your email and mine was
the primary key which happened to be an auto_increment :

SubscriberID int(11) NOT NULL auto_increment,
PRIMARY KEY  (SubscriberID),I

msgid  bigint(20) unsigned NOT NULL auto_increment
PRIMARY KEY (msgid)

Could this be a problem?  Anyway, to get around this long conversion
process, I performed the conversion on a table on a slave to the master
MySQL instance, then let the replication update this new InnoDB table.  On
the next scheduled downtime of that particular service, I did a switch of
this replicated InnoDB table to the master, and then moved the original
MyISAM to be the slave.  I'm happy to report that I experienced the same
performance improvements with InnoDB and it's row-level locking.  Needless
to say, the users of the service are a lot happier :)

Next thing would be to work on another table, but this one is about 100+ GB
so it might take a while :)

Any comments?

Cheers,
Geoffrey
__

Geoffrey Soh, Software Architect
Ufinity - http://www.ufinity.com
Leading Enterprise Access Management Software!
9 Scotts Road, Pacific Plaza, #06-01, Singapore 228210
Tel   : +65 830-0341
Fax  : +65 737-0213
__



 -Original Message-
 From: John Kemp [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 11:58 PM
 To: Heikki Tuuri
 Cc: [EMAIL PROTECTED]
 Subject: Re: Altering InnoDB tables


 Heikki,

 I didn't config the log that big, but the buffer pool is using 1GB of
 memory, and yes, the UNIQUE index is definitely causing a lot of disk I/O!

 I will be very happy to see your change, and thanks for (as usual) being
 so quick to make changes to an already very welcome addition to MySQL.

 I'll add this - we're running several tables that have 5-10 million
 rows, one logging table with 56 million rows on a web-based system that
 is used by 30 people at our company, editing our newsletters (which are
 stored in the database), and almost 1 million email subscribers, who
 receive 3 database-driven emails every week, and use our similarly
 data-driven website. So MySQL is dealing with a lot of roughly
 simultaneous requests. Row-level locking has improved the performance
 massively, and made my internal and external customers happier, which
 makes my day better (fewer complaints!)

 Thanks again,

 John Kemp
 Director, Software Development
 Streetmail

 Heikki Tuuri wrote:

  John,
 
  did you configure innodb_buffer_pool_size and InnoDB log files
 big? Look at
  the online manual on the recommended sizes.
 
  If the table is very big, then UNIQUE secondary keys will cause a lot of
  disk i/o, because a disk read is required to check the
 constraint for each
  row, and the insert buffer cannot be used.
 
  Hmm... a fix would be to disable UNIQUE checking during the
 conversion. I
  could add an option where you can switch the UNIQUE checking
 off in my.cnf.
  That option would be used during big conversion procedures, if
 you already
  know that the data satisifies the constraint.
 
  Ok, I will introduce the my.cnf option
 
  innodb_no_unique_checks
 
  in 3.23.4x. Thank you for bringing this up :).
 
  About Robert Ricci's question: SHOW TABLE STATUS FROM ...
 reports FOREIGN
  KEY constraints in the table comment section.
 
  Best regards,
 
  Heikki Tuuri
  Innobase Oy
  ---
  Order technical MySQL/InnoDB support at https://order.mysql.com/
  See http://www.innodb.com for the online manual and latest news
 on InnoDB
 
 
 
  John Kemp wrote in message ...
 
 I am also in the process of altering tables from MyISAM to INNODB. I
 have one big problem - a very large table ( 5 million rows) with 5
 indices/indexes on it, including a couple that are UNIQUE but with NULL
 values allowed. Creating the last of these indices is taking an absurd
 amount of time on my test system, which makes it impossible for me to
 recommend this change for production as our systems would be down for
 many days.
 
 Here are the steps I took (note that after each failure, I recreated the
 original data structure)
 
 1) I tried altering the table directly to be Innodb. I stopped this
 after 4 days, when all it said in the process list was 'copying to tmp
 table' - after 4 days!
 2) Then I tried mysqldumping the table structure, and changing MyISAM -
 INNODB, dropped the table, and ran the mysqldump output back into the
 database. The INSERTS ran horribly slowly - something like 50,000
 inserts in 4 hours. This extrapolates to a query that would run for
 several weeks on 5 million rows, so I stopped it again.
 3) Then I tried 

mysqldump feature request

2002-01-15 Thread Franklin Schmidt

It would be nice to have an option for mysqldump to put the building of
indexes after the insert statements to speed up loading.

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




synopsis of the problem (one line)

2002-01-15 Thread root

Description:

How-To-Repeat:

Fix:


Submitter-Id:  submitter ID
Originator:User 
Organization:
 
MySQL support: [none | licence | email support | extended email support ]
Synopsis:  
Severity:  
Priority:  
Category:  mysql
Class: 
Release:   mysql-3.23.42 (Source distribution)

Environment:

System: FreeBSD trumpetking.iec2.iac 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 
11:57:08 PDT 2001 [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386


Some paths:  /usr/bin/perl /usr/bin/make /usr/local/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Using builtin specs.
gcc version 2.95.3 20010315 (release) [FreeBSD]
Compilation info: CC='gcc'  CFLAGS=''  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
-r--r--r--  1 root  wheel  1205382 Sep 19 01:24 /usr/lib/libc.a
lrwxrwxrwx  1 root  wheel  9 Nov 16 17:21 /usr/lib/libc.so - libc.so.4
-r--r--r--  1 root  wheel  572876 Sep 19 01:24 /usr/lib/libc.so.4
Configure command: ./configure  --prefix=/usr/local/mysql --localstatedir=/mysqldb 
--with-charset=big5 --with-named-thread-libs=-lc_r --with-mysqld-user=mysqld 
--with-libwrap --enable-assembler --without-bench --without-readline
Perl: This is perl, version 5.005_03 built for i386-freebsd

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php