Question on http query

2010-06-02 Thread Kandy Wong
Hi, I'd like to know if MySQL server supports http queries? Thanks. Kandy -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

slow query on replication master and slave

2010-04-27 Thread Kandy Wong
Hi, Is it true that the performance of running a query on a live replication master and slave has to be much slower than running a query on a static server? I've tried to run the following query on a replication master and it takes 1 min 13.76 sec to finish. SELECT *, ABS(timeA-1266143632) a

Question on replication

2008-09-25 Thread Kandy Wong
Hi, Is there a replication setup method just to replicate a specific database not all the databases or exclude a specific database not to be replicated? Thank you. Kandy -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[E

C++ cache MYSQL_RES

2008-09-11 Thread Kandy Wong
Hi, Is there a way to cache the MYSQL_RES in C++? I've tried to develop a class with functions returning the MYSQL_RES, MYSQL_ROW and MYSQL_FIELDS. The functions work fine within the class file. But if I call the functions where else, I'll either get 'Segmentation fault' or 'bus error'. Any i

Re: Need help to query with timestamp in C++

2008-08-15 Thread Kandy Wong
le1 t > WHERE timestamp_column <= '20080815091907' > ORDER BY timestamp_column DESC LIMIT 1 > ) > UNION > (SELECT TIMEDIFF(timestamp_column, '20080815091907') AS diff, t.* FROM > table1 t > WHERE timestamp_column >= '20080815091907' > OR

Re: Need help to query with timestamp in C++

2008-08-14 Thread Kandy Wong
so if that is what you are > seeking for, I can help with PHP. > > Saul > > Kandy Wong wrote: >> Hi, >> >> I need to write a C++ program in a Linux environment to query with a >> timestamp. >> The user will only provide with an approximate time so I'

Need help to query with timestamp in C++

2008-08-14 Thread Kandy Wong
Hi, I need to write a C++ program in a Linux environment to query with a timestamp. The user will only provide with an approximate time so I'd like to know how can I write a program or a query to return the closest data. The followings are the timestamp in the MySQL database: | 2008-08-05 03:56:0

Re: Binlog errors

2007-06-27 Thread Henry Wong
I could be wrong.. but this is a guess.. event_type: 15 is update_rows_event which is used in mysql 5.1 and later.. if mysqlbinlogs is an older version.. most likely it will produce an error because it does not recognize event_type 15 and is bombing out. try it. http://dev.mysql.com/doc

Re: Making ORDER BY RAND() more random [resend]

2005-10-03 Thread Henry Wong
change the seed on the random function. http://dev.mysql.com/doc/mysql/en/mathematical-functions.html On Mon, 2005-10-03 at 08:33 -0700, Graham Anderson wrote: > is there a way to make ORDER BY RAND() at bit more spontaneous ? > > I am using it in a php statement: > $sql = "SELECT media.id, >

Re: Limit of 1000 rows?

2005-01-14 Thread Henry Wong
more > than 1MB, and depending on how oyu do the import can mean no mor ethan 1MB > total data in a single batch. -- Henry Wong <[EMAIL PROTECTED]> -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

mysql ssl support

2004-09-30 Thread Andy Wong
Hi All, I'm confused by seemingly conflicting information between the mysql doc, the high performance mysql book, and a mysql press release (http://www.mysql.com/news-and-events/press-release/release_2003_05.html) regarding mysql's SSL support. What's the difference between mysql 4.0's SSL suppor

client timeout value

2004-08-30 Thread Joe Wong
Hi, Is this possible to set a timeout value for mysql_query() call? Regards, - Joe

make test failed on mysql 4.1

2004-08-03 Thread Joe Wong
regards, - Wong

Python library for cluster support?

2004-07-27 Thread Joe Wong
Hi, may I know of the current MySQL python library supports MySQL cluster or not? Regards, - Wong

Re: question on auto increment field

2004-06-23 Thread Joe Wong
16777215 3. Insert another record without specifying the value of UID At 3, it failed and said: Duplicate entry '16777215' for key 1 But I have only 1 record in the table. Regards, - Wong - Original Message - From: "Egor Egorov" <[EMAIL PROTECTED]> To: <[

question on auto increment field

2004-06-23 Thread Joe Wong
Hi, If it possible to limit the max value of an auto increment field to say, , and how to do it? I am using MySQL 4.0.18. Regards, -- Wong

Re: Updates locking out inserts in transactions for no apparent reason

2004-06-14 Thread Andy Wong
Dear Marko, It does look like the result of a gap lock, but notice that I used both primary keys in the where clause of my update query, therefore it should only match (and update) 1 row. From my understanding (correct me if I'm wrong, my knowledge of how mysql works is gleaned from the mysql docs

Updates locking out inserts in transactions for no apparent reason

2004-06-10 Thread Andy Wong
Hi all, This is my first time on the mysql mailing list, I appreciate if someone can help me with a major problem I encountered with mysql. I have this weird problem with 1 transaction locking out another for no apparent reason and in an inconsistent fashion. I'm using mysql 4.0.18 with innodb ta

Re: {Scanned} RE: random record

2003-09-15 Thread Henry Wong
pls unsubscribe me from this maillist. thanks. - Original Message - From: "Andy Eastham" <[EMAIL PROTECTED]> To: "Mysql List" <[EMAIL PROTECTED]> Sent: Monday, September 15, 2003 8:54 PM Subject: {Scanned} RE: random record > 39? > > > -Original Message- > > From: tuncay bas [ma

Rename/Create Database from Existing Database

2003-06-13 Thread Wong Zach-CHZ013
Hi 1- Is there a command to rename an existing database ? 2- If not, how does one create a new database from an existing database ? could you show me the steps? Any help is appreciated. Thanks -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http:/

DATE

2003-06-12 Thread Wong Zach-CHZ013
Hi How do I rename a new column ? How do I drop a column ? >From MySQL documentation, it refers to rename/drop table. I dont want to do that. Thanks Paul for your aid. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

DATE

2003-06-12 Thread Wong Zach-CHZ013
Hi 1 - I have a column whose datatype is longtext. Its content is 08/06/2003; I created a new column whose datatype is DATE. Its content is null now. How do write a SQL statement that inputs each row from 08/06/2003 in the old column to 2003-08-06 in a new column ? Eg: old column name - my_date ne

DATE - longtext

2003-06-12 Thread Wong Zach-CHZ013
Hi I have a database whose table has a column, which has a datatype longtext. I then try a query mysql> select MY_DATE from my_table where MLC_DATE between '09/22/2003' AND '10/21/2 003'; I thought it would fail since the datatype isnt DATE nor TIMESTAMP. But from the result, it seems to work. 1

Doing select @a does not work in replication.

2003-04-02 Thread Scott Wong
ou for your time, Scott Wong Meiko America, INC -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Mysql hangs on multi table update on innodb table.

2003-03-05 Thread Scott Wong
FOREIGN KEY (parent_id) REFERENCES parent(id) > ON DELETE CASCADE > ON UPDATE CASCADE > ) TYPE=INNODB; > > insert into parent set id=1; > insert into child set id=1, parent_id=1; > update parent,child set parent.id=parent.id+1, child.parent_id=parent.id

Mysql hangs on multi table update on innodb table.

2003-02-21 Thread Scott Wong
, child.parent_id=parent.id+1; Thank you for your time. Scott Wong, Meiko America, INC - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To

RE: Bug with innodb multi-table delete and foreign keys.

2003-02-13 Thread Scott Wong
ere parent.id=child.parent_id; now i get ERROR 2013: Lost connection to MySQL server during query mysql> Number of processes running now: 0 030213 15:54:20 mysqld restarted regards, Scott Wong -Original Message- From: Sinisa Milivojevic [mailto:[EMAIL PROTECTED]] Sent: Thursday, February

Bug with innodb multi-table delete and foreign keys.

2003-02-12 Thread Scott Wong
et id=1, parent_id=1; insert into grandchild set id=1, child_id=1; delete parent,child from parent,child where parent.id=child.parent_id; ERROR 1105: Unknown error fix ? Thank you for your time Scott Wong Meiko America

A bug with innodb and non innodb multi-table delete.

2003-02-12 Thread Scott Wong
Wong Meiko America, 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 unsubscr

problem connecting to mysql using myodbc 3.51.05

2003-02-10 Thread Wong, Sherman
> >Hi, > >I am currently running mysql-3.23.52-3 on Linux 8.0 and myodbc 3.51.05 on win2000 >machines respectively. >Users and host IP has been setup on mysql, and innodb has been setup with as below. > >innodb_data_file_path = ibdata1:10M:autoextend >set-variable = innodb_buffer_pool_size=70M >

InnoDB foreign keys bug

2003-02-08 Thread Scott Wong
; The intesting thing is this : show create table child; FOREIGN KEY (`parent_id`) REFERENCES `parent` (`id`) ON UPDATE CASCADE, FOREIGN KEY (`parent_id`) REFERENCES `parent` (`id`) ON DELETE CASCADE ON UPDATE CASCADE fix ? Thank you for your time Scott Wong Meiko America, INC

Innodb Foreign Key Problems.

2003-02-06 Thread Scott Wong
. Fix? Scott Wong, Meiko America, 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 PROTEC

Help - Convert Date from longtext to MySQL date format

2003-01-28 Thread Wong Zach-CHZ013
Hi I have a few tables in a database Z, namely table a b c In table a, the columns are my_date - longtext num - int(11) eg: mysql> select * from a; +--+--+--+ | my_date | x| +--+--+ | 08/06/2002 |1 | | 08/07/2002 |2 | +--+--+--

'mysqlbug

2002-11-14 Thread Wong, Kee Lang
Dear Sir, I am very new to the mySQL product. I am trying to do some R&D on the possibility to port the MS SQL to mySQL for our system. I have tried with mysql-3.23.53-win. I able to start the mySQL and run the mysqlshow command and others. However, if I try with the mysql-max-4.0.4-beta-win, I s

Re: Benchmark Results or MySQL Articles Needed!

2002-10-03 Thread Mark Wong
base is faster. Our development here is currently focused on SAP DB, but this does not mean we want it to exclusively work with that database. We would love (and appreciate) any help to adapt it to work with SAP DB. Please contact us if there is any interest. Thanks, Mark -- Mark Wong - - [E

Mysql replication servers in circular setup

2002-07-11 Thread Scott Wong
g what are some downfalls on this idea? Thank you. Scott Wong System Administrator - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive)

RE: Duplicate Record

2002-05-22 Thread Wong Zach-CHZ013
> -Original Message- > From: Wong Zach-CHZ013 > Sent: Wednesday, May 22, 2002 7:11 PM > To: [EMAIL PROTECTED] > Subject: Duplicate Record > > Hi > 1) Suppose, in a file, say testfile.sql, > it contains a line > eg: > LOAD DATA INFI

Duplicate Record

2002-05-22 Thread Wong Zach-CHZ013
Hi 1) Suppose, in a file, say testfile.sql, it contains a line eg: LOAD DATA INFILE "mlc_stat_" INTO table mlc FIELDS TERMINATED BY '|' ; And further suppose the record in file mlc_stat_ already exists in the table mlc. Does MySQL have the ability to stop inserting this duplicated record

Duplicate Record

2002-05-22 Thread Wong Zach-CHZ013
Hi 1) Suppose, in a file, say testfile.sql, it contains a line eg: LOAD DATA INFILE "mlc_stat_" INTO table mlc FIELDS TERMINATED BY '|' ; And further suppose the record in file mlc_stat_ already exists in the table mlc. Does MySQL have the ability to stop inserting this duplicated record

