mysql down problem.

2002-11-04 Thread SB CH
Hello, all. when I direct telnet to mysql server the mysql daemon is down or restarted like this. telnet my.mysql.server 3306 [root@www tmp]# /usr/local/mysql/bin/mysql.server start [root@www tmp]# Starting mysqld daemon with databases from /usr/local/mysql/var and telnet to mysql port at th

getting around a subselect

2002-11-04 Thread familie
As a novice in (My)sql I encounter this problem: I would like to select from a table first the 39 records with the highest variable1 and order them on variable2. So I need something like a subselect and I can't figure out a way around it. Ideally something like: select * from table1 order by va

ASP/MYSQL

2002-11-04 Thread asp52
Hello members, I'm new to mysql and need to conect to from ASP pages. I have written the following code in ASP script <% dim email,objrs,strsql,strconn email=Request.Form ("email") strconn = "DSN=ebyte" strsql="select * from log where email=('" & email & "');" set objrs=server.CreateObject (

ORDER BY and charset iso-8859-2 and windows-1250

2002-11-04 Thread Bc. Radek Krejča
Hello all, I have problem with ORDER BY in MySQL if I have some characters in iso-8859-2 and windows-1250. What I should do for fix it. Thanks Radek - Before posting, please check: http://www.mysql.com/manual.php (

Re: getting around a subselect

2002-11-04 Thread Oluwagbamila Oyekanmi
Check out how to get around subselect queries in the manual. But incase your query is a little complex and cannot be solved as explained in the manual, use temporary table(s). When I had this problem I went round it using MySQL Temporary tables. So in your case, you can do something like: >CREAT

Problems with "ORDER BY" from C API (works from command-line tool mysql.exe)

2002-11-04 Thread Christer Holmström \(at Home\)
Hi! This SQL works perfect when running the command line tool mysql.exe SELECT exe, sum(duration) FROM data GROUP BY exe ORDER BY 2 BUT when running from the C API, the "ORDER BY" part doesn't seem active, why? Please help. /Christer -

MySql uses 98% CPU

2002-11-04 Thread Toni
Hello I've got mysql 3.23.47 running on a freebsd 4.5 box for long time without problems, until now that consumes nearly all available CPU. Also, I am unable to stop the server using mysqladmin -u root shutdown (the process freezes) neither can restart it. If I kill -9 the process it restarts and

Re: Problems with "ORDER BY" from C API (works from command-linetool mysql.exe)

2002-11-04 Thread Joseph Bueno
Christer Holmström (at Home) wrote: > Hi! > > This SQL works perfect when running the command line tool mysql.exe > > SELECT exe, sum(duration) FROM data GROUP BY exe ORDER BY 2 > > BUT when running from the C API, the "ORDER BY" part doesn't seem > active, why? > > Please help. > > /Christer > >

Re: MySql uses 98% CPU

2002-11-04 Thread Dicky Wahyu Purnomo
Pada Mon, 4 Nov 2002 11:55:59 +0100 "Toni" <[EMAIL PROTECTED]> menulis: > Hello > > I've got mysql 3.23.47 running on a freebsd 4.5 box for long time without > problems, until now that consumes nearly all available CPU. > > Also, I am unable to stop the server using mysqladmin -u root shutdown (

select using regexp

2002-11-04 Thread Mark Goodge
Hi, I've got a problem that I'm hoping someone can help with. I need to do a query against a text column in order to extract entries that will match whole words only - for example, a search for "cat" should match any of: The cat sat on the mat It was a large cat. Cat food is interesting.

RE: Problems with "ORDER BY" from C API (works from command-line tool mysql.exe)

2002-11-04 Thread Christer Holmström \(at Home\)
Hi, and thanks for the response, but unfortunately the same problem with both below SELECT exe, sum(duration) FROM data GROUP BY exe ORDER BY 2 DESC; SELECT exe, sum(duration) AS s FROM data GROUP exe BY ORDER BY s DESC; Works from mysql.exe but not from C API. /Christer -Original Message-

Re: MySql uses 98% CPU

2002-11-04 Thread Nicolas MONNET (Tech)
On Mon, 2002-11-04 at 11:58, Dicky Wahyu Purnomo wrote: > Pada Mon, 4 Nov 2002 11:55:59 +0100 > "Toni" <[EMAIL PROTECTED]> menulis: > > > Hello > > > > I've got mysql 3.23.47 running on a freebsd 4.5 box for long time without > > problems, until now that consumes nearly all available CPU. > > >

Help Records Missing

