connect by IP number

2003-01-13 Thread mahdi samia
Hello all, I have writed a program and compiled it by g++. I used from API function for connecting to MySQLServer : mysql_real_connect(db,"192.168.2.245",NULL,NULL,"vlrdb",3306,"/tmp/mysql.sock",CLIENT_ODBC) but when running it I receive following message: Host "192.168.2.249" is not allowe

RE: select the next name

2003-01-13 Thread Adam Erickson
> Ok my gut would say that this would not give the result I want > unless the id's are sorted by last name, and given inserts and > such I can see that would not be the case. But I sense the > glimmer of an approach in this query... You're right, I don't know why I thought you wanted to sort by

Hostname error on install

2003-01-13 Thread Mike
OS - FreeBSD 4.7 Release MySQL 3.23.54 Have an odd error. When reinstalling MySQL, I needed to add something's, it says the hostname is wrong, I did a make clean and tried make reinstall --force and everything else I can find. Never had this error before! Nothings been changed since it was install

RE: Unable to install 4.08 or 4.09

2003-01-13 Thread JamesD
I have seen this error when untarring a gz file with: tar -xvf 'file.gz on the 4.08 distr. that was just my mistake, and when i did tar -xvzf mysql-4.0.9-gamma.tar.gz everthing went smooth Jim -Original Message- From: Defryn, Guy [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 20

Fw: error in HP-UX

2003-01-13 Thread Rahul
Hello all, Since there is no reply still, i'm forwarding it again. Hope someone will help to proceed further. Mysql compiles fine, but make test fails. OS: HP-UX I tried with hp-ux default thread and gnupthread. 1)while trying with default systems pthread, i got following error messages. gma

getting backup data from .frm files in InnoDB