OSDL Introduces OSDL-DBT-1

2002-05-17 Thread Mark Wong
contributing to the project to make it work with MySQL. For more details on the project, please see: http://www.osdl.org/projects/performance/osdldbt.html -- Mark Wong - - [EMAIL PROTECTED] Open Source Development Lab Inc - A non-profit corporation 15275 SW Koll Parkway - Suite H - Beaverton OR, 97006 (503

OSDL Introduces OSDL-DBT-1

2002-05-17 Thread Mark Wong
contributing to the project to make it work with MySQL. For more details on the project, please see: http://www.osdl.org/projects/performance/osdldbt.html -- Mark Wong - - [EMAIL PROTECTED] Open Source Development Lab Inc - A non-profit corporation 15275 SW Koll Parkway - Suite H - Beaverton OR, 97006 (503

Re: [PHP] Invalid Argument ??? Not sure how to debug this

2002-03-17 Thread Jason Wong
mysql functions as per the manual examples and you'll soon find where the error is. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* I'm having an emotional outburst!! */ - Before posti

help on mysqlimport

2002-02-28 Thread Danny Wong
I try to run the import test as listed in the document. mysqlimport: Error: The used command is not allowed with this MySQL version, when using table: imptest My server version: 3.23.49. What is the problem? How can I fix it? Thanks! Danny -