2002-11-04 Thread Stephen Hitchner
A table using Berkeley Tables should have 55000 records. The mysql server crashed. When running this query: select id from customers; returns 16000 records running: select count(id) from customers; returns 16000 records however running a specific query on an specific id i.e. select * from custom

RE: select using regexp

2002-11-04 Thread Andy Eastham
Mark, It looks like you should be using full-text indexes and the match and against functions to me. Check out section 6.8 in the manual. Andy mysql query > -Original Message- > From: Mark Goodge [mailto:mark@;good-stuff.co.uk] > Sent: 04 November 2002 11:21 > To: [EMAIL PROTECTED] > Su

RE: select using regexp

2002-11-04 Thread Peter Lovatt
Hi You could use either normal or fulltext searches. Regexp may well be a good answer (not used it myself). The following should also work SELECT * FROM table WHERE field LIKE "% cat %" OR field LIKE "% cat. %" OR field LIKE "% cat, %" (note the spaces to make sure you get only complete words)

Problem in decimal separator

2002-11-04 Thread Juan_Andres_Torregrosa
I have a problem when I load a text file using the sentence "load data infile" as long as decimals are separated by commas and mysql ignores those decimals, is there any way to specify that decimal separator is comma or point? -

Logging In Errors

2002-11-04 Thread Steve J Racicot
Hi Group, I made some changes to user privileges in mysql and now I cant log in. Can anyone provide a step by step guide as to how I can fix the issue below, without reinstalling mysql? And if I reinstall, will I lose all of the databases created? Warning: Access denied for user: 'root@localho

RE: Logging In Errors

2002-11-04 Thread Salada, Duncan
Stop mysqld and start it again using the --skip-grant-tables command line option. -- FROM THE MANUAL AT http://www.mysql.com/doc/en/Command-line_options.html This option causes the server not to use the privil

Distributing table-files to other machines

2002-11-04 Thread Michelle de Beer
At the moment, the files for tables in a database are all stored in mysql/data/databasename/. Is it possible to distribute the table-files to different discs, or even better, different machines, and still keep the flexability of having everything in one database. Example 1: Prefs: 1 Database 5 ta

Re: Logging In Errors

2002-11-04 Thread Steve J Racicot
I would love to do that, but I am getting access denied errors when I do: /usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user: 'nhbhost@localhost' everything I do gives me an access denied... Steve - Original Message - From: "Erwi

MyCC

2002-11-04 Thread Kevin Ratcliffe
Hi Everybody I just downloaded the MyCC program from the MySQL website. Does it have the capability of being able to select an external text editor, as I would like to edit inserted HTML. Thanks for any reply Kevin Ratcliffe Bolton 6th Form College Bolton, UK --

Re: mysql DATETIME substraction problem/?

2002-11-04 Thread gerald_clark
You can't just subtract datetime fields. Check the date and time functions in the manual. Jim Hogan wrote: Hello! I am working on an analysis that is very much dependent on calculating time differences in seconds. The most simple example: I have 3 variables: time_begin (DATETIME) time_end (D

Mysql windows connection problem

