Re: LOCK TABLES error , on a select without any update ?

2003-02-22 Thread Heikki Tuuri
Steff, - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Heikki Tuuri" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, February 22, 2003 1:26 AM Subject: Re: LOCK TABLES error , on a select without any update ?

Re: After MyISAM -> InnoDB data is >2x larger?

2003-02-22 Thread Stefan Hinz
Richard, > didn't expect this much. All of my databases take like 200gb instead of > the 100gb used b4. > Is this normal? Is there anything I can do to mitigate this? The storage requirement of InnoDB tables is about twice as much as for MyISAM tables. I've been searching the manual as I think

Displaying column name of a table from MySQL client (not PHPMyAdmin)

2003-02-22 Thread Prabu Subroto
Dear my friend I don't want to be spoiled by PHPMyAdmin anymore. I want to get be more expert in SQL Command of MySQL. So far, everything is fine but today I realized a problem. If I want to diplay the columns of an empty table, the MySQL Client will diplay nothing such as : " mysql> select *

RE: Displaying column name of a table from MySQL client (not PHPM yAdmin)

2003-02-22 Thread Prabu Subroto
Solved, thank you my friend --- Barry Radloff <[EMAIL PROTECTED]> wrote: > use describe ; > > that chould work > > > *--* > |Barry Radloff | > |Analyst/Programmer | > |Dept: Development | > *--* > Media24 IT > T: +27 021 406 3681 > F: +27 021 406 31

Re: MySQL

2003-02-22 Thread Prabu Subroto
Thank you very much, my friend. It is solved. Thanks.. --- Stefan Hinz <[EMAIL PROTECTED]> wrote: > Prabu, > > >> Is it possible to define Foreign Key and Primary > Key > >> of my database after the tables have been created > ? > >> If yes, how? > > Yes. Use the ALTER TABLE command for this.

re: MySQL

2003-02-22 Thread Prabu Subroto
Thank you my friend. --- Egor Egorov <[EMAIL PROTECTED]> wrote: > On Wednesday 19 February 2003 13:58, Prabu Subroto > wrote: > > > > I did something very stupid in my development. I > > > created a database with a couple of tables...but > I > > > forgot to defining the foreign key and the > prima

Full Text Restrictions

2003-02-22 Thread John Berman
Hi Using mysql v: 3.23.28 Having defined an index across x columns if I then query with say 3 words in my against argument will the query return any row that contains all the words or any row that contains any of the words ? As the version of mysql that my host uses is: 3.23.28 I do not have the

re: Displaying column name of a table from MySQL client (not PHPMyAdmin)

2003-02-22 Thread Victoria Reznichenko
On Saturday 22 February 2003 14:00, Prabu Subroto wrote: > I don't want to be spoiled by PHPMyAdmin anymore. > I want to get be more expert in SQL Command of MySQL. > > So far, everything is fine but today I realized a > problem. If I want to diplay the columns of an empty > table, the MySQL Clien

Re: RE: help starting replication

2003-02-22 Thread Egor Egorov
On Friday 21 February 2003 19:38, you wrote: > You asked: > Does replication user have REPLICATION SLAVE privilege? > > Yes it does. Connect to the master as replication user and see if SHOW SLAVE HOSTS gives any error messages. -- For technical support contracts, goto https://order.mysql.co

mysqld-max but still no referential integrity?

2003-02-22 Thread Robert Mark Bram
Howdy all! I thought InnoDB tables enforced referential integrity? I believe I have set up MySql to use InnoDB tables and I have created tables of type InnoDB, yet I can still enter an illegal row! Can anyone tell me what I am doing wrong? The final "insert into PET " below should not work! Rob

Re: mysqld-max but still no referential integrity?

