i have the sums now i need to sum the Final 4 Sums together, i'll be done Finally !! geesh

2006-04-13 Thread Brian E Boothe
o.k o.k ive thrown together this code Inwich DOES work but i have 4 Colombs i need to get this value for and then Sum the bstotals in a sum right now i have this SAME routine but just changing the name of (" btstotal ") to bstotal1 , bstotal2 , bstotal3 so my code in diffrent area's looks like

Re: Download older versions

2006-04-13 Thread Mike Blezien
Jim - Original Message - From: "Jim Winstead" <[EMAIL PROTECTED]> To: "Mike Blezien" <[EMAIL PROTECTED]> Cc: "MySQL List" Sent: Thursday, April 13, 2006 7:28 PM Subject: Re: Download older versions On Thu, Apr 13, 2006 at 07:13:55PM -0500, Mike Blezien wrote: Hello, I'm trying to

Re: Download older versions

2006-04-13 Thread Jim Winstead
On Thu, Apr 13, 2006 at 07:13:55PM -0500, Mike Blezien wrote: > Hello, > > I'm trying to locate the RPM downloads for MySQL version > 4.0.26(4.0.26-pc-linux-gnu-i686), for a RH/7.3 system, but can't seem to > find them. Doesn't MySQL site have older version archives where these older > RPM's ca

Download older versions