2002-11-04 Thread Gera Dorfman
Hello. I'm running version 3.23 of MySql server for Windows on a Win2K machine. I'm using the standard "C" API in my client software. A single client connects succesfully, but when I run a number of concurrent clients on the same machine (more than apr. 32), the connection (mysql_real_connect() fu

connecting to mysql server from other machines

2002-11-04 Thread Michael Gargiullo
I have a huge problem. I have several remote machines that connect to a mysql server. On Friday, the mysql server started returning ERROR 2013: Lost connection to MySQL server during query Any idea. Michael Gargiullo Network Administrator Warp Drive Networks 590 Valley Health Plaza Paramus NJ

MySQL and binary data

2002-11-04 Thread Steven Nakhla
I am using Qt 3.0.5's QSql database classes to store information in a MySQL database. MySQL is at version 3.23.49. I am trying to store binary data into a column marked as MEDIUMBLOB (or even LONGBLOB) but am having difficulties. Whenever I insert data that is around 1 Megabyte in size, I get an

Re: connecting to mysql server from other machines

2002-11-04 Thread Frederic Trudeau
See this thread : https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=75128 - Original Message - From: "Michael Gargiullo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 04, 2002 9:26 AM Subject: connecting to mysql server from other machines > I have a huge proble

Re: Problems with "ORDER BY" from C API (works from command-linetool mysql.exe)

2002-11-04 Thread gerald_clark
Then I would suggest you check your C code. The program 'mysql' uses the C API. Christer Holmström (at Home) wrote: Hi, and thanks for the response, but unfortunately the same problem with both below SELECT exe, sum(duration) FROM data GROUP BY exe ORDER BY 2 DESC; SELECT exe, sum(duration) AS

Re: select using regexp

2002-11-04 Thread gerald_clark
There are too many exceptions for this to be usefull. What about lines ending in cat. or cat, Your example won't match them. Perhaps "% cat.%" and "% cat,%" patterns might be more helpfull, but what about lines that begin with cat? Peter Lovatt wrote: Hi You could use either normal or fulltext

Re: 4.0.4 stalls

2002-11-04 Thread Tomek Dudziak
Compiling the 4.0.4 source seems to have solved the problem. Regards, Tomek Heikki Tuuri wrote: Tomek, then it is best to either test 3.23.53a or wait for 4.0.5. But please report if those were able to solve the thrashing. Regards, Heikki - Original Message - *From:* To

Re: Help Records Missing

2002-11-04 Thread gerald_clark
How about mysqldump? Stephen Hitchner wrote: A table using Berkeley Tables should have 55000 records. The mysql server crashed. When running this query: select id from customers; returns 16000 records running: select count(id) from customers; returns 16000 records however running a specific

RE: Problems with "ORDER BY" from C API (works from command-line tool mysql.exe)

2002-11-04 Thread Christer Holmström \(at Home\)
The code works in that sence that I get resultsets, the only thing that does not work is the "ORDER BY" option for the SELECT statement. The resultset is ordered by the exe column instead. Should I run MyODBC instead? Is the sourcecode for mysql.exe available? Is there any miss-usage of mysql_q

Re: MySQL and binary data

2002-11-04 Thread Mark
- Original Message - From: "Steven Nakhla" <[EMAIL PROTECTED]> To: "QT" <[EMAIL PROTECTED]> Cc: "MySQL" <[EMAIL PROTECTED]> Sent: Monday, November 04, 2002 3:47 PM Subject: MySQL and binary data > I am using Qt 3.0.5's QSql database classes to store > information in a MySQL database. MyS

Re: MySql uses 98% CPU

2002-11-04 Thread Jeremy Zawodny
On Mon, Nov 04, 2002 at 12:37:15PM +0100, Nicolas MONNET (Tech) wrote: > > We get the same thing on FreeBSD machines quite often, and it's not > related to the actual work being done; MySQL can sit idle but use up > all CPU. It happens after a few days/weeks of uptime. That's a known bug in FreeB

RE: MySQL and binary data

2002-11-04 Thread James Northcott
> Whenever I insert data that is > around 1 Megabyte in size, I get an error saying > "MySQL server has gone away". It doesn't happen with > smaller data, and even if I change the column type to > LONGBLOB I still have this problem. You've hit the default maximum packet size of 1 MB. This is a pr

safe_mysqld crashing

2002-11-04 Thread Kip Turk
I tried to send this Friday, but was a bit frazzled and probably didn't give enough information. So, I'll try again and see if anyone can help. My RedHat 7.3 system running MySQL 3.23.52 crashed. On reboot, everything came up normally except MySQL. When safe_mysqld is run, I get the followi

MAX_BINLOG_SIZE

2002-11-04 Thread Michael Ryan
I am using MySQL V4.0.2alpha and I have set MAX_BINLOG_SIZE to 2M in order to not have to run a CRON job or something similar to do a "FLUSH LOGS" intermittently. This should cause the binary log file to be rotated after it has reached 2M according to the documentation. This hasn't been happening a

Re: select using regexp

2002-11-04 Thread Joseph Bueno
Hi, REGEXP is much more powerful than LIKE; you can match full words with this syntax: SELECT * FROM TABLE WHERE field REGEXP "[[:<:]]cat[[:>:]]"; (Easy, isn't it ? ;) ) You can find more examples in the manual: http://www.mysql.com/doc/en/Regexp.html Regards, Joseph Bueno NetClub gerald_clar

[Error] winmysqladmin.exe - Entry Point not Found

2002-11-04 Thread Sujith
I have the following problem after installing MySql version 3.23.53-max on the Windows NT Server. 1. When I start winmysqladmin.exe, I get a error as follows, - Entry Point not found. The procedure entry point CreateToolhelp32Snapshot could not be located in the dynamic library KERNEL32

RE: Distributing table-files to other machines

2002-11-04 Thread Arthur Fuller
You can move the files and then set up symlinks to them in the /mysql/data/dbName directory. Arthur -Original Message- From: Michelle de Beer [mailto:michelledebeer@;yahoo.com] Sent: Monday, November 04, 2002 8:21 AM To: [EMAIL PROTECTED] Subject: Distributing table-files to other machine

New to MySQL, ported from MS Access. Using ASP & MyODBC - UPDATE problem...

2002-11-04 Thread Luis Sanches
Hi, I've recently made the move over from Access to MySQL. So far, everything has been fine. I'm using: Win2K server (ASP) WinMySQLadmin 1.4, MyCC 0.8.4-alpha, MyODBC 3.51 and MySQL 3.23.51-nt First problem:

DeadLock bug using mysql/Innodb

2002-11-04 Thread rafarife
Description: Hello, I have a deadlock problem when I try to execute some update sentences using 'Lock For Update'. I need to create a new document which is identified by a unique number, which is stored in the field 'Ped' of the table 'Pedidos'. To obtain a new document number I add 1 to the co

newbie: SQL question

2002-11-04 Thread Admin-Stress
Hi, I am just a starter. Anyone can suggest me good web resources for learning SQL command that I can use (compatible) with mySQL ? I read from www.mysql.com documentation, but it's not complete ... Well, if you have collection for beginner, please :) Thanks, kapot __

Re: MySQL and binary data

2002-11-04 Thread Borries Demeler
The problem is that you are starting mysql with the wrong arguments. I think you need to set the max_allowed_packet parameter to something larger than the default 1 M. I got mine to do that by using this command: safe_mysqld --user=mysql -O key_buffer=16M -O table_cache=128 -O sort_buffer=4M -O r

mysql compile problem under Solaris 9

2002-11-04 Thread Andy Elmer
I have tried compiling the latest 3.23 version of mysql under Solaris 9 using gcc 3.2 and keep getting the following error: g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"

RE: newbie: SQL question

2002-11-04 Thread Michael Gargiullo
http://hotwired.lycos.com/webmonkey/backend/databases/ might be a good place, haven't read it, but I send people that want to learn HTML to webmonkey, and they liked it. > -Original Message- > From: Admin-Stress [mailto:meerkapot@;yahoo.com] > Sent: Monday, November 04, 2002 10:50 AM > To

RE: safe_mysqld crashing

2002-11-04 Thread Kip Turk
On Mon, 4 Nov 2002, Alston, Tony wrote: > Kip, > > Do you use RedHat's 'up2date' program? No, but it was a problem with glibc (sort of) anyhow. The problem is resolved. For posterity, here's what we did. 1.) Per the bug report at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=75128,

re: explain bug?

2002-11-04 Thread Egor Egorov
Robert, Monday, November 04, 2002, 12:39:34 AM, you wrote: RGp> I've tried an EXPLAIN of the SELECT below. RGp> Please can anyone tell me why it's RGp> "Impossible WHERE noticed after reading const tables" RGp> ? RGp> I've droped and created the table - but the error/message occurs. RGp> When I

re: connecting a remote mysql-server always fails

2002-11-04 Thread Victoria Reznichenko
Jochen, Saturday, November 02, 2002, 3:49:18 PM, you wrote: JK> when I try to connect to a remote computer running mysql JK> I always get the following error on the remote machine: JK> Number of processes running now: 1 JK> mysqld process hanging, pid 7262 - killed JK>

re: RE: Select by row number

2002-11-04 Thread Egor Egorov
> There is no row number in MySQL. You should use ORDER BY to >> retrieve data in particular order. handf> What about the following info in the manual p. 55? handf> Add a PRIMARY KEY or UNIQUE key to the table and use this. New in Version handf> 3.23.11: If the PRIMARY or UNIQUE key consists of o

re: ORDER BY and charset iso-8859-2 and windows-1250

2002-11-04 Thread Victoria Reznichenko
Bc., Monday, November 04, 2002, 12:14:53 PM, you wrote: BRK> I have problem with ORDER BY in MySQL if I have some characters in iso-8859-2 BRK> and windows-1250. What I should do for fix it. Set up corresponding default-character-set in my.cnf. -- For technical support contracts, goto http

re: Problem in decimal separator

2002-11-04 Thread Egor Egorov
Juan_Andres_Torregrosa, Monday, November 04, 2002, 1:44:11 PM, you wrote: Jaedddc> I have a problem when I load a text file using the sentence "load data Jaedddc> infile" as long as decimals are separated by commas and mysql ignores those Jaedddc> decimals, is there any way to specify that decimal

re: Newbie question: Storing text

2002-11-04 Thread Egor Egorov
Paul, Saturday, November 02, 2002, 5:11:43 PM, you wrote: P> I am kind of new to MySQL. I have ordered MySQL Cookbook but I still P> have a week before it arrives. In the meantime, I am looking for some P> basic help. P> I am looking to store the text/description for the purpose of retrieving P>

re: Re: mysqladmin missing

2002-11-04 Thread Victoria Reznichenko
aman, Saturday, November 02, 2002, 6:18:58 PM, you wrote: am> If I have an old copy of Mysql on the system and want to uninstall that, how am> would I make sure that all the database associated should get deleted, or do am> I do it manually? If you uninstall MySQL server, data directory will not

re: mysql DATETIME substraction problem/?

2002-11-04 Thread Egor Egorov
Jim, Sunday, November 03, 2002, 8:44:43 PM, you wrote: JH> I am working on an analysis that is very much dependent on calculating JH> time differences in seconds. The most simple example: JH> I have 3 variables: time_begin (DATETIME) time_end (DATETIME) and elapsed_ JH> seconds (INT). The dat

RE: newbie: SQL question

2002-11-04 Thread jeff
Try this: http://www.devshed.com/Server_Side/MySQL - Hi, I am just a starter. Anyone can suggest me good web resources for learning SQL command that I can use (compatible) with mySQL ? I read from www.mysql.com documentation, but it's not complete ... Well, if you hav

NO PROBLEM: Re: mysql DATETIME substraction problem/?

2002-11-04 Thread Jim Hogan
On Mon, 4 Nov 2002, gerald_clark wrote: > You can't just subtract datetime fields. Check the date and time functions > in the manual. Thanks, I should know I run the risk of posting a RTFM/FAQ when I'm tired! I got off track by misinterpreting "In MySQL Version 3.23, you can use + and - inste

Missing my.cnf file

2002-11-04 Thread CM Miller
Having some other folks helping me out here with this MySQL problems that I am having. I have found out that I am missing the my.cnf from the /etc directory and I am trying to create the file from scratch, this is what I have so far and also MySQL is installed from .tgz in this directory. /usr

re: Newbie question: Storing text

2002-11-04 Thread Paul DuBois
At 19:15 +0200 11/4/02, Egor Egorov wrote: Paul, Saturday, November 02, 2002, 5:11:43 PM, you wrote: P> I am kind of new to MySQL. I have ordered MySQL Cookbook but I still P> have a week before it arrives. In the meantime, I am looking for some P> basic help. P> I am looking to store the text/d

Re: help create new user

2002-11-04 Thread Bob Lockie
Jeremy Zawodny wrote: On Mon, Nov 04, 2002 at 12:54:17AM -0500, Bob Lockie wrote: That fixed it, thanks. What did it use since I didn't specify an @'localhost'? It used '%' which matches everyhing *except* localhost. The manual explains this. Jeremy It's not obvious in the MySQL manu

RE: Problems with "ORDER BY" from C API (works from command-line tool mysql.exe)

2002-11-04 Thread Christer Holmström \(at Home\)
Hmm, sorry, but it works! Found the problem, it was all my misstake. It was my win32 dialoglist that was sorted :-( Thanks! /Christer -Original Message- From: Christer Holmström (at Home) [mailto:Christer.Holmstrom@;home.se] Sent: den 4 november 2002 15:59 To: 'gerald_clark' Cc: 'Joseph

Size

2002-11-04 Thread Alexander Burbello
I and my friend will do a test with SQL Server, Oracle and MySQL We´ll start with a table with 2.000.000 rows. What´s the best table type to do it? I thought to do in InnoDB but how much do I set the size? Maybe 200MB? Regards Alexander sql, query _

Re: New to MySQL, ported from MS Access. Using ASP & MyODBC - UPDATEproblem...

2002-11-04 Thread Venu
Luis Sanches wrote: Hi, I've recently made the move over from Access to MySQL. So far, everything has been fine. I'm using: Win2K server (ASP) WinMySQLadmin 1.4, MyCC 0.8.4-alpha, MyODBC 3.51 and MySQL 3.23.51-nt First problem: (fixed) -- I had used some keyword

RE: BETWEEN

2002-11-04 Thread Luc Foisy
> sql,query Would it be possible to supply BETWEEN in any order (or rather to allow to do that)? Such as WHERE timestamp BETWEEN 2002100100 AND 20021031235959 would get the same results with WHERE timestamp BETWEEN 20021031235959 AND 2002100100 or any other case where BETWEEN can be u

Re: mysql compile problem under Solaris 9

2002-11-04 Thread Ben Goodwin
I've found that previous build-attempts that have failed (IE did you have a bad/nonexistant LD_LIBRARY_PATH, fix it, and then try 'make' again?) cause this, and even a make distclean doesn't fix it. Try starting from a freshly untarred source ... that's always done it for me. -=| Ben - O

MySQL & Berkeley DB

2002-11-04 Thread Wiley Jacobs
Hello Everyone, I have been going through the documentation on MySQL and on Berkeley DB looking for an answer for my question for several weeks and have yet to come up with one, so I figured I post it. I have a situation where the customer that I have wants to use their current Berkeley DB, altho

RE: Cannot Log into MySQL

2002-11-04 Thread Black, Kelly W [PCS]
If you have installed MySql in some non-standard location, or if the original installation was from the OS install, it may be that you need to link the socks. I have done this, others will probably complain. I had this problem on many systems newly installed. I fixed it with ln -s /var/lib/path/t

RE: mysql dieing

2002-11-04 Thread Black, Kelly W [PCS]
Typically if your OS runs, the mysql will too. You should only be worried with hardware if you are running large database apps on a slow system. -Original Message- From: Stephen Hitchner [mailto:steve@;number41media.com] Sent: Friday, November 01, 2002 9:40 PM To: Mysql Subject: mysql die

RE: rounding behavior

2002-11-04 Thread Black, Kelly W [PCS]
Use the ROUND statement ROUND(sum(CLICKS),sum(IMPS)/sum(CLICKS)*100.0,0),2); -Original Message- From: David Garamond [mailto:davegaramond@;icqmail.com] Sent: Sunday, November 03, 2002 2:31 AM To: [EMAIL PROTECTED] Subject: rounding behaviour hi, mysql> select 1/29; +--+ | 1/29 | +-

Q about replication & timing

2002-11-04 Thread Ray Zimmerman
I'm looking into options to improve performance of mysql in our app and have a question about replication. I need the following guarantee, which I believe is not possible with replication ... If a client successfully updates the master, any subsequent read from a slave must reflect that update.

Maintaining #'s between 2 databases

2002-11-04 Thread Mike Patterson
I have two databases (rt2 & jobs) and within each of these DBs tables that autoincrement email Ticket #'s and Work Request #'s respectively. I'm looking for the best way to maintain the numbers between the databases (e.g. if I had a rt2, jobs, then rt2 requests: rt2 issues ticket #1024, then jo

mysql shared library.

2002-11-04 Thread Nissim Lugasy
Hi, I'm trying to access mysql shared library. mysql_init() function returns the address of MYSQL structure . I need to know what the structure looks like.? can all mysql structure parameters be configured in /etc/my.cfg ? Thanks --

Interesting Challenge

2002-11-04 Thread Black, Kelly W [PCS]
Hi sql query wizards! I need some help. Is there a way I can take this query here => mysql> SELECT cell, sector, -> sum(att) as att, -> sum(lc) as lc, -> sum(csh) as csh, -> ROUND((SUM( lc + csh ) * 100 ) / (SUM(att) - SUM(tccf + bpp + bpc + suf)),2) AS drops, -> sum(tccf) as

Re: Q about replication & timing

2002-11-04 Thread Jeremy Zawodny
On Mon, Nov 04, 2002 at 02:04:35PM -0500, Ray Zimmerman wrote: > I'm looking into options to improve performance of mysql in our app > and have a question about replication. I need the following > guarantee, which I believe is not possible with replication ... > > If a client successfully update

(beginner) mysql connection problem!

2002-11-04 Thread David Wu
Hi everyone, On my local machine I had mysql installed, and I was able to log in and doing a test on it. but today as I am trying to login using >mysql or >mysql -u root -p, I got the error message saying; ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2), I h