2003-01-13 Thread kk
Hello (sql,query) (B I recently moved from mysql4.0.3 to mysql4.0.8gamma (BI did a copy of my databases inside the *data* directory alone(i.e. *.frm* (Bfiles) (B All the tables are InnoDb tables (B (BNow I copied all those files to my new MYSQL_HOME\DATA directory (B (BBut when I try to

Fw: Problem on WinXP

2003-01-13 Thread C. Reeve
Hi, I just uninstalled and reinstalled and got it to work on port 3306, but I can't get it to work on any other port. As I said, I have changed this in my.ini. Is there something else I should be doing to get this to work on a non-standard port.? TIA - Original Message - From: "C. Re

RE: select the next name

2003-01-13 Thread Paul DuBois
At 6:02 + 1/14/03, [EMAIL PROTECTED] wrote: > SELECT id,first,last FROM names ORDER BY id LIMIT 2,1; Work? Limits to one result, start at second offset. (I may have the 2,1 in the wrong order though) Ok my gut would say that this would not give the result I want unless the id's are s

RE: select the next name

2003-01-13 Thread mySQL_list
> SELECT id,first,last FROM names ORDER BY id LIMIT 2,1; > > Work? Limits to one result, start at second offset. (I may have the 2,1 in > the wrong order though) Ok my gut would say that this would not give the result I want unless the id's are sorted by last name, and given inserts and such I

Problem on WinXP

2003-01-13 Thread C. Reeve
Hi, I just installed MySQL on my WinXP box and not sure what's going on. The server starts (or so it says it does) but I get an error saying I can't connect to localhost. Not sure what else to say. I have included some info below (note that I changed the port to 3308 in my.ini as Linux Mysql is us

RE: select the next name

2003-01-13 Thread Adam Erickson
Would: SELECT id,first,last FROM names ORDER BY id LIMIT 2,1; Work? Limits to one result, start at second offset. (I may have the 2,1 in the wrong order though) > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 13, 2003 10:20 PM > To: [EM

select the next name

2003-01-13 Thread mySQL_list
To begin with I am only about 3/4 of the pay through paul d's great book so bear with me. Say I have a table (names) with columns (id, first, last) and I want the next name when ordered by last, first in the table, say given a particular id. So how would I frame the query. Something like sel

Redhat 8.0 MySQL 3.23.52-3 Replication Problems

2003-01-13 Thread Lists @ Apted Tech.
I have been having a lot of trouble configuring mysql to do just the simplest replication. Its a standard RedHat 8.0 install, I have followed the directions on http://www.mysql.com/doc/en/Replication_HOWTO.html to the letter half a dozen times now and still, the slave server crashes repeatedly as

RE: Unable to install 4.08 or 4.09

2003-01-13 Thread Defryn, Guy
Thanks Paul, It's working now. cheers -Original Message- From: Paul DuBois [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 3:41 p.m. To: Defryn, Guy; '[EMAIL PROTECTED]' Subject: Re: Unable to install 4.08 or 4.09 At 15:31 +1300 1/14/03, Defryn, Guy wrote: >I have tried to in

Re: Unable to install 4.08 or 4.09

2003-01-13 Thread Paul DuBois
At 15:31 +1300 1/14/03, Defryn, Guy wrote: I have tried to install mysql 4.0.8 and 4.0.9 and I get the following error After running gunzip < mysql-4.0.9-gamma.tar.gz (source install) Mysql-4.0.9-gamma/bdb/ Mysql-4.0.9-gamma/bdb/db/ Mysql-4.0.9-gamma/bdb/db/db_upg.c Mysql-4.0.9-gamma/bdb/db/db.c

Unable to install 4.08 or 4.09

2003-01-13 Thread Defryn, Guy
I have tried to install mysql 4.0.8 and 4.0.9 and I get the following error After running gunzip < mysql-4.0.9-gamma.tar.gz (source install) Mysql-4.0.9-gamma/bdb/ Mysql-4.0.9-gamma/bdb/db/ Mysql-4.0.9-gamma/bdb/db/db_upg.c Mysql-4.0.9-gamma/bdb/db/db.c Mysql-4.0.9-gamma/bdb/db/tags Tar : skippi

Re: How to insert entire text file in a table column

2003-01-13 Thread Haisam K. Ido
Excellent! It works. H M Kunzmann wrote: Yes there is ! Use LOAD_FILE(path_name) as the value component of the insert/update statement On Mon, 2003-01-13 at 00:41, Haisam K. Ido wrote: I have the following table, CREATE TABLE cp ( id INT(11) NOT NULL auto_increment, file

RE: Can't connect to MySQL server & Access denied for root

2003-01-13 Thread Loren McDonald
Sounds like the same problem I'm having (for which I'm still stumped and don't know what has caused it): table mysql.user is read only. Test this by logging into mysql and using the GRANT or REVOKE statements. -- Loren McDonald Gods Of Music Reviewer/Editor [EMAIL PROTECTED] http://www.GodsOfM

Re: Upgrading to version 4.

2003-01-13 Thread Zak Greant
On Mon, Jan 13, 2003 at 03:45:59PM -0300, Maximo Migliari wrote: > In the MySQL manual, under > http://www.mysql.com/doc/en/Upgrading-from-3.23.html > > it says: > --- > The old C API functions mysql_drop_db, mysql_create_db, and mysql_connect > are not supported anymore, unless you comp

RE: mysql.users read only?

2003-01-13 Thread Loren McDonald
Just tried. Nope... mysql> grant all privileges on mysql.* to ext identified by 'ext1tex2' with grant option; ERROR 1036: Table 'user' is read only -- Loren McDonald Gods Of Music Reviewer/Editor [EMAIL PROTECTED] http://www.GodsOfMusic.com > > Does the user 'mysql' have write access to t

Re: Problem getting the last insert id in my application -> connectiontimed out

2003-01-13 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Bateman wrote: Hi First off I would like to say I appreciate all your help very much. Now, here's what I have. I installed, and confirmed that it runs properly, the Connector/J v3 drivers. my resin.conf looks like this: jdbc/FormsAreUs

preventing duplicate records when using WHERE foo IN syntax

2003-01-13 Thread Ken Easson
Hello, I need to get a single result from a SELECT from a table with the following sturcture: component - varchar(25) primary key catNum - varchar(25) primary key price - decimal(10,2) my component list may contain duplicate catNum ie: primary drive -WD1GJB - W

Re: Problem getting the last insert id in my application -> connectiontimed out

2003-01-13 Thread John Bateman
Hi First off I would like to say I appreciate all your help very much. Now, here's what I have. I installed, and confirmed that it runs properly, the Connector/J v3 drivers. my resin.conf looks like this: jdbc/FormsAreUs javax.sql.DataSource And when I 'use' this co

Replication halts with sql syntax error

2003-01-13 Thread markb
>Description: There seems to be a problem with mysql replication. When the slave server encounters sql that uses backticks instead of single quotes. The +replication stops until you manually advance the position number in the master.info +file. >How-To-Repeat: 1. Set up a replication server 2. en

Re: Html entities and MySql, this is a confusing one to me.

2003-01-13 Thread Scott Haneda
on 01/13/2003 2:10 PM, Scott Haneda at [EMAIL PROTECTED] wrote: >> How do you know this isn't simply a failure of your terminal window >> to display the character properly? That's the most likely problem >> here, not that your data are stored incorrectly. Correct you are, the data in MySql was c

Re: Removing users

2003-01-13 Thread Paul DuBois
At 23:40 +0100 1/13/03, Stefan Hinz, iConnect (Berlin) wrote: Ed, That would work but is there no way to completely remove their record? With REVOKE, you can partially or totally revoke privileges from users. What you can't do with REVOKE (in MySQL) is to erase a user completely. For this, y

Re: Upgrading to version 4.

2003-01-13 Thread Paul DuBois
At 23:45 +0100 1/13/03, Stefan Hinz, iConnect (Berlin) wrote: Maximo, My company's website is running version 3.23.53a, and the main client that uses MySQL is PHP 4.2.3. Will mysql_connect() no longer work in PHP? Although this manual entry is talking about the C API functions, I assum

Re: Removing users

2003-01-13 Thread Stefan Hinz, iConnect \(Berlin\)
Ed, > That would work but is there no way to completely remove their record? With REVOKE, you can partially or totally revoke privileges from users. What you can't do with REVOKE (in MySQL) is to erase a user completely. For this, you will have to DELETE FROM mysql.user WHERE User = 'user2bremov

Re: Upgrading to version 4.

2003-01-13 Thread Stefan Hinz, iConnect \(Berlin\)
Maximo, > My company's website is running version 3.23.53a, and the main client that > uses MySQL is PHP 4.2.3. Will mysql_connect() no longer work in > PHP? Although this manual entry is talking about the C API functions, I > assume PHP uses these to communicated with MySQL. Perhaps I might be

MySQL 4.0.9 is released

2003-01-13 Thread Jani Tolonen
Hi, MySQL 4.0.9, a new version of the world's most popular Open Source Database, has been released. It is now available in source and binary form for a number of platforms from our download pages at http://www.mysql.com/downloads/ and mirror sites. Note that all mirrors may not be up to date; If

Re: Html entities and MySql, this is a confusing one to me.

2003-01-13 Thread Paul DuBois
At 13:51 -0800 1/13/03, Scott Haneda wrote: Was working on a database job last night, and ran into a little stumbling block, hope all this comes though in email, if you see a ® it is a "registered mark" just in case the email clients out there change it around. So I have a simple database, one ta

Re: Html entities and MySql, this is a confusing one to me.

2003-01-13 Thread Scott Haneda
on 01/13/2003 1:58 PM, Paul DuBois at [EMAIL PROTECTED] wrote: > How do you know this isn't simply a failure of your terminal window > to display the character properly? That's the most likely problem > here, not that your data are stored incorrectly. Well, I don¹t for certain, I just did a dump

RE: Initiating secure connection to MySQL4 from PHP

2003-01-13 Thread David Rock
Hello, This is discouraging after I spent most of the weekend getting OpenSSL working with our MySQL 4 server. Unfortunately I can't use Stunnel to secure the connection between our website and our MySQL server because our ISP will not allow me to run the Stunnel daemon on their servers. They hav

Html entities and MySql, this is a confusing one to me.

2003-01-13 Thread Scott Haneda
Was working on a database job last night, and ran into a little stumbling block, hope all this comes though in email, if you see a ® it is a "registered mark" just in case the email clients out there change it around. So I have a simple database, one table, and say one field, varchar(14) and in it

RE: help with query

2003-01-13 Thread Kenneth Hylton
>From you example, not quite sure what you are trying to do (I could if, for example generic tree was 0199, and 01 was tree and last two characters were color or something like that) At any rate, you can use string functions to pull data from portions of fields to build whatever you want to search

Re: Disable log messages for Embedded Server?

2003-01-13 Thread Heikki Tuuri
Matt, the variable mysql_embedded makes InnoDB more silent: heikki@hundin:~/mysql-4.0/sql> grep -n mysql_embedded *.cc ha_innodb.cc:659: if (mysql_embedded) { ha_innodb.cc:768: srv_print_verbose_log = mysql_embedded ? 0 : 1; mysqld.cc:390:bool mysql_embedded=0; mysqld.cc:392:bool mysq

InnoDB table, NOT NULL question

2003-01-13 Thread Gabe Geisendorfer
Hello, I'm in the process of moving from Postgres to MySQL and I have a question. +How do you prevent a field from being left empty? I have an InnoDB table that looks like the following. CREATE TABLE `stuff` ( `stuff_id` int(11) NOT NULL auto_increment, `somevalue1` varchar(35) NOT NULL,

Re: help with query

2003-01-13 Thread Gelu Gogancea
Hi, SELECT LEFT(YOUR_COLUMN,2) FROM YOUR_TABLE.for position SELECT RIGHT(YOUR_COLUMN,2) FROM YOUR_TABLE for type Regards, Gelu _ G.NET SOFTWARE COMPANY Permanent e-mail address : [EMAIL PROTECTED]

InnoDB Foreign Key Questions

2003-01-13 Thread Karam Chand
Hello I have two tables of InnoDB type. CREATE TABLE `ledger` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) default NULL, PRIMARY KEY (`id`), KEY `id` (`name`) ) TYPE=InnoDB; CREATE TABLE `voucher` ( `id` int(11) NOT NULL default '0', `vdate` date NOT NULL default '

Re: Book recomendations

2003-01-13 Thread Michael T. Babcock
Matthew K. Gold wrote: I agre with the DuBois recommendation. I have a couple of quibbles, but overall, I think it's a great book (and I did a pretty exhaustive check when I was first learning mysql. Of course, if you want a generic how-to on designing databases or SQL itself, there are an

Re: Initiating secure connection to MySQL4 from PHP

2003-01-13 Thread Georg Richter
On Monday 13 January 2003 17:49, Tonu Samuel wrote: Hi, Currently PHP's mysql extension doesn't support SSL. This will be available in PHP 5. Regards Georg - Before posting, please check: http://www.mysql.com/manual.php

help with query

2003-01-13 Thread Leonardo Javier Belén
Hi all! I would like to build a query that I can use to search hierichally from an char(4) id composed as followed 2positions for the class of plant (for example) and 2 positions for the type of flower (for example) if someone give me the id that means red rose tree, and I know there is anothe

help with query

2003-01-13 Thread Leonardo Javier Belén
Hi all! I would like to build a query that I can use to search hierichally from an char(4) id composed as followed 2positions for the class of plant (for example) and 2 positions for the type of flower (for example) if someone give me the id that means red rose tree, and I know there is anothe

help with query

2003-01-13 Thread Leonardo Javier Belén
Hi all! I would like to build a query that I can use to search hierichally from an char(4) id composed as followed 2positions for the class of plant (for example) and 2 positions for the type of flower (for example) if someone give me the id that means red rose tree, and I know there is anothe

help with query

2003-01-13 Thread Leonardo Javier Belén
Hi all! I would like to build a query that I can use to search hierichally from an char(4) id composed as followed 2positions for the class of plant (for example) and 2 positions for the type of flower (for example) if someone give me the id that means red rose tree, and I know there is anothe

Disable log messages for Embedded Server?

2003-01-13 Thread Matt Solnit
Is there any way to disable log messages being written to the standard output using Embedded Server? Using mysqld, they are automatically redirected to mysql.err (under Windows, at least), but there seems to be no way to do this in Embedded. We would like to be able to display our own output to t

replication - queries out of order or dropped?

2003-01-13 Thread David Nedved
Hi All, Trying my best to maintain some production servers running mysql-max-3.23.53a-pc-linux-gnu-i686 with one master and one slave. We keep having issues where we create a new table on the master, and a short while later the slave will crash because it starts trying to perform queries which in

Re: Embedding images stored in database

2003-01-13 Thread Dan Nelson
In the last episode (Jan 13), Toomas said: > Hello List, > > Is there a simplier way to embed an image stored in BLOB field into > HTML than using 2 calls to Perl scripts - one to generate HTML and > another call from that HTML via IMG tag to retrieve and print image? > I mean, something like you

Re: logrotate problem with mysql

2003-01-13 Thread Jiann-Ming Su
On Fri, 10 Jan 2003, Michael T. Babcock wrote: > >if test -n "`ps acx|grep mysqld`"; then > >/usr/bin/mysqladmin flush-logs > >fi > > > > > > You're probably running it as root with the password loading from the > /root/.my.cnf or something. Try adding the -uro

Re: Initiating secure connection to MySQL4 from PHP

2003-01-13 Thread Keith C. Ivey
On 13 Jan 2003, at 18:49, Tonu Samuel wrote: > I would like to help you but I can't. This is PHP issue, not MySQL-s. > SSL connections are supported by MySQL, they are also available in C API > but I am not sure if and how PHP uses them. > > Looking up into PHP manual http://www.php.net/manual/en

RE: Solaris Performance

2003-01-13 Thread Andy Eastham
Simon, Thanks, for the reply. I guess I better try the 64 bit version and see if it makes a difference. I'll report back what I find. Cheers, Andy > -Original Message- > From: Simon Green [mailto:[EMAIL PROTECTED]] > Sent: 13 January 2003 16:58 > To: 'Andy Eastham'; [EMAIL PROTECTED]

Re: java.sql.SQLException: Communication link failure: java.io.IOException

2003-01-13 Thread Zengfa Gao
I also got error from terminal: sendsig: useracc failed. 0x8003bf6dbe00 0x005020 Pid 3093 was killed due to failure in writing the signal context - possible static overflow. I tried to logon on as "mysql" user. I didn't set "mysql" user password. I looked at hostname-bin.err: MySQ

general query log

2003-01-13 Thread Andy Ingham
MySQL gurus: I'm a big fan of the general query log for taking the occasional audit of activity against our database server, as well as a tool for checking on the efficiency of new (mostly PHP) projects that interact with MySQL. What I don't like is that I have to stop and restart the server pr

Re: Removing users

2003-01-13 Thread ed
That would work but is there no way to completely remove their record? Ed On Mon, 13 Jan 2003, Michael T. Babcock wrote: > [EMAIL PROTECTED] wrote: > > > I've read the manual concerning REVOKE commands but how would I > >completely remove a user inside MySQL? I can't imagine that it's as eas

Re: MySQL backend for mailing list

2003-01-13 Thread Michael T. Babcock
Mike wrote: I'm making a library website where users can store preferences about the types of books/cds/etc... they like (e.g. romance, rock, cooking, etc). Once a month the list of 'New Releases' is updated. Currently there is a New Release box which shows releases based on the users prefe

Re: converting text to hypertext

2003-01-13 Thread Michael T. Babcock
Rodney Broom wrote: If so, then the answer is that there isn't such a data type. If you want a link, then you'll have to make it yourself. I suggest making your column a varchar(). Then, you ~might~ get the data with a query like this: SELECT CONCAT(CONCAT(''), link, '') FROM stuff; But ple

Re: take one database offline

2003-01-13 Thread Michael T. Babcock
Stephen Brownlow wrote: You can make backup of the database and then drop the database.. Why do you want to do it? When maintenance is necessary, it would be far better to be able to: 1. turn off one database, 2. use myisamchk, Unix or other applications to adjust it in any way, 3. turn it

Re: Perl vs. PHP with MySQL - performance?

2003-01-13 Thread Michael T. Babcock
Angel Flow wrote: Would like to ask people's thoughts on whether Perl or PHP has higher performance with MySQL. I've heard rumours that DBI is slower than the PHP MySQL driver. I would say that comparing DBI to ADODB is more appropriate; PHP more or less directly calls the mysql C library fu

Re: Removing users

2003-01-13 Thread Michael T. Babcock
[EMAIL PROTECTED] wrote: I've read the manual concerning REVOKE commands but how would I completely remove a user inside MySQL? I can't imagine that it's as easy as removing them from the user table. If you remove them (or blank their password) in the user table, they'll have no way of loggi

Re: Using tranzactions in Perl

2003-01-13 Thread Paul DuBois
At 12:59 +0200 1/13/03, Octavian Rasnita wrote: Hi all, I've seen the following code in MySQL cookbook: eval { # move some money from one person to the other $dbh->do ("UPDATE money SET amt = amt - 6 WHERE name = 'Eve'"); $dbh->do ("UPDATE money SET amt = amt + 6 WHERE name = 'I

Re: Initiating secure connection to MySQL4 from PHP

2003-01-13 Thread Csongor Fagyal
would like to help you but I can't. This is PHP issue, not MySQL-s. SSL connections are supported by MySQL, they are also available in C API but I am not sure if and how PHP uses them. Looking up into PHP manual http://www.php.net/manual/en/ref.mysql.php won't show up needed functionality for th

The bug in 4.0.8 ?

2003-01-13 Thread Dyego Souza do Carmo
I´m upgrated the mysql to 4.0.8 version ( from 4.0.6 ) after this my server is going down of one hour for another one. the log message is: /usr/local/mysql4//libexec/mysqld: ready for connections mysqld got signal 11; This could be because you hit a bug. It is also poss

Upgrading to version 4.

2003-01-13 Thread Maximo Migliari
In the MySQL manual, under http://www.mysql.com/doc/en/Upgrading-from-3.23.html it says: --- The old C API functions mysql_drop_db, mysql_create_db, and mysql_connect are not supported anymore, unless you compile MySQL with CFLAGS=-DUSE_OLD_FUNCTIONS. Instead of doing this, it is prefera

Embedding images stored in database

2003-01-13 Thread Toomas
Hello List, Is there a simplier way to embed an image stored in BLOB field into HTML than using 2 calls to Perl scripts - one to generate HTML and another call from that HTML via IMG tag to retrieve and print image? I mean, something like you do it in a multipart e-mail message? A more general qu

myisamchk warnings -- open tables

2003-01-13 Thread havoc
Since the http://lists.mysql.com/ archives site is down, I'll have to ask this question without the benifit of the archives... I have a (very large) Perl script that has a bad tendency to cause the following warning from myisamchk: myisamchk: MyISAM file /var/lib/mysql//table_name.MYI myisa

RE: Solaris Performance

2003-01-13 Thread Simon Green
Hi Andy Is MySQL loading the tables in to memory? MySQL AB say running MySQL on 64bit system should be faster. Sorry I can not be more help. Simon -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 15:34 To: [EMAIL PROTECTED] Subject: Solaris Performance

Removing users

2003-01-13 Thread ed
I've read the manual concerning REVOKE commands but how would I completely remove a user inside MySQL? I can't imagine that it's as easy as removing them from the user table. TIA, Ed mysql - Before posting, please check:

My ISP has mySQL:how do I link to it?

2003-01-13 Thread christina
My isp is Omnis.com. They have mySQL on my host server, and I have entered some contact info for a password login system. The system they already have doesn't let me use email addresses for logins. This is my first time using mySQL, how do I get it to link? Will it let me use email for login? chr

Using tranzactions in Perl

2003-01-13 Thread Octavian Rasnita
Hi all, I've seen the following code in MySQL cookbook: eval { # move some money from one person to the other $dbh->do ("UPDATE money SET amt = amt - 6 WHERE name = 'Eve'"); $dbh->do ("UPDATE money SET amt = amt + 6 WHERE name = 'Ida'"); # all statements succeeded; commit tr

Re: Initiating secure connection to MySQL4 from PHP

2003-01-13 Thread Tonu Samuel
On Mon, 2003-01-13 at 16:41, David Rock wrote: > Could someone please post the basics on connecting to a MySQL 4 server from > PHP at my website using a secure connection? The server is ready to accept > a connection, I'm just not sure what to do next to initiate it. It seems > like I would need t

RE: RE: Problem to access MySQL via MySQLFront

2003-01-13 Thread David Brodbeck
> Stupid filter fodder: sql,query,queries,smallint > > -Original Message- > > From: Dean Householder [mailto:[EMAIL PROTECTED]] > > > The problem is with the new glibc-2.2.5-40 package released > > on October 3, > > 2002. Apparently its a known issue, and people are aware of > > it. T

Re: MySQL Select SUM Function

2003-01-13 Thread Diana Soares
On Mon, 2003-01-13 at 14:11, Stevens, Ryan wrote: > I understand the SQL statement in MySQL to be > "SELECT sum(column name) FROM table;" but I would like to get a > SUM of multiple columns. Is this possible?? Yes, you may use: SELECT sum(c1+c2) FROM table; or even: SELECT sum(table1.v + tab

java.sql.SQLException: Communication link failure: java.io.IOException

2003-01-13 Thread Zengfa Gao
Hi, I compiled MySQL 3.23.54, try MySQL CLI. Everything looks fine. But when I tried to connection MySQL through mm.mysql JDBC Driver, I got: 08:25:09SQLDataManager: Connecting... jdbc:mysql://localhost:3306/mysql 08:25:09SQLDataManager: EXCEPTION: java.sql.SQLExce

RE: Replication bug?

2003-01-13 Thread Ross Davis - DataAnywhere.net
I don't think I have anything that should cause this. Here is my my.ini from the the slave. The tables that are being excluded are not listed. [mysqld] basedir=C:/mysql datadir=C:/mysql/data set-variable=max_allowed_packet=16M log-slave-updates log-bin # Replication variables master-host=x.

java.sql.SQLException: Communication link failure: java.io.IOException

2003-01-13 Thread Zengfa Gao
Hi, I compiled MySQL 3.23.54, try MySQL CLI. Everything looks fine. But when I tried to connection MySQL through mm.mysql JDBC Driver, I got: 08:25:09SQLDataManager: Connecting... jdbc:mysql://localhost:3306/mysql 08:25:09SQLDataManager: EXCEPTION: java.sql.SQLExce

Re: MySQL Select SUM Function

2003-01-13 Thread Joseph Bueno
SELECT SUM(colA+colB) FROM TABLE ? Stevens, Ryan wrote: > I understand the SQL statement in MySQL to be "SELECT sum(column name) FROM table;" >but I would like to get a SUM of multiple columns. Is this possible?? > > Thanks, > > Ryan > >

Re: MySQL4 SSL certificate required?

2003-01-13 Thread Tonu Samuel
On Thu, 2003-01-09 at 17:40, David Rock wrote: > Hello, > Can someone give me a some overview information regarding using SSL with > MySQL version 4? I want to setup a 128bit SSL connection between our website > hosted at an ISP and our MySQL (on FreeBSD) server which is hosted in our > office. B

Solaris Performance

2003-01-13 Thread Andy Eastham
Hi, I've got a mysql application that was developed on win32 and linux that is now going to be deployed on a Sun E250 Solaris 9 box with 3 36Gb non raided SCSI disks. No problem I thought - the performance is fine on my PIII 850MHz laptop, so it will rock on an E250... Not the case - the laptop

Re: The diference about raw devices and disk partitions

2003-01-13 Thread Joseph Bueno
Hi, Since you don't specify your OS, I assume you are using Linux; if you are using another UNIX like system (BSD, Solaris,...), my explanations below may be useless :( A disk partition (as /dev/sda1) is a "bloc device",this is not the same as a "raw device". You can get more info in Linux HOWTO:

Re: MySQL Select SUM Function

2003-01-13 Thread Roger Baklund
* Stevens, Ryan > I understand the SQL statement in MySQL to be "SELECT sum(column > name) FROM table;" but I would like to get a SUM of multiple > columns. Is this possible?? Yes. You can add multiple columns inside the SUM() function: SELECT SUM(col1+col2+col3) FROM table; -- Roger sql -

Re: Re: MySQL 4.0.7-gamma: Bugs affecting the privilege system

2003-01-13 Thread Stefan Hinz, iConnect \(Berlin\)
Victoria, > Thank you for bug reports, both bugs are fixed. That's fast :-)) What about the LOCAL bug (or feature)? I.e. you can start mysqld --local-infile=1, or you can start MySQL Monitor like mysql --local-infile=1, or even both, and it won't help. You cannot use load data LOCAL. Furthermor

mysql v4.0.8 crashes after flush privileges

2003-01-13 Thread mw
>Description: I've installed MySQL v4.0.8 chrooted like described in detail at http://www.linuxquestions.org/questions/showthread.php?threadid=34338 Operating System is RedHat Linux v8.0 including ALL current available patches ... As example I used the my-medium.cn

outer join syntax

2003-01-13 Thread Admin
I would like to return rows, with specific columns, for each individual in my NAMES table, with address and e-mail if these exist. Thought I had the syntax down but I'm getting NULL results where I know there is data. I'm used to using SQL Server shortcut * for outer joins, guess that's catching

Re: Archive and retrieval in MySQL

2003-01-13 Thread Stefan Hinz, iConnect \(Berlin\)
Ahmed, > 1. How can i trigger a database archive when a certain data base limit > is reached in a table. > Ex: when 1,00,000 records is reached, archive to file and clean table. You will have to wait for MySQL 5.0. This version will have SQL triggers. > 2. How can i restore multiple files into d

Re: mysql.users read only?

2003-01-13 Thread gerald_clark
Does the user 'mysql' have write access to the mysql database and files? Loren McDonald wrote: I’m not sure what has gone wrong but the mysql.users table is set as read only. I am trying to grant user privileges but can’t because of this. How can I change the status so that I can add to it? I

Re: Deleting from one table blocks other tables?

2003-01-13 Thread gerald_clark
Set up a loop where you delete with a LIMIT, pause a few milliseconds to give others a chance to get in, and loop until no records are deleted. Philip Mak wrote: I have a table in a database. I'm trying to delete 5 million rows from it. But whenever I try to do this, while the delete command is

Initiating secure connection to MySQL4 from PHP

2003-01-13 Thread David Rock
Could someone please post the basics on connecting to a MySQL 4 server from PHP at my website using a secure connection? The server is ready to accept a connection, I'm just not sure what to do next to initiate it. It seems like I would need to set something up at our ISP to talk securely to the r

re: problem with last_id

2003-01-13 Thread Egor Egorov
On Monday 13 January 2003 13:50, Richard Brenner wrote: > I use an application where users can post messages. The messages are stored > in two tables that are related by the id of the new created message. I get > the last id with the following query: "select max(id) as maxid from > tasker_app" > T

RE: PHP4 Secure connection parameters

2003-01-13 Thread David Rock
Thank you for your responses Paul, To get MySQL4 to use OpenSSL I had to install OpenSSL 0.9.7 and modify the configure script to move my new include and lib directories to the end of the loop where it's searches for the OpenSSL files so it would see the 0.9.7 version last and therefore use it.

Re: problem with last_id

2003-01-13 Thread Gelu Gogancea
Hi, IMHO: I think you should try : 1) SET @a:=0; LOCK TABLE your_table_name WRITE; INSERT what_client_must_to_insert SELECT @a:=MAX(ID) FROM tableetc UNLOCK TABLE; After unlock the table you can find the value of variable @a by doing: SELECT @a; 2) INSERT what_cl

Re: problem with last_id

2003-01-13 Thread Roger Baklund
* Richard Brenner > I have a problem with a query: > > I use an application where users can post messages. The messages > are stored > in two tables that are related by the id of the new created message. I get > the last id with the following query: "select max(id) as maxid from > tasker_app" Oops

MySQL v4.0.8 bug report

2003-01-13 Thread Markus Welsch
SEND-PR: -*- send-pr -*- SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as SEND-PR: will all comments (text enclosed in `<' and `>'). SEND-PR: From: root To: [EMAIL PROTECTED] Subject: [50 character or so descriptive subject here (for reference)] >Description: >

MySQL Select SUM Function

2003-01-13 Thread Stevens, Ryan
I understand the SQL statement in MySQL to be "SELECT sum(column name) FROM table;" but I would like to get a SUM of multiple columns. Is this possible?? Thanks, Ryan - Before posting, please check: http://www.mysql.com/ma

OLEDBSQL connection

2003-01-13 Thread Sam4Software
Hi, I wonder if someone can paste a OLEDBSQL provider connection string to look at . Many thanks.. Sam - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the

re: Re: MySQL 4.0.7-gamma: Bugs affecting the privilege system

2003-01-13 Thread Victoria Reznichenko
On Wednesday 08 January 2003 22:32, Stefan Hinz iConnect \(Berlin\) wrote: > > Have you tried to reproduce them? > > Bug #1: GRANT USAGE doesn't seem to create a user: > > mysql> GRANT USAGE ON *.* TO 'foo'@'foohost'; > Query OK, 0 rows affected (0.26 sec) > > mysql> SHOW GRANTS FOR 'foo'@'foohost

The diference about raw devices and disk partitions

2003-01-13 Thread Dyego Souza do Carmo
I'm confused , what is the difference and raw device and a disk partition ? ex: on innodb I'm using /dev/sda1 for raw device, is it correct ? tnks. sql,query - ++ Dyego Souza do Carmo ++ Dep. Desenvolvi

max-3.23.54a : ERROR 1135 on IRIX 6.5.16

2003-01-13 Thread Denis Pugnere
>Description: I'm unable to start more than 1 thread, here are the processes launched, as far as I know, one "mysqld" daemon is launch per client/connection, but not in this case : root 191563 1443 0 Jan 10 pts/2 0:00 /bin/sh /usr/mysql/bin/safe_mysqld --user=mysql my

Solaris Performance

2003-01-13 Thread Andy Eastham
Hi, I've got a mysql application that was developed on win32 and linux that is now going to be deployed on a Sun E250 Solaris 9 box with 3 36Gb non raided SCSI disks. No problem I thought - the performance is fine on my PIII 850MHz laptop, so it will rock on an E250... Not the case - the laptop

Re: let users create as much DB as they want ?

2003-01-13 Thread Ryan McDougall
--- Amer Neely <[EMAIL PROTECTED]> wrote: > > Greetings all. Hope someone could give me some pointers on this. > > > > I am working at a small ISP in Montreal. Some of our corpo users. have > > access to a MySQL database, that we created for them (usually, this DB is > > named after there username

Archive and retrieval in MySQL

2003-01-13 Thread Ahmed S K Anis
HI, I have a few questions related to DB archving / restore capability of MySQL. Most of them are design issues but have a lot to do with what MySQL provides. PLease share your view on them. 1. How can i trigger a database archive when a certain data base limit is reached in a table. Ex: when 1,

  1   2   >