2003-02-22 Thread Oliver Schlag
Hy Rob, > == my.ini > My my.ini file: > > [mysqld] > basedir=C:/mySql/ > datadir=C:/mySql/data > > [WinMySQLAdmin] > Server=C:/mySql/bin/mysqld-MAX-nt.exe > innodb_data_home_dir = C:\mySql\ibdata > innodb_data_file_path=ibdata1:30M:autoextend you have the InnoDB Variables in the wrong section

RE: mysqld-max but still no referential integrity?

2003-02-22 Thread Robert Mark Bram
Hi Oliver, I tried as you suggested, but I have a different problem now.. > > == my.ini > > My my.ini file: > > > > [mysqld] > > basedir=C:/mySql/ > > datadir=C:/mySql/data > > > > [WinMySQLAdmin] > > Server=C:/mySql/bin/mysqld-MAX-nt.exe > > innodb_data_home_dir = C:\mySql\ibdata > > innodb

Closing mysqld-max - was RE: mysqld-max but still no referential integrity?

2003-02-22 Thread Robert Mark Bram
I think I solved this.. I deleted C:\mySql\ibdata and I could start it up again.. I think I know why it happened too.. when I start a connection with this: mysqld-max-nt.exe --console --standalone it takes the console over.. How do I properly close it down from another console? Rob :) ---

RE: mysqld-max but still no referential integrity?

2003-02-22 Thread Robert Mark Bram
Howdy all! I have changed my my.ini but my problem remains... details below. Any further assistance would be greatly appreciated! I apolagise to all if it seems I am flooding.. :( Rob :) :-> :-} == my.ini [mysqld] basedir=C:/mySql/ datadir=C:/mySql/data [WinMySQLAdmin] Server=C:/mySql/bin/

big table, slow queries...???

2003-02-22 Thread Ferhat BINGOL
Hi, I am new at this group. Nowadays I am using PHP/MySQL more than ever. I have a problem with making queries on my huge database (totally more than 20 million rows and 9 GB). The main problem is it is rather slow. For example I am making a query which is checking the 5 biggest tables for, from

MySQL and Oracle JDeveloper

2003-02-22 Thread Ayyaparaju Ganapathiraju
Hi, This is actually a question for Oracle JDeveloper forums, but I couldn't get any replies from that forum. If you are using JDeveloper on MySQL database, please help me with this question. Since MySQL doesn't have any equivalent to schema or user as in Oracle, I am creating tables in multip

RE: mysqld-max but still no referential integrity?

2003-02-22 Thread Robert Mark Bram
I fixed the problem below by uninstalling, reinstalling and using the WinMySQLAdmin tool.. It left my.ini as: [mysqld] basedir=C:/mySql/ datadir=C:/mySql/data innodb_data_file_path=ibdata1:30M:autoextend [WinMySQLAdmin] Server=C:/mySql/bin/mysqld-max-nt.exe innodb_data_home_dir = C:\mySql\ibdata

Re: LOCK TABLES error , on a select without any update ?

2003-02-22 Thread Steff
Heikki, Thanks for the response. Just to be sure that we did not have a piece of code which we had forgotten about, I did a search of the Java classes involved in this application for the word "LOCK". I did not find any instance where we are locking tables. If we want to updat

大好机会,不容错过!

2003-02-22 Thread yxwcyj2467
mysql:您好! 这里我收集了一些近期免费加入的网站,搞网赚的朋友可千万不能错过! http://yxwcyj.yeah.net2/25截止 http://yrt1688.yeah.net 3/1截止 http://yrt168.126.com 3/1截止 http://yxww168.yeah.net 3/1截止 http://yrt168.yeah.net3/1截止 现在你要做的就是赶快加入,并大力招人,等网站正式开通后就会有很多下线为你工作了。 因近期访问人多,可能会出现网站打不开的现象,没关系,多刷新几遍就是了。

mysql@lists.mysql.com

2003-02-22 Thread mysql
>Description: >How-To-Repeat: >Fix: >Submitter-Id: >Originator: >Organization: >MySQL support: [none | licence | email support | extended email support ] >Synopsis: >Severity: >Priority: >Category: mysql >Class: >Release: mys