Scripts/mysql_install_db error

2002-11-04 Thread Aaron Axelsen
Any suggestions?? I just installed and compiled mysql 3.23.53 and I get this error: [root@Alpha mysql-3.23.53]# scripts/mysql_install_db Preparing db table Preparing host table Preparing user table Preparing func table Preparing tables_priv table Preparing columns_priv table Installing all prepar

RE: Interesting Challenge

2002-11-04 Thread James Northcott
> mysql> SELECT cell, sector, If you only want one row, then selecting cell doesn't make any sense. Cell is different in each row you've selected. If you only want one row, don't select cell. > -> sum(att) as att, > -> sum(lc) as lc, > -> sum(csh) as csh, > -> ROUND((SUM( lc + cs

RE: (beginner) mysql connection problem!

2002-11-04 Thread Michael Gargiullo
Sounds like mysql service hasn't started yet. > -Original Message- > From: David Wu [mailto:dwu@;stepup.ca] > Sent: Monday, November 04, 2002 2:59 PM > To: [EMAIL PROTECTED] > Subject: (beginner) mysql connection problem! > > > Hi everyone, > > On my local machine I had mysql installe

RE: Maintaining #'s between 2 databases

2002-11-04 Thread Cal Evans
create a sequence table. (Possibly in a third database?) sequence sequenceID bigint label varchar(25) NextValue bigint Put 1 record in the table for each autoincrement field using the fieldname as the label. Then use it instead of the built-in autoincrement fields. begin; select @nextID:=NextVa