Re: Problem with some characters in tablename

2001-12-16 Thread Jason Wong
h this name "'w4-1". > > But, i can't create the table with this name. The request is rejected. > > Has anybody an explanation ? > You need to enclose the table name with backticks, eg: CREATE TABLE `w4-1` ( name varchar(10) NOT NULL default '',

Re: Random

2001-12-09 Thread Jason Wong
category order by rnd; +--+---+ | category_description | rnd | +--+---+ | Figure | 0.200211824104387 | | Magnet | 0.565105185438977 | | Feng Shui| 0.811984655272201 | | Candle | 0.953237160996755 | +---

Re: Associative Array from MySQL

2001-12-09 Thread Jason Wong
ed result[$key_field_val][$key]::$result[$key_field_val][$key]"; } else { #$result[$key_field_val][$key] = $field; echo "Assigned result[$key_field_val][$key]::$result[$key_field_val][$key]"; $tmp[$key] = $field; #echo "Assigned result[$key_field_val][$key]::$result[

Re: Random

2001-12-08 Thread Jason Wong
url is not null > > order > > > > by rand() limit 1"); > > > I have tried everything, but nothing seems to work. Can anyone help. > > > > > > Rob The solution presented by Kodrik does work. What is the problem? -- Jason Wong -> Gremlins As

Re: i can not find my.cnf !

2001-12-07 Thread Jason Wong
t > there're defaults files for My.cnf like /etc/my.cnf or datadir/my.cnf or > ~/.my.cnf, but still i couldn't find that file.Please i need some advices. It's OK, if they're not there, just create one. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* QOTD

Re: help needed on datetime functions

2001-12-05 Thread Jason Wong
ne has to write his own program to do > this. You can use something like this: SEC_TO_TIME(UNIX_TIMESTAMP("2001-11-03 16:11:50") - UNIX_TIMESTAMP("2001-11-03 15:48:00")) which would return 00:23:50 hth -- Jas

Re: Optimizing date queries

2001-12-05 Thread Jason Wong
DATE/TIME field then HOUR(myfield) will extract the hour portion from myfield. Thus you can have WHERE HOUR(myfield) = 14 will select only those rows in myfield where the time is 2:XX PM. hth -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* The Abrams' Principle

Re: Newbie question

2001-11-29 Thread Jason Wong
above) SELECT * FROM table WHERE category LIKE '%christmas%' should do the trick. hth -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Horngren's Observation: Among economists, the real world is often a special case. */ --

