Question DB

2003-12-19 Thread Remember14a
Dear friends, I am using mysql 3.23.58-max. Want to create database Entered mysql>CREATE DATABASE[IF NOT EXISTS] db_anyname -- - it gives me response of too many paramaters. Can anyone advice, please. Delmar.

Re: Importing Data into MySQL

2003-12-19 Thread Michael Stassen
If I understand correctly, your text file does not have an ID for each row, but the table does have an ID column. Good. Your table should have the record ID column defined as AUTO_INCREMENT. Something like CREATE TABLE table_name ( ID int NOT NULL PRIMARY KEY AUTO_INCREMENT, other column

Re: Problem with mySQL and Mac OS X

2003-12-19 Thread Michael Stassen
I'm running mysql 4.0.17 on Mac OS X 10.2.8 without problems. My first guess would be that the upgrade reset the permissions on /tmp, so now the mysql user doesn't have permission to create mysql.sock. Try cd /tmp sudo chmod 1777 . then see if mysqld will start. (While you're in /tmp, mak

How to optimize this query?

2003-12-19 Thread Adam Clauss
I have a table which contains many items. Each item consists of an scriptID, several attributes, and an optional field - a "parent" (called "dupeitem" in the database) item. Most all of these fields are strings - even the IDs which consist of a combination of letters and numbers. Items which hav

Re: can't start the server

2003-12-19 Thread Michael Stassen
landon kelsey wrote: I run safe_mysqld out of /usr with ./bin/safe_mysqld & /var/log/mysqld.log 868 031219 20:52:52 mysqld started 869 Cannot initialize InnoDB as 'innodb_data_file_path' is not set. 870 If you do not want to use transactional InnoDB tables, add a line 871 skip-innodb

dbcs search/query problem

2003-12-19 Thread Yiguang Hu
I have a table like this: tb(ke varchar(10),kc varchar(10),...) where ke contains ascii string while kc contains dbcs string in UTF8. The character_set_server(system,database,client,connection) are all utf8. I have no problem to query the table using "like 'xx%' " against column ke with xx as as

can't start the server

2003-12-19 Thread landon kelsey
I run safe_mysqld out of /usr with ./bin/safe_mysqld & /var/log/mysqld.log 868 031219 20:52:52 mysqld started 869 Cannot initialize InnoDB as 'innodb_data_file_path' is not set. 870 If you do not want to use transactional InnoDB tables, add a line 871 skip-innodb 872 to the [mysqld]

Weird bug in MySQL?

2003-12-19 Thread Michael Bacarella
We're running MySQL 3.23.56 w/ InnoDB on Red Hat Linux 8.0, compiled natively with bundled gcc: # gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=p

Cannot login as root to mysql

2003-12-19 Thread Mike S
I had an account "mike" to mysql. But somehow I change the password. So now I have just one access to the system as root. Trying to login to mysql as root with password and without password no success. Root password is: 123456. What I'm doing wrong? I cannot connect to MYSQL as root. [EMAIL PRO

Questions about Embeded MySQL

2003-12-19 Thread Chris W
I am working on an application for both windows and linux that will be used as both a stand alone desktop application and as a client server application. For the users who are using it as a standalone product I want to embed MySQL into my program so the users don't have to install MySQL to use

Problem with mySQL and Mac OS X

2003-12-19 Thread Jon Pearse
Hi, I've recently been having some problems with mySQL on one of my OS X computers. It was working perfectly until I upgraded from OS 10.2.6 to OS 10.2.8, and now mysqld refuses to start up, showing the following -- [EMAIL PROTECTED] mysql]$ sudo ./bin/mysqld_safe Starting mysqld daem

RE: mysqldump table order with foreign keys

2003-12-19 Thread Paul DuBois
At 11:16 -0600 12/19/03, Victor Pendleton wrote: You will need to place the following at the head of your dump file. SET FOREIGN_KEY_CHECKS=0 Also, in MySQL 4.1, mysqldump does this automatically. It puts out the following at the beginning of the dump file: /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQU

Re: auto increment using even numbers

2003-12-19 Thread Paul DuBois
At 16:26 -0800 12/19/03, K Q-B wrote: I am creating a table and would like to use auto increment, but I would like one column to increment in only odd numbers 1,3,5... and another column of the same table to increment in even numbers 2,4,6... Is it possible to do this? Not using an AUTO_INCREMENT c

Re: auto increment using even numbers

2003-12-19 Thread Tobias Asplund
On Fri, 19 Dec 2003, K Q-B wrote: > I am creating a table and would like to use auto > increment, but I would like one column to increment in > only odd numbers 1,3,5... and another column of the > same table to increment in even numbers 2,4,6... > > Is it possible to do this? Not without a little

Re: Ignor table in replication: replicate-wild-ignore-table

2003-12-19 Thread Paul DuBois
At 22:37 + 12/19/03, Mike S wrote: I want to stop replication for one table in the database. According to the mysql documentation: I need to add the parameter (replicate-wild-ignore-table ) to the my.cnf file. I have some question. #1 In what database I should made the change to my.cnf? Sla

Re: Benefits of MAX_ROWS and AVG_ROW_LENGTH

2003-12-19 Thread Matt W
Hi Mark, I'll tell you what I know. :-) First, AVG_ROW_LENGTH is only needed for dynamic row-length tables (it's ignored with fixed-length rows) -- more specifically, those with TEXT/BLOB columns. Otherwise, if MAX_ROWS is used, MySQL will assume that each TEXT/BLOB column will be filled complet

auto increment using even numbers

2003-12-19 Thread K Q-B
I am creating a table and would like to use auto increment, but I would like one column to increment in only odd numbers 1,3,5... and another column of the same table to increment in even numbers 2,4,6... Is it possible to do this? Thanks, KB __ Do you Yahoo!? New

Ignor table in replication: replicate-wild-ignore-table

2003-12-19 Thread Mike S
I want to stop replication for one table in the database. According to the mysql documentation: I need to add the parameter (replicate-wild-ignore-table ) to the my.cnf file. I have some question. #1 In what database I should made the change to my.cnf? Slave or Master? #2 Than I should restart t

Experiment with MySQL User Defined Functions in Java

2003-12-19 Thread eric
If you have a need for User Defined Functions in MySQL, now you can write them in java. (As well as C++, perl, python, or php, of course.) If you think java UDFs might be handy, please try it out and send some feed back my way. Please keep in mind that this is alpha code, so you probably don't wan

RE: MySQL runs slow on windows 2003

2003-12-19 Thread David Tertre
Ok, i have send them to your mail. I add a thing : when i stop the mysql service, it take 1mn and freeze my computer cause it take 100% CPU. At 20:48 19/12/2003, Victor Pendleton wrote: Can you show us the output from the show processlist; command? -Original Message- From: Rezo [mailto:[E

RE: MySQL runs slow on windows 2003

2003-12-19 Thread Rezo
Ok, i have send them to your mail. I add a thing : when i stop the mysql service, it take 1mn and freeze my computer cause it take 100% CPU. At 20:48 19/12/2003, Victor Pendleton wrote: Can you show us the output from the show processlist; command? -Original Message- From: Rezo [mailto:[E

Re: Installing Mysql on Panther

2003-12-19 Thread Ed Leafe
On Dec 19, 2003, at 12:58 AM, Trebor Scholz wrote: I'd like to install mysql on OSX Panther. In my tutorial it suggests to switch Web Sharing off in the preferences but There are many options in the menu there and web sharing off Is not one of them. Perhaps they mean to go to the System Preferenc

RE: MySQL runs slow on windows 2003

2003-12-19 Thread Victor Pendleton
Can you show us the output from the show processlist; command? -Original Message- From: Rezo [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 1:38 PM To: [EMAIL PROTECTED] Subject: RE: MySQL runs slow on windows 2003 Yes i'am french ! I join to your mail a capture of my task l

RE: MySQL runs slow on windows 2003

2003-12-19 Thread Rezo
Yes i'am french ! I join to your mail a capture of my task list. At 20:25 19/12/2003, Victor Pendleton wrote: What does your Windows Task list --> Processes show when you are running at a high cpu usage? Is French your native language? -Original Message- From: Rezo [mailto:[EMAIL PROTECTE

RE: MySQL runs slow on windows 2003

2003-12-19 Thread Victor Pendleton
What does your Windows Task list --> Processes show when you are running at a high cpu usage? Is French your native language? -Original Message- From: Rezo [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 11:51 AM To: [EMAIL PROTECTED] Subject: RE: MySQL runs slow on windows 2003

Installing Mysql on Panther

2003-12-19 Thread Trebor Scholz
Hi, I'd like to install mysql on OSX Panther. In my tutorial it suggests to switch Web Sharing off in the preferences but There are many options in the menu there and web sharing off Is not one of them. Any suggestions? Best, Trebor -- MySQL General Mailing List For list archives: http://list

Importing Data into MySQL

2003-12-19 Thread Bob Cohen
Sorry in advance for the dumb newbie question but . . . I'm using a content management system and want to avoid the hassle of entering data by hand when I've already got it in a delimited text file. I get the basic concept of using mysqlimport. However, the source file's data doesn't match the ta

Cardinality Bug ?

2003-12-19 Thread trevor%tribenetwork.com
Hello, I was able to duplicate the following sequence in both 4.0.14-max and 4.0.16. It happens in all my tables. I do not understand why the cardinality for the date_created field does not = 223284. mysql> select count(distinct date_created) from POSTING ; +-

RE: MySQL runs slow on windows 2003

2003-12-19 Thread Rezo
Sorry, i dont speak a very good english. mysqld-nt.exe run with IIS 6.0 and it execute ASP pages. There is nothing else that run expect that. At 18:17 19/12/2003, you wrote: What is the MySQL process running at during this time? -Original Message- From: Rezo [mailto:[EMAIL PROTECTED] Se

Re: How to Uninstall Mysql

2003-12-19 Thread ads mysql
I tried as advised as follows : I tried to uninstall mysql rpm as rpm -e /var/lib/mysql It gives following. [EMAIL PROTECTED] root]# rpm -e /var/lib/mysql error: package /var/lib/mysql is not installed [EMAIL PROTECTED] root]# rpm -e MySQL-server-4.0.16-0.i386.rpm error: package MySQL-server-4.0

RE: MySQL runs slow on windows 2003

2003-12-19 Thread Victor Pendleton
What is the MySQL process running at during this time? -Original Message- From: Rezo [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 9:19 AM To: [EMAIL PROTECTED] Subject: MySQL runs slow on windows 2003 Hello, I have upgraded win 2000 to 2003 and since this moment, MySQL 4.0.

RE: mysqldump table order with foreign keys

2003-12-19 Thread Victor Pendleton
You will need to place the following at the head of your dump file. SET FOREIGN_KEY_CHECKS=0 -Original Message- From: sean peters [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 10:28 AM To: [EMAIL PROTECTED] Subject: mysqldump table order with foreign keys Hey all, I'm tryi

RE: Null-safe equal help, please

2003-12-19 Thread Knepley, Jim
The query in question: SELECT switch, hostname, INET_NTOA(it_iFace.ip) AS IP, location, contact, port FROM cam LEFT JOIN iFace ON ( switch = it_iFace.hostID ) LEFT JOIN host USING ( hostID ) LEFT JOIN arp ON ( cam.mac = arp.mac ) WHERE arp.ip <=> if( "" = "",NULL,INET_ATON("") ); (both instances

Database rollback doesn't work

2003-12-19 Thread monicaf
Hi! I have a simple webapp that allows users to register. The user is inserted in the DB and a confirmation mail is sent to the user. If the mail fails I'd like the DB to rollback the transaction, but it doesn't do it. The new user entry is kept in the DB. I'm using Tomcat 4.1 and mySQL 2.3.2. I

mysqldump table order with foreign keys

2003-12-19 Thread sean peters
Hey all, I'm trying to dump the structure of a database using: mysqldump -d myDatabase > structure.sql Which works fine in getting the table create statements, but, how do i get mysqldump to put the creates in an order that will allow replication with foreign key concerns. For instance if i

Re: Query Help 2

2003-12-19 Thread cktsoi
yes, just a typing mistakes~~ anyway, both of them work fine. "gerald_clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > DId I type that? > I meant 1,4 > I left it as substring because that was what he tried. > > ¿n©_ ¡E¢X ¡¸ wrote: > > >yes, it should work, but should not be

Benefits of MAX_ROWS and AVG_ROW_LENGTH

2003-12-19 Thread Mark Hawkes
Hi all, At table creation time I can use MAX_ROWS and AVG_ROW_LENGTH to (a) limit the size of a HEAP table (b) overcome MyISAM's default 4GB limit But are they used in any other ways? Does MySQL use them to improve performance by sizing buffers appropriately or to prevent fragmentation in

Re: Connector/J 3.0.9 Unexpected end of input

2003-12-19 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill Ataras wrote: > Thanks. Yeah I saw the section on failover. I guess I didn't understand > that autoreconnect in the url is now used for failover to another server > rather than reconnecting to the same server. Is that what you mean? If > that's t

MySQL runs slow on windows 2003

2003-12-19 Thread Rezo
Hello, I have upgraded win 2000 to 2003 and since this moment, MySQL 4.0.17 run very slow. CPU usage is always between 60 to 100%. Where i can found a solution ? Thanks a lot. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.

Re: memory trap

2003-12-19 Thread Heikki Tuuri
Hi! What MySQL version you are running? Can you show us your my.cnf, so that we see how much memory you had allocated to the InnoDB buffer pool? Did you run some big DELETE, UPDATE, or SELECT ... FOR UPDATE, or SELECT ... LOCK IN SHARE MODE query at that time, so that you could really exhaust al

Re[2]: two tables

2003-12-19 Thread DeBug
is there any difference between: a) >>select lname, fname >>from person_tb, details_tb >>where mem_id = det_id >>and fin = "y"; and b) select lname, fname from person_tb where mem_id in (select det_id from details_tb where fin = "y") which one will execute faster ? -- MySQL General Mailing

Re: two tables

2003-12-19 Thread gerald_clark
Trevor Rhodes wrote: Hello All, person_tb contains mem_id, lname and fname details_tb contains det_id and fin. They both contain other fields, but I don't care about them at this time. I'm trying the following select lname, fname from person_tb, details_tb where mem_id = det_id and fin = "y"

Re: trying to sell a VP on using mysql under Redhat...no problem under Redhat 7.3

2003-12-19 Thread gerald_clark
landon kelsey wrote: (1) performed a standard install of Redhat Linux 9 months ago...now (I found mysql 3.23.52 installed) Under root, I executed mysql_install_db successfully: showing: installing all prepared tables 031219 0:44:16 /usr/libexec/mysqld: Shutdown Comp

Privileges required for controlling replication

2003-12-19 Thread Tom Acland
Hi, Does anyone know what privileges are required for a user to be able to call statements that control replication? Just to clarify exactly what I mean here: I am writing a module to manage fail-over if a master db dies and would ideally like to be able to run the app. without having to grant i

Request help with error 1236

2003-12-19 Thread Andy DePue
Hello all, I have a simple MySQL replication system setup with a single master and a single slave. The slave is running 4.0.16-standard and the master is running 4.0.16-standard-log. On an (almost) daily basis, I get this error on my slave: 031216 9:55:44 Error reading packet from server: l

Re: Question

2003-12-19 Thread Egor Egorov
[EMAIL PROTECTED] wrote: > > I downloaded mysql on windows 98. > I entered > cd c;\mysql_install_db > It is responding as "too many parameters" > Can anyone advice how to fix it, please. You don't need to run mysql_install_db script if you install MySQL server on Windows. -- For technical s

RE: Help me - please

2003-12-19 Thread Carlos André Moura de Amorim
i'm root!! *** Carlos Andre Moura de Amorim --> Funcionario UNCISAL --> Tecnico de Informatica CEFET-AL --> Acad. de Mecicina UNCISA

Re: Help me - please

2003-12-19 Thread Victor Medina
what distro are you using? what is running on this server? another server is runnin' on the same machine? what hardware are you using? is it heavy loaded? On Fri, 2003-12-19 at 09:54, Carlos Andrà Moura de Amorim wrote: > i added ulimit -n 1024 in mysql_install_db, i can't to install. Appear th

RE: Help me - please

2003-12-19 Thread Mechain Marc
You must be 'root' to do a "ulimit -n 1024". Marc. -Message d'origine- De : Carlos André Moura de Amorim [mailto:[EMAIL PROTECTED] Envoyé : vendredi 19 décembre 2003 14:55 À : Chris Elsworth Cc : [EMAIL PROTECTED] Objet : Re: Help me - please i added ulimit -n 1024 in mysql_install_db,

Re: Help me - please

2003-12-19 Thread Carlos André Moura de Amorim
i added ulimit -n 1024 in mysql_install_db, i can't to install. Appear the error again. Please again!!! On Thu, 18 Dec 2003, Chris Elsworth wrote: > On Thu, Dec 18, 2003 at 05:28:30PM -0200, Carlos Andr? Moura de Amorim wrote: > > > 031217 14:32:34 Warning: setrlimit couldn't increase number o

Re: How to Uninstall Mysql

2003-12-19 Thread Victoria Reznichenko
ads mysql <[EMAIL PROTECTED]> wrote: > > I have intstalled mysql rpm. > By mistake user table entries are deleted. Therefore I could not access mysql. > > I want uninstall the same and reinstall it. > If you want to re-create privilege tables you should move directory 'mysql' to another place

How to Uninstall Mysql

2003-12-19 Thread ads mysql
I have intstalled mysql rpm. By mistake user table entries are deleted. Therefore I could not access mysql. I want uninstall the same and reinstall it. Please guide me how to do that . Thanks - Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing

A series of essays on fulltext searching.

2003-12-19 Thread Andrew Braithwaite
Hi, This isn't MySQL specific, but it's very interesting and I thought people may be interested. http://www.tbray.org/ongoing/When/200x/2003/07/30/OnSearchTOC Cheers, Andrew SQL, Query -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lis

Re: How boolean full-text search finds matches?

2003-12-19 Thread Matt W
Hi Sergei! Thanks for replying again. I hope I'm not wasting too much of your time with my questions! :-) - Original Message - From: "Sergei Golubchik" Sent: Thursday, December 18, 2003 7:17 AM Subject: Re: How boolean full-text search finds matches? > Hi! > > On Dec 17, Matt W wrote

Re: Binaries for PocketPC

2003-12-19 Thread John Leach
I believe there are some arm binaries for MySQL available but compiled only for Linux. I've not seen any WinCE ones. See www.handhelds.org for Linux pocketpc distributions. John. On Thu, 2003-12-18 at 22:20, Matt Lynch wrote: > Hi, > > Does anyone know of a MySQL distribution for the PocketPC?

Re: Problem with EQ_REF and ALL

2003-12-19 Thread Dobromir Velev
Hi, I can't seem to find any problems, except for the few duplicate indexes in tbl_klanten, tbl_v_levering, tbl_v_bestelbon - when you have PRIMARY KEY (klant_id) you don need to add KEY klant_id (klant_id). I created the tables on a 4.0.12 server and the EXPLAIN returned EQ_REF on both qu

libmySQL.dll 4.1.1

2003-12-19 Thread Juri Shimon
Hi! Was 'mysql_connect' purposely excluding from libmySQL.dll export clause or by accident? Thanks. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Updating table1 from table2

2003-12-19 Thread Egor Egorov
[EMAIL PROTECTED] wrote: > > I am new to MySQL and can not find how to do this. I am running 4.0.16. Table1 > has the correct values for a common field. Table 2 (the real one) needs to be > updated from t1 via a common field. > > Can this be done with joins. And if not what is the best way.

two tables

2003-12-19 Thread Trevor Rhodes
Hello All, person_tb contains mem_id, lname and fname details_tb contains det_id and fin. They both contain other fields, but I don't care about them at this time. I'm trying the following select lname, fname from person_tb, details_tb where mem_id = det_id and fin = "y"; but it is giving me

RE: Connector/J 3.0.9 Unexpected end of input

2003-12-19 Thread Bill Ataras
Thanks. Yeah I saw the section on failover. I guess I didn't understand that autoreconnect in the url is now used for failover to another server rather than reconnecting to the same server. Is that what you mean? If that's the case I can move to dbcp or something that should handle stale connection

Re: help me!!!how to write such sql in mysql?

2003-12-19 Thread Egor Egorov
"xian ting" <[EMAIL PROTECTED]> wrote: > in sql: insert into table select from ... > can select from a remote data base server such as sqlserver using odbc > as 'SELECT * into test01 FROM Fund IN [ODBC] [ODBC;Driver=SQL > Server;UID=admin;PWD=;Server=(lacal);DataBase=CMBXMDM;]'in access. > thanks

Re[2]: Locking the tables

2003-12-19 Thread Andrey Subbotin
Hello Binay. Friday, December 19, 2003, 2:04:51 PM, you wrote: B> Hi Andrey, B> many thanks for quick response. plz find my further query below. >> AFAIR, you usu. do that with: >> LOCK TABLE mytbl WRITE; >> // do smth. here >> UNLOCK TABLE mytbl; B> ++ B> How can i achieve the

Re: ? about user and db table

2003-12-19 Thread Johannes Franken
* rmck <[EMAIL PROTECTED]> [2003-12-19 01:24 +0100]: > I'm trying to uderstand the difference between these tables > (mysql.user, mysql.db) v.4.0. [...] I'v looked at the manual, but I'm just > not getting it... Can someone break it down for me... Very rough explanation: - the user table contai

trying to sell a VP on using mysql under Redhat...no problem under Redhat 7.3

2003-12-19 Thread landon kelsey
(1) performed a standard install of Redhat Linux 9 months ago...now (I found mysql 3.23.52 installed) Under root, I executed mysql_install_db successfully: showing: installing all prepared tables 031219 0:44:16 /usr/libexec/mysqld: Shutdown Complete To start mys

Re: Locking the tables

2003-12-19 Thread Binay
Hi Andrey, many thanks for quick response. plz find my further query below. - Original Message - From: "Andrey Subbotin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 19, 2003 12:27 PM Subject: Re: Locking the tables > > Hello Binay. > Friday, December 19, 2003, 1:5