Scripts/mysql_install_db error

2002-11-04 Thread Aaron Axelsen
Any suggestions?? I just installed and compiled mysql 3.23.53 and I get this error: [root@Alpha mysql-3.23.53]# scripts/mysql_install_db Preparing db table Preparing host table Preparing user table Preparing func table Preparing tables_priv table Preparing columns_priv table Installing all prepar

Re: DeadLock bug using mysql/Innodb

2002-11-04 Thread Heikki Tuuri
Rafa, - Original Message - From: <[EMAIL PROTECTED]> Newsgroups: mailing.database.mysql Sent: Monday, November 04, 2002 6:06 PM Subject: DeadLock bug using mysql/Innodb > Description: > Hello, > > I have a deadlock problem when I try to execute some update sentences > using 'Lock For U

Difficult query

2002-11-04 Thread Alexander Newald
Hello, I have a table with only ips in it. I want to get all networks the ips belong to: Example: 123.123.123.1 123.123.132.2 123.123.123.3 1.1.1.4 1.1.1.5 1.1.1.6 12.12.12.1 12.12.12.2 12.12.12.10 The result should be: 123.123.123.0 1.1.1.0 12.12.12.0 Instead of converting on matching row (f

Re: mysql DATETIME substraction problem/?

2002-11-04 Thread Benjamin Pflugmann
Hello. On Sun 2002-11-03 at 10:44:43 -0800, [EMAIL PROTECTED] wrote: > Hello! > > I am working on an analysis that is very much dependent on calculating > time differences in seconds. The most simple example: > > I have 3 variables: time_begin (DATETIME) time_end (DATETIME) and elapsed_ > sec

Re: Problems with "ORDER BY" from C API (works from command-line tool mysql.exe)

2002-11-04 Thread Benjamin Pflugmann
Hi. On Mon 2002-11-04 at 11:56:40 +0100, [EMAIL PROTECTED] wrote: > Christer Holmström (at Home) wrote: [...] > > This SQL works perfect when running the command line tool mysql.exe > > > > SELECT exe, sum(duration) FROM data GROUP BY exe ORDER BY 2 > > > > BUT when running from the C API, the "OR

Re: Difficult query

2002-11-04 Thread Kip Turk
On Mon, 4 Nov 2002, Alexander Newald wrote: > Hello, > > I have a table with only ips in it. I want to get all networks the ips > belong to: > > Example: > > 123.123.123.1 > 123.123.132.2 > 123.123.123.3 > 1.1.1.4 > 1.1.1.5 > 1.1.1.6 > 12.12.12.1 > 12.12.12.2 > 12.12.12.10 > > The result shoul

Mysql seg faults on remote connections

2002-11-04 Thread Chris West
Same thing here. Local sockets are working find. Remote connections segfault. Getting ready to try the *workaround*. I am using mysql from the stock install of RH8.0 Chris - Before posting, please check: http://www.mysql

Re: Mysql seg faults on remote connections

2002-11-04 Thread David Wu
Whats the workaround?? How should I start with mysql with defualt setting in a command line??? Thanks guys On Monday, November 4, 2002, at 01:33 PM, Chris West wrote: [EMAIL PROTECTED] - Before posting, please check: http:/

RE: Difficult query

2002-11-04 Thread Luc Foisy
Or, you could use distinct and substring_index instead of my last convoluted answer :) > -Original Message- > From: Kip Turk [mailto:kipt@;wcc.net] > Sent: Monday, November 04, 2002 4:17 PM > To: Alexander Newald > Cc: mySQL Mailing Liste > Subject: Re: Difficult query > > > On Mon, 4 No