NullPointerException in Connection

2003-02-22 Thread Holger Wiechert
I've posted a strange NullPointerException in class Connection with a few days ago (see below). Now I changed the driver to MySQL Connector/J 2.0.14. But I'm still getting a NullPointerException: java.lang.NullPointerException at com.mysql.jdbc.Connection.execSQL(Unknown Source) a

Query syntax help?

2003-02-22 Thread Scott Brown
OK, I am having a bit of trouble designing a MySQL query that returns what I want. Here is the query as I have it thus far: SELECT DISTINCT regformfields.name AS thename, regformfields.label AS thelabel, regfields.name AS fieldsname FROM regformfie

RE: backup script

2003-02-22 Thread Don Read
On 19-Feb-2003 Jeff Mao wrote: > Greetings all, > > Not sure if this is the right place to ask this,...I use the > following script on an OS X server to backup my mysql databases: > > #!/bin/sh > DATE=`/bin/date +%Y%m%d"_"%H%M%S`; > cd /Users/usernmae/Documents; > /usr/bin/mysqldump -hhost -u

Cardinality for FULLTEXT-indexes MySQL 4.0.10

2003-02-22 Thread Tobias Lind
Hi! I have a question regarding "Cardinality" for FULLTEXT-indexes. I have a table with 9 indexes - the last 3 indexes are FULLTEXT. When I run "show index from ", the last index (FULLTEXT) always shows cardinality=NULL... Is this normal? ...everything seems to work ok when I do selects using the

Another Query Table Structure

2003-02-22 Thread Andrew Maynes
This may be simple for most of you MySQL experts out there so a little help would be nice :) I have an index page that is using a Navigation system based on the ID from a table City: The link then goes a DIR for that City. http://www.theaddress.co.uk/City/ The navigation within this DIR is base

Installation and Configuration

2003-02-22 Thread Bruce Feist
I'm a newcomer to MySQL, and I'm having trouble. I've installed MySQL under RedHat 7.1 Linux, and I can't actually use it; I get authorization error messages when I try. In particular, I understand that initially a 'root' user is set up without a password. I can't connect to the database as

Re: Another Query Table Structure

2003-02-22 Thread Arda Balci
Hi Andrew, You don't need to use seperate tables for each company. In fact you shouldn't since select queries with index are fast. I suggest, 1 table for the cities at least two columns, one for a unique column with autoincrement(cityid), the other is the city names, with appropriate column types

Re: Query syntax help?

2003-02-22 Thread Tore Bostrup
Try: SELECT FF.name AS thename, MAX(FF.label) AS thelabel, F.name AS fieldsname FROM regformfields as FF INNER JOIN regfields as F ON (FF.name = F.Name) WHERE FF.label != '' GROUP BY FF.name, F.name I don't think you can include the ORDER BY F.saveorder (anot

Re: Another Query Table Structure