Re: Mysql apache php

2001-11-29 Thread Jason Wong
On Thursday 29 November 2001 02:01, Auri Net SAC wrote: > Hi > > please who knows a package that install apache + php + mysql in linux, > i know phptriad but its for windows > Thanks for your answer > rvj > ApacheToolBox http://www.apachetoolbox.com -- Jason Wong -

Re: Large Unique Rows

2001-11-28 Thread Jason Wong
eness it should be usable if you do not have too many rows to deal with. hth -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Baker's First Law of Federal Geometry: A block grant is a solid mass of mone

Re: What's wrong with this inplode / array / mysql-querry ??

2001-11-20 Thread Jason Wong
g In your form, you should name your multiselect fields as "name[]". In your case it would be "zimmermulreg[]". This would then give you an array when the form is submitted and thus make implode happy. hth -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /*

Re: Dumb Question: Listing tables in telnet

2001-11-18 Thread Jason Wong
d what I am suppose to do with > it. I type in commands and it just does another -> What is that? The -> indicates that it is waiting for the rest of the query. You need to end each query with a semi-colon. Thus: mysql> show tables; hth -- Jason Wong -> Gremlins Associates ->

Re: Hopefully easy SQL question

2001-11-14 Thread Jason Wong
ould be returned should be: > > 4385 - 1 > 4513 - 2 > 4382 - 3 > 4533 - 7 try: SELECT MAX(storyID), storyCategoryID, title FROM newsStories GROUP BY storyCategoryID; hth -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* HR 3128. Omnibus Budget Re

Re: Mysql and Japanese Characters

2001-11-14 Thread Jason Wong
amounts of text, since TEXT data > type does not support binary encoding? > > lease ... or i´ll do harakiri You could try using a BLOB. hth -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* "After one week [visiting Austria] I couldn't wait to go back to

Re: Timestamp allways zero zero

2001-11-14 Thread Jason Wong
omains( dName, payPrYr, nextPayDay, timeCreated) VALUES( '$domainName', '$payPerYear', '$nxtPayDay', '$tid')&qu

Re: mysql and cgi

2001-11-03 Thread Jason Wong
RY = "INSERT INTO bandbook (user, ect1, ect2...) VALUES ('$userdb', '$ect1', '$ect2', ...)"; print("$QRY"); ## For debugging $rows=$dbh->do($QRY) || die "Error"; hth -- Jason Wong Gremlins Associates www.gremlins.com.hk ---

Re: Chinese - East Asian Languages

2001-10-26 Thread Jason Wong
e as well. hth -- Jason Wong Gremlins Associates www.gremlins.com.hk - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread,

Re: faster inserts & updates

2001-10-22 Thread Jason Wong
n > Linux. I have a concatenated primary key of multiple fields. And I > also have a unique index on each of these fields. There are > 1,734,291 bytes of data in the table with an average row length of > 61. Sometimes it's quicker to drop the indices, insert your data, then recreate the i

Chinese PinYin/Traditional Support in mysql?

2001-08-15 Thread FWC Stylist Hong Wong
Hi I'd like to be able to input pinyin and Big5 Chinese characters into mysql using Jive discussion forum software, e.g. I would input both English and Chinese into the same field. After reading some past postings I understand that I only need to load Chinese language support if I want to do

urgent: mysql compile problem

2001-08-01 Thread Wong Ching Kuen Frederick
i am using redhat 7.1 (i386-smp) kernel 2.4.6 gcc 3.0 mysql 3.23.40 ./configure --prefix=/usr/local/mysql --with-charset=big5 --with-mysqld-user =mysql i have the following error, could somebody help me?! thank you very much. c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr

Re: Strange Mysql behaviour

2001-06-16 Thread William Wong
> Looks correct to me. Try running this query from the mysql program > to verify that you're really matching the password of some entry: > > mysql> SELECT *, password('mypass') FROM user; Hi guys, I've solved the problem, but it was something related to the password function. In my user table,

Re: Strange Mysql behaviour

2001-06-16 Thread William Wong
> >PHP4> mysql_query("select * from user where username='myname' and passwd = > >password('mypass')"); > > Define "doesn't work". Fails to return rows? PHP generates an error >message? Hi Paul, Sorry bout that. Yes it doesn't return any rows despite the fact that the correct username and pass

Strange Mysql behaviour

2001-06-16 Thread William Wong
Hi there, For some reason, this query doesn't work: PHP4> mysql_query("select * from user where username='myname' and passwd = password('mypass')"); WHILE this one does work: PHP4> mysql_query("select * from user where username='myname' and password('mypass')"); Notice the lack of "passwd = "

Create Tables

2001-05-27 Thread Wong Yew Peng
Dear Sir, The Create Table function is not working. Any steps that I need to take besides creating a database first. Yew Peng Singapore - Before posting, please check: http://www.mysql.com/manual.php (the manual) htt

after changing master-host in my.cnf, slave remained committed to old master.info

2001-04-02 Thread Meng Weng Wong
i initially had a master-host=A defined in my.cnf. later i changed that to master-host=B. i was mystified when i got a connection error: Slave thread: error connecting to master:Host 'dumbo.pobox.com' is not allowed to connect to this MySQL server(0), retry in 60 sec i spent much time pro

What does ERROR 2000 represent?

2001-03-05 Thread Edith Wong
Hey, I have no idea why my "mysql' server keeps giving me ERROR 2000 no matter what I type. I have checked the syntax not seems alright. Would you please show me some light? Thank you for you help! Edith Wong Chinese University of Hong Kong Tel: 852

Compiling MySQL for other character sets

2001-02-15 Thread FCP Wong
ble, I'd like to avoid having to run 2 instances of the mysql daemon, and consequentually 2 instances of the Apache daemon as well. Thanks for any answers Wong - Before posting, please check: http://www.mysql.com/manual.

replication problem

2001-02-12 Thread Stephen Wong
I try to use the replication feature of the latest stable version 3.23.32. Everyting works find when I follow the instructions until when I tried to stop the slave and then start it. It generated the following messages in the error log: 010212 18:28:08 mysqld started /vol2/mysql/libexec/m

myql and cold fusion connection ?

2001-02-12 Thread mysql wong
i can not connect coldfusion with mysql database , the connection is alwasy failed can any one help ? thanks wong - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com

connection

2001-02-12 Thread mysql wong
how to i change the default connection from unix socket to tcpip 3306 ? currently is connection = localhost via unix socket thanks Wong - Before posting, please check: http://www.mysql.com/manual.php (the manual

help on mysql and cold fusion setup (urgent)

2001-02-09 Thread wong
hi i have setup a mysql database foo_db and when i goto admininstrator of coldfusion to setup the odbc, the databsourse is foo_db and i select merant mysql drive, then click add. the verify is fail can anyone tell me what am i does wrong ? i using linux 6.2, coldfusion pro 4.5 thanks Wong

Re: Bug converting string into integer

2001-02-07 Thread Sam Wong
It's gives me correct result (integer value 11) on my FreeBSD 3.5, FreeBSD 4.2 and Debian Linux 2.2 Machine - Original Message - From: "Carsten H. Pedersen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "MySQL mailinglist" <[EMAIL PROTECTED]> Sent: Thursday, February 08, 2001 1:15 AM Subje

Re: merging databases

2001-02-01 Thread Sam Wong
If all tables name are unique, and if you can bear the downtime, just shut down the server and copy the files of one of the database to another database will do - Original Message - From: "Andrew Dennison" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 01, 2001 11:21

Re: Mysqld eats up RAM and CPU

2001-01-30 Thread Sam Wong
You've got 1G Ram! Guys, take a look at the my-huge.cnf in the mysql tree (I've forgot which folder) - Original Message - From: "Matis, Jan" <[EMAIL PROTECTED]> To: "'Sam Wong'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wed

Re: Mysqld eats up RAM and CPU

2001-01-30 Thread Sam Wong
keybuffer=0? tablecache=0? For complicated query, Mysql may search the harddisk for stuff again, the it holds the query for sometimes...and then some more connection come in, as a result, more ram and cpu is consumed May I suggest you to lower down the max connection, and tune up the caching/buff

Re: idle CPU

2001-01-30 Thread Sam Wong
The I/O may not be as fast as the CPU, so it can't use up the CPU - Original Message - From: "Tim Samshuijzen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 11:03 PM Subject: idle CPU > > > Hello, > > We're running a large database on a dedicated server

Re: MySQL Tables over Multiple Drives

2001-01-30 Thread Sam Wong
> So why isn't the --with-raid option set in the binary download version? The file will be bigger and slower in result - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

Re: MySQL Tables over Multiple Drives

2001-01-30 Thread Sam Wong
blize already, I think. BTW, why you want it to span over multiple drive? - Original Message - From: "Jason Frisvold" <[EMAIL PROTECTED]> To: "'Sam Wong'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 7:15 PM Subject: RE:

Re: MySQL Tables over Multiple Drives

2001-01-30 Thread Sam Wong
Compile mysql with --with-raid option, then use symbolic link to link it to other drive - Original Message - From: "Jason Frisvold" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 6:33 PM Subject: MySQL Tables over Multiple Drives > I looked through the manua

Re: ERROR 1170: BLOB column 'Url' used in key specification without a key length

2001-01-29 Thread Sam Wong
Personally speaking, if the index > 256, it will lost the meaning of indexing... - Original Message - From: "Jeremy D. Zawodny" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 3:06 PM Subject: Re: ERROR 1170: BLOB column 'Url' used in key specification without

MySQL Perl DBI/DBD

2001-01-29 Thread Sam Wong
If you've upgraded the perl to 5.6.0, you've to reinstall the modules - Original Message - From: "Don Hargroves" <[EMAIL PROTECTED]> To: "MySQL List" <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 11:15 AM Subject: MySQL Perl DBI/DBD > I have followed the instructions at > http://

Very slow to connect

2001-01-29 Thread Sam Wong
I bet your webserver and database server are seperate machine. Make sure the hostname of web and db are in the /etc/hosts on both machine, it's very slow to use DNS to resolve everything - Original Message - From: "Leonardo Dias" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, J

Re: Copying Database

2001-01-29 Thread Sam Wong
00 1MB Cache, with 1G ram on board It's slow because it contains many files. i.e. Reading a big files is always faster than reading many small files - Original Message - From: "Artem Koutchine" <[EMAIL PROTECTED]> To: "Sam Wong" <[EMAIL PROTECTED]>; &

Re: Copying Database

2001-01-29 Thread Sam Wong
It's quite fast for tar, just around 10-20 minutes. But it's unacceptable slow when untar, more than 3 hours! I just want to know if there's any efficient way to do that... - Original Message - From: "Lars Schioler" <[EMAIL PROTECTED]> To: "Sa

Copying Database

2001-01-29 Thread Sam Wong
I know this question may not be mysql related, sorry. I would like to know what's the faster way to duplicate all database to another machine. I've over 10 tables in each three database, it's very slow to use cp, and very slow to when untar (over 3 hours!) Do you have any solution? Thx in ad

Re: Error 2002: can't connect to mysql.sock

2001-01-26 Thread Sam Wong
I've heard that redhat 7 is not that good. They implant many beta version code inside. Sam - Original Message - From: "Mike Tuller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 27, 2001 9:10 AM Subject: Error 2002: can't connect to mysql.sock > I recently upgrade

FreeBSD 4.2 /w Lastest Snapshots + 3.23.32 - Still CoreDump

2001-01-25 Thread Sam Wong
I'm using 3.23.32 + FreeBSD 4.2 /w Lastest Snapshots on a Dual P2 Xeon 400MHz 1MB Cache, 1GB Ram on 3ware IDE RAID The traffic of it is about 300 queries/second on average, and keep staying at around 400 q/s at night. The problem is that, it core dumps in 5-10 mins, especially at night (high traf

3.23.32 + FreeBSD 4.2 /w Lastest Snapshots - Still CoreDump

2001-01-25 Thread Sam Wong
I'm using 3.23.32 + FreeBSD 4.2 /w Lastest Snapshots on a Dual P2 Xeon 400MHz 1MB Cache, 1GB Ram on 3ware IDE RAID The traffic of it is about 300 queries/second on average, and keep staying at around 400 q/s at night. The problem is that, it core dumps in 5-10 mins, especially at night (high traf