RE: (beginner) mysql connection problem!

2002-11-04 Thread Black, Kelly W [PCS]
You might also need to add hostname. It depends on what GRANT sql statement was used to add the user id. Something like mysql -u userid -p -h hostname dbasename should work. If not, check that mysqld is in fact running. You can use ps -aux | grep mysql Regards, ~Kelly W. Black -Orig

RE: mysql DATETIME substraction problem/?

2002-11-04 Thread Black, Kelly W [PCS]
More appropriately, use curdate()feature from within sql. select * where date= < curdate()-1; for example ~Kelly W. Black -Original Message- From: Benjamin Pflugmann [mailto:benjamin-mysql@;pflugmann.de] Sent: Monday, November 04, 2002 1:06 PM To: Jim Hogan Cc: [EMAIL PROTECTED] Subject

RE: Interesting Challenge

2002-11-04 Thread Black, Kelly W [PCS]
This simply returns me to the documentation. Thanks -Original Message- From: James Northcott [mailto:jnorthcott@;dpmg.com] Sent: Monday, November 04, 2002 12:13 PM To: Mysql (E-mail) Subject: RE: Interesting Challenge > mysql> SELECT cell, sector, If you only want one row, then sel

RE: mysql shared library.

2002-11-04 Thread Black, Kelly W [PCS]
Try using mysql>show variables; Some variables can be exported to the sql server via the environment table. For example: shell>ulimit=2046 shell>export ulimit shell>mysqld restart Hope this helps, ~Kelly W. Black -Original Message- From: Nissim Lugasy [mailto:lugasy@;lerc.nasa.gov] S