2003-02-22 Thread Tore Bostrup
When designing a database, think of it this way: The "kinds of things" that you need to keep information about would map to the first cut of what tables you need. So if you keep information about Companies and Cities, you need (at least) the tables Companies and Cities. Keep information (attribut

Re: big table, slow queries...???

2003-02-22 Thread Tore Bostrup
Unless your WHERE clause includes relationships for all the tables, you are dealing with a Cartesian product - that is always slow. And if you do have all the relationships included, this is still a monster query. Do you have the proper indexes defined? Do you really need to join these 5 tables

Re: big table, slow queries...???

2003-02-22 Thread Ferhat BINGOL
Tore, Yes, it is necasarry to pick up all the values from 5 tables. I made indexes for each table. My queries are between 12 to 26 seconds now. I am generating a WHERE statement before make the query. If the user do not enter the some min and max values I am skipping this WHERE statements. The in

Re: big table, slow queries...???

2003-02-22 Thread Tore Bostrup
Use EXPLAIN to determine what indexes are chosen in the different cases. AFAIK, version 4 will allow you to specify HINTs in the query, so you may be able to force the query to use certain indexes. There are a lot of factors that affect the execution and speed of queries, including (but not limite

Newbie - How To Link Two Databases

2003-02-22 Thread Diver8
Hi - I am new to MySQL & SQL in general. I have been reading the documentation at www.mysql.com, but I've become quite confused. I hope that one of you can clear up a few issues for me. I have a database called "parcel". The primary key in this database is called "dxf", which contains a unique

Different User, Different datadir

2003-02-22 Thread Robert Mark Bram
Howdy all! I would like to create a user that will only access my current project's database. I would also like to store the data for my current project's database in a particular location. Can I use my.ini to do this? For example, - user = newProject - pwd = newProject - datadir=C:/newProjec

Cumulative Balance Field

2003-02-22 Thread Bryan Waters
I want to keep a cumulative balance field in a mysql table. How do I do this without corruption... if the table looks like this: datetime,desc,amount,balance How can I insert a new record setting the balance field to the last balance value + amount and not have data corruption if multiple inser

Re: Newbie - How To Link Two Databases

2003-02-22 Thread Tore Bostrup
First, it appears that you are confusing "database" with table. A Database is a collection of tables. Each table has rows of data which is organized in columns. >From what I understand, you have the following situation: Table: Parcels Columns: dxf (Primary Key, auto_number) [Descriptio

Re: Newbie - How To Link Two Databases

2003-02-22 Thread Diver8
Thanks for the reply. I'll try your suggestions. Actually, I *do* have two unique databases. They're originally FoxPro dbase files, each generated by a different application which I'm converting to MySQL for a php app. It won't be a problem to create a table for the buildings in the parcel data

RE: Cumulative Balance Field

2003-02-22 Thread Dean Harding
MySQL guarantees that individual statements are atomic, so you can use something like this: UPDATE mytable SET balance = balance + 100 Of course, you'd have to provide the right WHERE clause... Dean Harding. > -Original Message- > From: Bryan Waters [mailto:[EMAIL PROTECTED] > Sent: Sun

Very basic question from a total newbie!

2003-02-22 Thread Stitchin'
I feel so stupid right now! I just loaded up Apache, mySql, and PHP on my home Windows XP machine to work on my website. It'll be running on a Linux server when I get it on the web. I've been trying to check out this catalog program called PHP Catalog. Their website has a free version to check o

Re: Very basic question from a total newbie!

2003-02-22 Thread Paul DuBois
At 20:31 -0500 2/22/03, Stitchin' wrote: I feel so stupid right now! I just loaded up Apache, mySql, and PHP on my home Windows XP machine to work on my website. It'll be running on a Linux server when I get it on the web. I've been trying to check out this catalog program called PHP Catalog. The

mysqld-max-nt.exe as a service

2003-02-22 Thread Robert Mark Bram
Howdy all! How do I open mysqld-max-nt.exe as a service (so I don't have to see a DOS console open for it all the time). Here is the command I use to open it currently: mysqld-max-nt.exe --console --standalone Any help would be appreciated! Rob :) :-> :-}

RE: Cumulative Balance Field

2003-02-22 Thread Dean Harding
So you want to take the balance from some other row, and insert a new row using that balance? In that case, you need to lock the whole table, or you need a proper transaction interface, with read consistency. This implies either locking the whole table with a MyISAM table type or using an InnoDB

RE: mysqld-max-nt.exe as a service

2003-02-22 Thread John W. Holmes
> How do I open mysqld-max-nt.exe as a service (so I don't have to see a DOS > console open for it all the time). Here is the command I use to open it > currently: > > mysqld-max-nt.exe --console --standalone > > Any help would be appreciated! The following command: mysqld-max-nt.exe --install