Re: Unlimited client connections for MySQL

2006-12-15 Thread Remo Tex
Dwight Tovey wrote: Brent Anderson wrote: Hello. I'm developing a client application for several platforms that will need to connect to a remote MySQL database. Unfortunately, MySQL refuses connections from external IP's that aren't allowed and since the clients using this will be on unknown IP

Re: Update query help

2006-12-06 Thread Remo Tex
Ravi Kumar. wrote: Dear Friends, I have two tables: T1, T2. T1 has 3 columns: playerid, gameid, score T2 has 2 columns: playerid, totalscore. I wish to update table T2 such that sum of T1.score of each player, gets updated in T2.totalscore. It may be something like this: update T2, T1 s

Re: Update query help

2006-12-06 Thread Remo Tex
ViSolve DB Team wrote: Hi, Try this.. UPDATE table2 inner join table1 on table2.playedid=table1.playerid SET table2.totalscore=sum(table1.score) Just a guess... Thanks, ViSolve DB Team - Original Message - From: "Ravi Kumar." <[EMAIL PROTECTED]> To: Sent: Wednesday, December 06, 200

Re: SUM() of 1 and NULL is 1 ?

2006-12-06 Thread Remo Tex
C.R.Vegelin wrote: Hi List, I need to SUM() on months from a table like: CREATE TABLE `data` ( `Jan` float default NULL, ... ) ENGINE=MyISAM; # V 5.0.15 Months may have NULL values, like: INSERT INTO data (Jan) VALUES (1), (NULL); However, when I use SELECT SUM(Jan) AS Jan, the returned value

Re: Problem logging into mysql

2006-11-28 Thread Remo Tex
Joey wrote: I wanted to confirm something as I am having a problem logging into mysql from the network. I have a server configured with a user showing host as % and the user with it's appropriate privalages. It allows me to login from phpmyadmin as well as via port 3306 to connect to the DB wi

Re: Calling Stored Procedures from PHP