RE: (beginner) mysql connection problem!

2002-11-04 Thread Jennifer Goodie
If it was a problem with mysql permissions you would get an access denied for user@host using password(YES/NO) error. Since the error is cannot connect through socket, either the socket is not in the specified directory or you do not have permission to it or mysqld is not running. -Original M

MySQL MY.INI file

2002-11-04 Thread ir000387
Hello, How do you enable logging of slow queries in the MY.INI file under Windows? Also, does anyone have a reasonably good MY.INI file for a configuration under Windows 2000 for a local MySQL host? Thanks, Dan Cumpian - Befor

newbie: creating database error

2002-11-04 Thread Admin-Stress
After playing around with 'test' database, then I would like to create my own database. I logged in into mysql using root account and created a database. But, when I logged in using regular user, I got his error : ERROR 1044: Access denied for user: '@localhost' to database 'card' What necessar

MySQL on Win2000

2002-11-04 Thread ir000387
Hello, I am running MySQL on my local Windows 2000 box and I am experiencing extreme slowdowns. I have an application that writes query data to MySQL using two, separate threads. After writing 2000-3000 records, all of a sudden, MySQL goes to 98% CPU usage and throughput drops to 1 update every 2

Re: JDBC J/Connect driver is seriously slow against InnoDB

2002-11-04 Thread j.random.programmer
Mark: Once of the great things about MySQL is the prompt attention and response on this list. Thanks for replying to this email so quickly. Read on... --- Mark Matthews <[EMAIL PROTECTED]> wrote: > j.random.programmer wrote: > > Hi: > > > > Thought I'd mention this (using the latest dev > > J/co

