Re: Multiple Primary key

2003-11-27 Thread Martijn Tonies
Hi, > Good evening people. > > I'm trying to create a simple table via MySQl Navigator. > The table il structured in this way > > dt_amt Date Not Null Primary Key > oper INT Not Null Primary Key > amount Decimal(3,3) Null --- > > but when I choose "fire" it shows me a "multiple primary key define

RE: Security Question

2003-11-27 Thread Andy Eastham
Thomas, It would be more secure if you has the DB on another server that was locked down and only allowed access to the web server on the MySql port, (plus probably ssh access for admin). If you're going to the expense of audits, this must be fairly important, so the cost of the other server woul

row_format=compressed

2003-11-27 Thread jaeani
anybody knows when row_format=compressed will work? and what means row_format=default? . that it´s not compressed? thanks __ WEB.DE FreeMail wird 5 Jahre jung! Feiern Sie mit uns und nutzen Sie die neuen Funktionen htt

Re[2]: Security Question

2003-11-27 Thread DeBug
>>>- Someone copies the DB files to another box, starts a mysql >>>instance, loads the DB and presto - views the 'private' data !!! >>> PD> Sure. That's why you establish filesystem level access privileges so that PD> only the mysql user can copy them in the first place. Some DBMSs allow to setu

Re: Security Question

2003-11-27 Thread Sergei Golubchik
Hi! On Nov 27, DeBug wrote: > >>>- Someone copies the DB files to another box, starts a mysql > >>>instance, loads the DB and presto - views the 'private' data !!! > >>> > > PD> Sure. That's why you establish filesystem level access privileges so that > PD> only the mysql user can copy them in t

Porting MySQL Embedded to VXWorks

2003-11-27 Thread Andrew Winter
Hi I'm working on a project developed in C which is being developed under windows but which is to be ported to an embedded platform (VXWorks OS) at some point in the next few months. Part of the project comprises a database and the initial plan has been to develop the database update code using t

Using Mysql functions in INSERTS and UPDATES in replication setup

2003-11-27 Thread Arnoud Witt \(Marktplaats\)
We are using Mysql with one master and several slaves. In some INSERT and UPDATE queries we use Mysql functions like CURDATE() and RAND() . The problem that now occurs is that if a slave is reading the queries from the binary log, the resulting data is different from that on the master, because o

Re: Unique Index efficiency query

2003-11-27 Thread Chris Elsworth
On Wed, Nov 26, 2003 at 06:44:57PM -0600, Matt W wrote: > Hi Chris, > > It doesn't take MySQL any more or less time to update a unique index > than a non-unique one. :-) Ah, a nice simple answer to a long drawn out question :) Thanks Matt, just the reassurance I was after, I didn't want inserts t

restore says: Couldn't fix table with quick recovery - what is the reason ?

2003-11-27 Thread Christian Matuszewski
Hello, i'm writing a program which automatically makes a backup of some tables (with "backup table foo1, foo2, ... to '/tmp/backupdir'") and after that if some errors occur, the program tries to execute "restore table foo1, foo2, ... from '/tmp/backupdir'". The table which is returned contains SOM

table corruption with certain (valid) insert statements

2003-11-27 Thread vastrik
>Description: The included sql test script (output of mysqldump 10.2 (create table statement and insertion of 250 records into this table) with added check for table integrity) results in corrupted table and error message 'Found key at page 36864 that points to record outside datafile'

Re: Inefficient use of index (was: Big difference in MyISAM and InnoDB SELECT speed)

2003-11-27 Thread Janusz Krzysztofik
Janusz Krzysztofik wrote: > ... > I am trying to optimize MySQL (3.23.49 from Debian stable) setup for > ASPseek application. I decided to try InnoDB in order to be able > to update tables while performing time consuming selects. > After converting all tables to InnoDB I noticed a big difference >

Speed difference between boolean full-text searches and full-text searches