2006-11-28 Thread Remo Tex
Filipe Freitas wrote: Hi, This is not a mysql thing but maybe you can help me. I want to call a stored procedure from PHP, so I tried it like normal querys: mysql_query("CALL mySP();"); with no success. thx I'm not PHP expert but I've managed to do this in perl using DBI (in spite of all d

Re: Having Problem With Load Files and AutoNumber id fields

2006-11-27 Thread Remo Tex
John Kopanas wrote: Argh... I am autogenerating a load file after parsing and massaging a text file I get from an AS/400 system. My first field is an id that is on auto_number so I put a tab at the begging of the line for each one of my records... it throws a warning for each line... if instead

Re: Need Restore Help

2006-07-27 Thread Remo Tex
Jesse wrote: Strange it ran just fine here on my 5.0.22-nt with sample MyISAM table `alumni`... Is your table `alumni` MyISAM or Innodb? It is MyISAM. Here are few more pointers: 1. If it is possible *always* try latest version first when solving problems. In your case 5.0.22 I think... Y

Re: Need Restore Help

2006-07-25 Thread Remo Tex
Jesse wrote: Are you sure this is the right line - I mean the whole statement? You are right, I did not include the whole statement. Here's the entire section: /*!50003 SET @OLD_SQL_MODE=@@SQL_MODE*/; DELIMITER ;; /*!50003 SET SESSION SQL_MODE="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENG

Re: Need Restore Help

2006-07-25 Thread Remo Tex
Jesse wrote: I have a backup that was created by a MySQL 5 server using MySQLDump. When I try to restore the database using the following command: mysql -u root -p -D BPA < c:\backup\mydata.sql I get the error: ERROR 1064 (42000) at line 29765: You have an error in your SQL syntax; check the

Re: MySQLHotCopy

2006-07-25 Thread Remo Tex
Jesse wrote: I read in the manual that MySQLHotCopy would be better than MySQLDump for backing up MyISAM tables. However, I cannot find a .exe in the bin directory by that name. I found a script by that name in a 4.1 installation that I have, but I don't think it's the latest version. Is th

Re: Specified key was too long; max key length is 1000 bytes (UNIQUE KEY on multiple columns)

2006-07-07 Thread Remo Tex
Lubomir Host 'rajo' wrote: Description: Migration problem from 4.0.22 to 5.0.x. I can't create following table on 5.0.x version of mysql. Problem does't apper on 4.0.x version: CREATE TABLE `PHONESlog_uniq` ( `user_agent` varchar(80) default NULL, `http_x_wap_profile` varchar(255) default

Re: UPDATE Based on Relation

2006-07-04 Thread Remo Tex
Jesse wrote: I need to be able to do an UPDATE based on a relation. The following code works in Microsoft SQL. What is the MySQL Equivalent? UPDATE Chapters SET MatSentDate='2006-07-04' FROM Invoices I JOIN Chapters C ON C.ID=I.ChapterID JOIN Schools S ON S.ID=C.SchoolID WHERE I.InvoiceDate >=

Re: Autoindexing

2006-06-23 Thread Remo Tex
If you are using autoincrement filed you could try this: ALTER TABLE `my_database`.`my_table` AUTO_INCREMENT = 201; ...or else if it is some stored proc you should find and edit table where it sotres index/counter data.. Tom Ray [Lists] wrote: Hey, I have a really simple question (I h

Re: name 'Szczech' returns more rows then 'Szczec%'

2006-06-01 Thread Remo Tex
Lukasz Budnik wrote: Hi Remo, just a thought... Can you try OPTIMIZE TABLE... or REPAIR TABLE ... [EXTENDED] first then try those queries again HTH I've just run those statements, results: optimize | status | OK repair | status | OK but like 'Szczec%' still returns 1 row (now I know tha

Re: name 'Szczech' returns more rows then 'Szczec%'

2006-06-01 Thread Remo Tex
Lukasz Budnik wrote: Hi All, I'm using 5.0.21 on Gentoo. I've got very strange problem. I have clients table with id_c and name columns. I'm running simple selects: mysql> select id_c, name, concat('#',name, '@'), length(name) from clients where name like 'Szczec%'; +---+--+-

Re: Import from unknown format (.bdd .ind .mor .ped)

2006-04-28 Thread Remo Tex
http://perso.easynet.fr/cibderf/tout.html HTH Pedro mpa wrote: Greetings. I'm building an application and I need to import data to mysql from a db format I don't know. Unfortunately the person in charge of the data won't be reachable for the next 2 weeks and I want to continue my work.

Re: 4.0.18 restore dump file 'max_allowed_packet' error

2006-03-23 Thread Remo Tex
Luke Vanderfluit wrote: Hi. I've got mysql 4.0.18 installed on a sun X4100 running solaris. This is just a 32 bit version of mysql. I've reverted back to this version after trying mysql 5, 4.0.26 and 4.0.18 64bit. Those versions were all unstable on 64bit, that is, the server would just go aw

Re: MySQL and Delphi

2006-02-27 Thread Remo Tex
[EMAIL PROTECTED] wrote: Hi, Anyone out there using MySQL and Delphi together? Would love to exchange experiences. Regards, John John Barrington [EMAIL PROTECTED] +27 11 6489876 You'd better try Borland's newsgroups like: borland.public.delphi.database.dbexpress etc. - that's where the pro

Re: Byte Swapping

2006-02-16 Thread Remo Tex
David Godsey wrote: This might be an unusual question because mysql always stores in little endian for all platforms (if I'm not mistaken). However, I am receiving data from several different platforms (custom boards with various processors) in raw form. I will have stored as a configuration op

Re: changing the UNIX user for mysql server startup

2005-12-08 Thread Remo Tex
Perumal, Jai wrote: Hi, We install the mysql version 5.0.16 on Linux Red hat as the root operating system user. After the install we changed the ownership and group to a mysql UNIX user. We tested starting and stopping the mysql server using the mysql UNIX user account and it worked fine.

Re: is this normal?

2005-12-07 Thread Remo Tex
kalin mintchev wrote: system freebsd 4.10 mysql is binary: mysql-standard-5.0.15-freebsd4.7-i386 after mysql installation and root password set up i can type: /usr/local/mysql/bin/mysql -u no_matter_what_user_here and i get right in. even if i type -p. i do get the password prompt

Re: is this normal?

2005-12-07 Thread Remo Tex
kalin mintchev wrote: system freebsd 4.10 mysql is binary: mysql-standard-5.0.15-freebsd4.7-i386 after mysql installation and root password set up i can type: /usr/local/mysql/bin/mysql -u no_matter_what_user_here and i get right in. even if i type -p. i do get the password prompt

Re: Assigment sign not work on Delphi

2005-12-01 Thread Remo Tex
Which component, Spider? with TSQLQuery try setting: ParamCheck property to false. Look in help for your specific component... To Leo's : Delphi/dbExpress uses ':' character to specify SQL Parameters much alike mysql uses '@' for variables :) e.g.: q.sql := 'select * from tbl where col1=:val1

Re: Column type problem

2005-11-09 Thread Remo Tex
As seen in manual there's no exact data type for your kind of data: http://dev.mysql.com/doc/refman/5.0/en/date-and-time-type-overview.html see also: http://dev.mysql.com/doc/refman/5.0/en/column-types.html so you can: 1. Use 1 timestamp column and 1 INT column just for milliseconds 2. Use BIGINT

Re: DELETE syntax

2005-10-10 Thread Remo Tex
http://dev.mysql.com/doc/mysql/en/delete.html ... Multiple-table syntax: DELETE [LOW_PRIORITY] [QUICK] [IGNORE] tbl_name[.*] [, tbl_name[.*] ...] FROM table_references [WHERE where_definition] Or: DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM tbl_name[.*] [, tbl_name[

Re: 2 Bugs

2005-10-05 Thread Remo Tex
Philippe HAMEAU wrote: Hi, I noticed 1 bug with 5.0.13rc (win32 msi) : when installing mysql in a custom location (eg c:\program files\easyphp\mysql), 1) the service will not get installed properly 2) mysqld will complain about InnoDB engine not present. Hope this helps. Phil Have you read:

Re: 2 Bugs

2005-10-05 Thread Remo Tex
...and 3. Are you running another instance of mysql? Then perhaps both compete for same resource(s) like: port 3306 ;-) Remo Tex wrote: 1) that's common problem when doing custom install on PATH containing spaces like "C:\Program Files". Solution - try custom location with sho