Re: MySQL MY.INI file

2002-11-04 Thread Paul DuBois
At 17:27 -0500 11/4/02, <[EMAIL PROTECTED]> wrote: Hello, How do you enable logging of slow queries in the MY.INI file under Windows? It's not Windows-specific: [mysqld] log-slow-queries or [mysqld] log-slow-queries=filename In the former case, the default name is HOSTNAME-slow.log in the d

Locking is hard!?

2002-11-04 Thread Bjorn Palsson
Hi! I have a rather large problem. I run a multi-process-robo-data-collector wich are connected to a single database. To make things faster, it runs on several machines leeching on the processor-power that machines can spare. The problem is to make them do diffrent things all the time! This is a

RE: newbie: creating database error

2002-11-04 Thread Lists @ Apted Technologies Inc.
try www.mysql.com, i heard they have docs there you can read...:) -Original Message- From: Admin-Stress [mailto:meerkapot@;yahoo.com] Sent: Monday, November 04, 2002 1:41 PM To: [EMAIL PROTECTED] Subject: newbie: creating database error After playing around with 'test' database, then I w

Re: Problems with "ORDER BY" from C API (works from command-line tool mysql.exe)

2002-11-04 Thread Paul DuBois
At 11:56 +0100 11/4/02, Joseph Bueno wrote: Christer Holmström (at Home) wrote: Hi! This SQL works perfect when running the command line tool mysql.exe SELECT exe, sum(duration) FROM data GROUP BY exe ORDER BY 2 BUT when running from the C API, the "ORDER BY" part doesn't seem active, wh

  1   2   >