2003-11-27 Thread Uros Kotnik
Executing this SQL, takes ~5 sec. select artists.name , cds.title , tracks.title from artists, tracks, cds where artists.artistid = tracks.artistid and cds.cdid = tracks.cdid and MATCH (artists.name) AGAINST ('madonna') and MATCH (cds.title) AGAINST ('music') and MATCH (cds.title) AGAINST ('

Index before or after inserts?

2003-11-27 Thread Mirza
I need to insert hundreds of milions of records to a table and make several indicies on it. Now, is it faster to make tables with indicies and then fill tables or fill tables first, then make indicies? Any experiancies? regards, mirza -- MySQL General Mailing List For list archives: http://

MySqlManager.rc file missing in mysql source for windows

2003-11-27 Thread Prem Soman
hi all., i tried to compile mysql-3.23.58 source distribution for windows using VisualStudio 6 and found that MySqlManager.rc file missing and hence the compilation failed , The MySqlManeger.rc file is not available in the MySqlManager folder downloaded from mysql home site. plz help me out in

How to convert a mysql-3.23.5x database to UTF-8

2003-11-27 Thread Zsolt Koppany
Hi, we have a mysql-3.23.5x database (Linux) that contains a lot of German umlauts. We have to support Asian charters (UTF-8) and how can I convert the database to UTF-8? Zsolt -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.

UFT-8 support under mysql-3.23.5x?

2003-11-27 Thread Zsolt Koppany
Hi, we use mysql-3.23.5x? under Linux and cannot upgrade to 4.x. Our java applications can store and fetch UTF-8 characters we have problem only with sorting. Any ideas how I can fix the problem? Zsolt -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscri

Re: Index before or after inserts?

2003-11-27 Thread Ed Leafe
On Nov 27, 2003, at 10:32 AM, Mirza wrote: I need to insert hundreds of milions of records to a table and make several indicies on it. Now, is it faster to make tables with indicies and then fill tables or fill tables first, then make indicies? Any experiancies? Insert the records first, then

table backup

2003-11-27 Thread Zenzo
how can I backup the table but not with BACKUP TABLE because it Backups the .frm and another files. I want that it backups in SQL with data. How can i do it? Thanks __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- MySQL General Ma

Repeated 100% CPU problem in FreeBSD

2003-11-27 Thread Chris Elsworth
Hello, Most of the time, MySQL 4.0.16 runs absolutely fine on my FreeBSD 4.9 system. However, today, unexplicably, it's run into the same problem 3 times now; a couple of the threads suddenly start eating 100% CPU for no good reason while doing a SELECT. They'll sit there until I kill them, which

Re: UFT-8 support under mysql-3.23.5x?

2003-11-27 Thread Stefan Hinz
Zsolt, > we use mysql-3.23.5x? under Linux and cannot upgrade to 4.x. Our java > applications can store and fetch UTF-8 characters we have problem only with > sorting. > Any ideas how I can fix the problem? I'd advise you to upgrade to MySQL 4. MySQL 4.1.1 would be best, as it has extensive supp

list, order and limit data

2003-11-27 Thread brfg3 at yahoo
MySQL version: 3.23.49 OS: Debian3 Scripting Language: PHP I'm working on a trouble ticket system. There are several tables involved, but for this query only two tables are involved: tickets and comments. They are related by the ticketnumber field. This client cannot afford a high end database,

Re: table backup

2003-11-27 Thread Victoria Reznichenko
Zenzo <[EMAIL PROTECTED]> wrote: > how can I backup the table but not with BACKUP TABLE > because it Backups the .frm and another files. I want > that it backups in SQL with data. How can i do it? > Take a look at mysqldump program: http://www.mysql.com/doc/en/mysqldump.html -- For tec

Re: table backup

2003-11-27 Thread Zenzo
The problem is that I wnt to use this remotely on another server. Is there a SQL command for doing this (exporting the table with data into a SQL script)? --- Victoria Reznichenko <[EMAIL PROTECTED]> wrote: > Zenzo <[EMAIL PROTECTED]> wrote: > > how can I backup the table but not with BACKUP > TA

Re: Using Mysql functions in INSERTS and UPDATES in replication setup

2003-11-27 Thread Victoria Reznichenko
"Arnoud Witt (Marktplaats)" <[EMAIL PROTECTED]> wrote: > We are using Mysql with one master and several slaves. > > In some INSERT and UPDATE queries we use Mysql functions like CURDATE() = > and > RAND() . > > The problem that now occurs is that if a slave is reading the queries = > from > the b

Re: table backup

2003-11-27 Thread Victoria Reznichenko
Zenzo <[EMAIL PROTECTED]> wrote: > The problem is that I wnt to use this remotely on > another server. You can use --host option of mysqldump. > Is there a SQL command for doing this > (exporting the table with data into a SQL script)? No. > > > --- Victoria Reznichenko > <[EMAIL PROTECTED]>

RE: Index before or after inserts?

2003-11-27 Thread Andy Eastham
Mirza, Definitely, index after insert. Andy > -Original Message- > From: Mirza [mailto:[EMAIL PROTECTED] > Sent: 27 November 2003 15:33 > To: [EMAIL PROTECTED] > Subject: Index before or after inserts? > > > I need to insert hundreds of milions of records to a table and make > several

RE: table backup

2003-11-27 Thread Bob Loeffler
I think mysqldump does that. It creates a script that contains SQL statements to create the table and then the data to populate the table. Mysqldump has command line parameters, but I don't know which ones you would need to use. Bob -Original Message- From: Zenzo [mailto:[EMAIL PROTECTED

RE: Index before or after inserts?

2003-11-27 Thread mos
At 03:19 PM 11/27/2003, you wrote: Mirza, Definitely, index after insert. Andy Maybe not. I know this is the common sense approach that works with many databases, but I'm not sure it is faster with MySQL. MySQL Manual on "Alter Table " >>Note that if you use any other option to ALTER TABLE tha

Re: Index before or after inserts?

2003-11-27 Thread Matt W
Hi, Create the indexes right away and then use ALTER TABLE table DISABLE KEYS; Load your data and then ALTER TABLE table ENABLE KEYS; This will not make a tmp copy of the data file, but will simply start rebuilding the index. However, DISABLE KEYS doesn't disable unique indexes, so these stil

Re: list, order and limit data

2003-11-27 Thread Matt W
Hi, For the query that you would need, see this page in the manual: http://www.mysql.com/doc/en/example-Maximum-column-group-row.html Also see the comment from March 16, 2003 about the LEFT JOIN trick. However, in your case, why don't you just add another column in the tickets table? last_respon

Re: Disorder result with ORDER BY with ENUM, INT

2003-11-27 Thread Matt W
Hi, - Original Message - From: "Chuck Gadd" Sent: Wednesday, November 26, 2003 2:29 PM Subject: Re: Disorder result with ORDER BY with ENUM, INT > Kriengkrai J. wrote: > > > -- System: MySQL 4.0.13, 4.0.16 on Linux x86 > > -- Table type: MyISAM, InnoDB > > -- Description / How-To-Repe

Re: Repeated 100% CPU problem in FreeBSD

2003-11-27 Thread Dan Nelson
In the last episode (Nov 27), Chris Elsworth said: > Most of the time, MySQL 4.0.16 runs absolutely fine on my FreeBSD 4.9 > system. However, today, unexplicably, it's run into the same problem > 3 times now; a couple of the threads suddenly start eating 100% CPU > for no good reason while doing a

Re: Repeated 100% CPU problem in FreeBSD

2003-11-27 Thread Jeremy Zawodny
On Thu, Nov 27, 2003 at 06:25:38PM -0600, Dan Nelson wrote: > In the last episode (Nov 27), Chris Elsworth said: > > Most of the time, MySQL 4.0.16 runs absolutely fine on my FreeBSD 4.9 > > system. However, today, unexplicably, it's run into the same problem > > 3 times now; a couple of the thread

Window parts

2003-11-27 Thread Alvi Cambalon
Greetings! Im new to this MySQL..please help me identifying the different parts of the screen and its purpose. God Bless and thank you Alvi - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard

How To Create An ArrayList From the MySQL database

2003-11-27 Thread Caroline Jen
I have a table "members" in the MySQL database. I am going to supply a String "editor" and search the "members" table. All those who are "editor" will be picked up and their name will enter the array I want to create. How do I code it and return this array? Here is a sketch of my code. I do n