2006-04-13 Thread Mike Blezien
Hello, I'm trying to locate the RPM downloads for MySQL version 4.0.26(4.0.26-pc-linux-gnu-i686), for a RH/7.3 system, but can't seem to find them. Doesn't MySQL site have older version archives where these older RPM's can be downloaded ... if so, where would they be located ?? TIA, Mike(mi

Re: arrg need help summing Colum's

2006-04-13 Thread Puiu Hrenciuc
I don't think your code should work anyway, you should really check PHP manual to get this work. mysql_query doesn't actually return the result, but a resource id that can be used with mysql_fetch_xxx functions. Try this : $link = mysql_connect("localhost","root","goobers") or die(mysql_error());

Re: arrg need help summing Colum's

2006-04-13 Thread Rhino
- Original Message - From: "Brian E Boothe" <[EMAIL PROTECTED]> To: Sent: Friday, April 14, 2006 5:09 AM Subject: arrg need help summing Colum's why cant i get this to sum > ??? $link = mysql_connect("localhost","root","goobers") or die(mysql_error());

arrg need help summing Colum's

2006-04-13 Thread Brian E Boothe
why cant i get this to sum > ??? $link = mysql_connect("localhost","root","goobers") or die(mysql_error()); mysql_select_db("workorder", $link); $result = mysql_query("SELECT SUM(`ElecRem`) AS total FROM orders", $link);

Show Grants problem

2006-04-13 Thread Todd Smith
Hello Does anyone know why a user would show up in a select from user query but not in a show grants command. What I am trying to say is I tried SHOW GRANTS FOR 'user1'@'%' and received that there is no such grant defined for 'user1'... But when I run SELECT * FROM user WHERE User = 'user

Re: Summing Collums

2006-04-13 Thread mos
At 12:51 AM 4/14/2006, Brian E Boothe wrote: HI all ; i wanna be able to sum a colum in a mysql database and display the sum on the page field name <"Bondrem"> so if someone adds to the database the bondremaining colom would add together and show the total on the page record1 - ["bondrem"]=

Re: mysqldump ignores auto_increment

2006-04-13 Thread bagpuss
Imran, Thanks for your reply. I tried what you asked, and it did the same. I then went onto a couple of other boxes with EXACTLY the same MySQL install and they worked (added the auto_increment). The box that fails is running Redhat 7.3 (for customer backward compatibilty). I dont have any other 7

RE: Summing Collums

2006-04-13 Thread Jay Blanchard
[snip] i wanna be able to sum a colum in a mysql database and display the sum on the page field name <"Bondrem"> so if someone adds to the database the bondremaining colom would add together and show the total on the page record1 - ["bondrem"]=100 record2 - ["bondrem"]=450 total bondrem

RE: MySql Error Number 1130

2006-04-13 Thread Duzenbury, Rich
Interesting. I have never heard of that option. LX09:/home/rduz/backup # mysql -p -h. --port=3307 Enter password: ERROR 2005 (HY000): Unknown MySQL server host '.' (1) Perhaps it no longer functions? Thanks. Regards, Rich > -- MySQL General Mailing List For list archives: http://lists.mysq

RE: New User Setting up MYSQL

2006-04-13 Thread bruce
hi chuck... i don't use windows, but are you able to get a cmd window up/running, and what happens if you type "mysql" in the dir where the mysql.exe resides? do you also have this dir in your path? -bruce -Original Message- From: Chuck Wildeman [mailto:[EMAIL PROTECTED] Sent: Thursday,

Re: New User Setting up MYSQL

2006-04-13 Thread William R. Mussatto
You might want to look get the mysql admin tool. It will call the query browser if needed (so don't get rid of that), but its what you use to supervise the server (set up users etc.)> Hope this helps. Chuck Wildeman said: > Hi, > > > > I am very new to mysql. In the past I was using Access. I d

RE: MySql Error Number 1130

2006-04-13 Thread Shawn Green
--- "Duzenbury, Rich" <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Barry [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 13, 2006 9:41 AM > > To: mysql@lists.mysql.com > > Subject: Re: MySql Error Number 1130 > > > > Duzenbury, Rich wrote: > > >>localhost mean

New User Setting up MYSQL

2006-04-13 Thread Chuck Wildeman
Hi, I am very new to mysql. In the past I was using Access. I don't have any other experience setting up databases. I bought a book on MYSQL and downloaded the installation file to one of our server and then installed it using most of the defaults. I am now at my XP Pro laptop and want to a

Summing Collums

2006-04-13 Thread Brian E Boothe
HI all ; i wanna be able to sum a colum in a mysql database and display the sum on the page field name <"Bondrem"> so if someone adds to the database the bondremaining colom would add together and show the total on the page record1 - ["bondrem"]=100 record2 - ["bondrem"]=450 total bondr

replication, sort of (5.0.18)

2006-04-13 Thread Duzenbury, Rich
Hi all, I have two servers that have production data on them, and then one server where I would like to keep an active copy of the data. Currently, there is a job that runs in the middle of the night that basically does a mysqldump --host=production_server --all-databases | mysql --host=backup

RE: MySQL 3 to 5 upgrade

2006-04-13 Thread paul rivers
Going from 3 to 5 can break a number of important things. For example, join syntax semantics and precedence rules have changed since 3, and it is certainly possible this could break your code in important and dramatic ways. You should plan on spending time checking out all the SQL. Just as i

Re: Wont insert into database

2006-04-13 Thread Puiu Hrenciuc
In the second example you are enclosing field values with ticks ` instead of single quotes ' You don't get any errors because you don't check for errors, if you put : echo mysql_error(); after mysql_query () you will see the error. To solve this problem simple replace ticks enclosing values

Re: Wont insert into database

2006-04-13 Thread Barry
Brian E Boothe wrote: i have two php Forms to insert data into a Mysql 4.0.20d Database, one is just a simple form to test if it works the other is the Actual application, here is the test form and works Perfectly >> NOW , / here is the Form data submitter that doesn't Work Iv

RE: MySql Error Number 1130

2006-04-13 Thread Duzenbury, Rich
> -Original Message- > From: Barry [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 13, 2006 9:41 AM > To: mysql@lists.mysql.com > Subject: Re: MySql Error Number 1130 > > Duzenbury, Rich wrote: > >>localhost means socket. > > > > > > Hmm, I don't believe it does. localhost is a DN

Wont insert into database

2006-04-13 Thread Brian E Boothe
i have two php Forms to insert data into a Mysql 4.0.20d Database, one is just a simple form to test if it works the other is the Actual application, here is the test form and works Perfectly >> NOW , / here is the Form data submitter that doesn't Work Ive checked and checked a

Re: Optimizing SQL statement

2006-04-13 Thread Puiu Hrenciuc
Hmmm, I have omited that : I also have an index on (ip,type) in that order "Barry" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Puiu Hrenciuc wrote: >> Hi, >> >> I have a table ( MyISAM, MySQL 5.0.20, FreeBSD ) containing network >> traffic data : >> >> record_time datetime -

Re: Optimizing SQL statement

2006-04-13 Thread Barry
Puiu Hrenciuc wrote: Hi, I have a table ( MyISAM, MySQL 5.0.20, FreeBSD ) containing network traffic data : record_time datetime - time when recording was added ip char(15) - ip that generated the traffic type tinyint(3) - traffic type ( 1 - local, 2 - internet ) inbound int(10) - in bytes o

Optimizing SQL statement

2006-04-13 Thread Puiu Hrenciuc
Hi, I have a table ( MyISAM, MySQL 5.0.20, FreeBSD ) containing network traffic data : record_time datetime - time when recording was added ip char(15) - ip that generated the traffic type tinyint(3) - traffic type ( 1 - local, 2 - internet ) inbound int(10) - in bytes outbound int(10) - out by

Re: MySql Error Number 1130

2006-04-13 Thread Barry
Duzenbury, Rich wrote: localhost means socket. Hmm, I don't believe it does. localhost is a DNS shortcut to the IP address of the local machine. If that is how mysql wants to treat things, then it should issue an error message on connect because --host=localhost and --port=anything would

RE: MySql Error Number 1130

2006-04-13 Thread Duzenbury, Rich
> localhost means socket. Hmm, I don't believe it does. localhost is a DNS shortcut to the IP address of the local machine. If that is how mysql wants to treat things, then it should issue an error message on connect because --host=localhost and --port=anything would then be mutually exclusive

Re: MySql Error Number 1130

2006-04-13 Thread gerald_clark
Duzenbury, Rich wrote: Wow, I found the problem! I think this may be a bug. In my case, I've got three instances running on ports 3306, 3307, and 3320. On the local machine, I connect to them via mysql -p --port-3306 --host=localhost mysql -p --port-3307 --host=localhost mysql -p --port-3

RE: MySql Error Number 1130

2006-04-13 Thread Duzenbury, Rich
Wow, I found the problem! I think this may be a bug. In my case, I've got three instances running on ports 3306, 3307, and 3320. On the local machine, I connect to them via mysql -p --port-3306 --host=localhost mysql -p --port-3307 --host=localhost mysql -p --port-3320 --host=localhost Excep

RE: customized variations on words with fulltext

2006-04-13 Thread Santino
In MySql 5 you can write a filter function (plugin) Santino At 17:04 +1000 13-04-2006, Taco Fleur wrote: Yes I have been thinking about the same, and already started collecting search words, but its not really the direction I want to go in if I can avoid it. Kind regards, Taco Fleur Free Ca

Re: MySQL 3 to 5 upgrade

2006-04-13 Thread Chris Sansom
At 11:56 +0200 13/4/06, Barry wrote: Make a real downgradeable SQL Dump (without collations n stuff) and have it saved. Upgrade to MySQL 5.x and execute that sql dump. Be warned that for example CONCAT behaves in a different way than in 3.x. If you have PHP scripts with some functions in their

How to create a query to get right commencing date

2006-04-13 Thread Arjan Hulshoff
Hello, I hope someone can help me with my problem. I want to join 2 tables. One contains data about start and finish dates of a machine install, the second table conatins data of install costs and a commencing date. Table 1: +-+++-+-+ | Machine

RE: ~problem with select into outfile~

2006-04-13 Thread Addison, Mark
From: Mohammed Abdul Azeem Sent: 13 April 2006 07:29 > > Hi > > Iam having a problem using "select into outfile" command, iam getting > the following error. can anyone help me trace the problem. > > mysql> SELECT * INTO OUTFILE'/home/public1/data.txt' FROM temp_table > WHERE last_time_update =

RE: comparing 2 dbs and generating 'upgrade sql'

2006-04-13 Thread Addison, Mark
From: starmonkey Sent: 13 April 2006 01:51 > > hey guys, > > A while ago I remembered using SQLYog or some other tool that could > look at two databases (say dev and test versions) and work out the > differences in structure between the two, and generate some SQL to > 'upgrade' one to the

Re: MySQL 3 to 5 upgrade

2006-04-13 Thread Barry
Chris Sansom wrote: Our web host is currently running MySQL 3.23.something, but we're shortly to be upgraded to MySQL 5. Can I be sure that this is absolutely backwards compatible? Are there any nastinesses lurking that I should know about that might cause my databases to collapse in a heap?

MySQL 3 to 5 upgrade

2006-04-13 Thread Chris Sansom
Our web host is currently running MySQL 3.23.something, but we're shortly to be upgraded to MySQL 5. Can I be sure that this is absolutely backwards compatible? Are there any nastinesses lurking that I should know about that might cause my databases to collapse in a heap? My use of MySQL (as m

Re: ~Mysql db crashing again and again~

2006-04-13 Thread Sander Smeenk
Quoting Mohammed Abdul Azeem ([EMAIL PROTECTED]): > Then it hit a mysql bug with signal 6. The mysql db was throwing the > following errors on the shell prompt ie the OS shell prompt. I had exactly the same behaviour on MySQL 5.0.19 running on AMD64. What helped in my case was re-creating all the

mysqldump ignores auto_increment

2006-04-13 Thread bagpuss
Hi, I got confused looking to see if this was a known problem - so thought I'd try again. mysql_standard 4.1.16 on Linux... Synopsis: Create table with auto_increment mysqldump database output doesn't create table with auto_increment. Example: Create a table in a junk database using, create

~Mysql db crashing again and again~

2006-04-13 Thread Mohammed Abdul Azeem
Hi, Iam having a mysql version 5.0.15-standard-log installed on redhat es4. It is configured as slave server. It was running fine till yesterday. Then it hit a mysql bug with signal 6. The mysql db was throwing the following errors on the shell prompt ie the OS shell prompt. *** glibc detected **

RE: Fulltext and reserved words

2006-04-13 Thread mysql
If you are not rebuilding the FULLTEXT indexes, then that is probably why the change to the ft_min_word_len is not being recognised. It seems like mysql uses this value to set the index it builds for the FULLTEXT search. I don't know how to rebuild this index. You may need to delete your .MYI

RE: customized variations on words with fulltext

2006-04-13 Thread mysql
What about letting the user make the right choice in the first place? Like when you use Google, you only get what results from what you type into standard Google. Keith -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMA

Re: innodb vs myisam

2006-04-13 Thread mysql
Do you have any idexes on the table? What does your mysql> show create table tbl_name \G statement look like please? Keith In theory, theory and practice are the same; in practice they are not. On Thu, 13 Apr 2006, Luke Vanderfluit wrote: > To: mysql@lists.mysql.com > From: Luke Vanderfluit

RE: customized variations on words with fulltext

2006-04-13 Thread Taco Fleur
Yes I have been thinking about the same, and already started collecting search words, but its not really the direction I want to go in if I can avoid it. Kind regards, Taco Fleur Free Call 1800 032 982 or Mobile 0421 851 786 Pacific Fox http://www.pacificfox.com.au an industry leader with c

Re: customized variations on words with fulltext

2006-04-13 Thread mysql
Not being an expert on FULLTEXT functions yet, I suppose you could hard code some type of search function into your application code, then create all the relevant search options for the FULLTEXT query in your app logic, then post the FULLTEXT query off to mysql. Or store the different search o