Re: 2 Bugs

2005-10-05 Thread Remo Tex
1) that's common problem when doing custom install on PATH containing spaces like "C:\Program Files". Solution - try custom location with short(er) path and without spaces like "C:\mysql5013\". Probably that will solve problem 2. if not then.. 2. Edit my.ini looking for skip-innodb or related o

Re: converting access (.mdb) files...

2005-09-15 Thread Remo Tex
Perhaps you could try "MySQL Migration Toolkit" http://dev.mysql.com/downloads/migration-toolkit/1.0.html still beta though... NB! ATTENTION: Before installing the MySQL Migration Toolkit please download and install the Java 5.0 or 1.4.2 Runtime Environment (JRE) from http://java.sun.com NOTI

Re: MySQL 4.0.26 has been released

2005-09-09 Thread Remo Tex
...and when MySQL-shared-compat-4.0.26-0.i386.rpm will be released? rpm (and some older tools) complains :( There is only: Dynamic client libraries (including 3.23.x libraries)4.0.25-0482.1K Joerg Bruehe wrote: Hi, MySQL 4.0.26, a new version of the popular Open Source/

Re: Questions about last_insert_id() instead of @@IDENTITY

2005-09-07 Thread Remo Tex
http://dev.mysql.com/doc/mysql/en/insert-select.html There are 2 forms of INSERT INTO statement 1. INSERT INTO tbl_name (...) VALUES(...); 2. INSERT INTO tbl_name (...) SELECT ...; there's no : INSERT INTO tbl_name (...) VALUES(...) SELECT ...; its either ... or in MySQL i.e. aither provide values

Re: long text insert failure

2005-08-10 Thread Remo Tex
Liz you didn't mention by I suppose you're using Windows client too i.e. mysql.exe. A quick test revealed that in such a case char limit is <=255 i.e. that's limitation of Windows Command Prompt: command.com or in case of Win NT,2000,XP - cmd.exe try writing your long SQL command in text file a

More on column privileges, COLUMN_UPDATE...

2005-03-25 Thread Remo Tex
s this server version issue mysql 4.0.24 accepts column_priv w/o error(s) justs doesn't enforce them? -- Remo Tex wrote: I want to allow some users to SELECT, INSERT, UPDATE all columns in a table EXCEPT 1 (last one). Is it possile in MYSQL and how? So my question is : What COLUMN_INSERT pr

About column privileges, COLUMN_INSERT...

2005-03-25 Thread Remo Tex
I want to allow some users to SELECT, INSERT, UPDATE all columns in a table EXCEPT 1 (last one). Is it possile in MYSQL and how? So my question is : What COLUMN_INSERT privilege does? How can I INSERT_COLUMN without having to insert whole row? Does COLUMN_INSERT = TABLE_INSERT? I've found some

Re: efficient query for: "it's your birthday today"

2004-11-19 Thread Remo Tex
NB! ...WHERE doycol=312 Valid only for dates <= 28.Feb OR Dates > 29.Feb but not in leap year(s) ;-) > doycol=DAYOFYEAR("2004-11-07") > > or > > doycol=312 Eric McGrane wrote: How about adding another column that stores the day of year for the birthday. You could then index on this column and your

Re: union, intersct and except operation?

2004-11-09 Thread Remo Tex
SELECT DISTINCT study FROM table WHERE keyword='chemistry'; - Of course if it's 'chemistry' it IS <> ''computers' or anything else 'chemistry' <> 'computers' so last part ot your SQL statement is obsolete L a n a wrote: Hello, I've had a problem trying to get working except operator in mysql: sta

Re: Storing a space

2004-05-02 Thread Remo Tex
Have you tried insertig non-breaking space instead #160 or 0xA0 ...i think so " " - this shoud be it /taken from here "3,02 KB (3 098 bytes)"-All NON-Breaking/ HTH ;-) John Mistler wrote: > Is there a way to force an invisible "space" character to be stored at the > END of a string in a column (e