Re: Start mysqld 5.7.7 with new disk

2015-12-23 Thread Jørn Dahl-Stamnes
On Wednesday, December 23, 2015, Jørn Dahl-Stamnes wrote: > Hello > > I had to replace the datadisk where mysql had its innodb files. > > But after I had added a new disk I'm not able to initialize mysql files any > more: > > # mysqld --initialize --user=mysql &g

Start mysqld 5.7.7 with new disk

2015-12-23 Thread Jørn Dahl-Stamnes
rship to the directories to mysql:mysql Any suggestions how to fix this? -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: Sending a fax

2015-06-15 Thread Jørn Dahl-Stamnes
noone is that stupid. I'm sure it cost the sender a lot to send fax/call that number! -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: MySQL 5.7 Innodb performans issue

2015-05-21 Thread Jørn Dahl-Stamnes
out what caused it: https://www.percona.com/blog/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/ I suspect that this also apply to ext4, or? -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: MySQL 5.7 Innodb performans issue

2015-05-20 Thread Jørn Dahl-Stamnes
verything that is happening. And the speed of the output tells me how fast things goes. With 5.5 the speed was much higher right from the start (after a reboot and starting up the test). -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List Fo

Re: MySQL 5.7 Innodb performans issue

2015-05-20 Thread Jørn Dahl-Stamnes
place. The test server is used for testing this system only. And in 99% of the time, only one client is using the SQL server. -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: MySQL 5.7 Innodb performans issue

2015-05-20 Thread Jørn Dahl-Stamnes
: sleeping Number of rows inserted 16718, updated 6422, deleted 12070, read 18051815 34.80 inserts/s, 21.00 updates/s, 31.40 deletes/s, 113447.76 reads/s END OF INNODB MONITOR OUTPUT ==== 1 row in set (0.01 sec) -- Jørn Dahl-Stamnes homep

MySQL 5.7 Innodb performans issue

2015-05-20 Thread Jørn Dahl-Stamnes
O_DIRECT innodb_lock_wait_timeout= 50 innodb_thread_concurrency = 16 innodb_fast_shutdown = 0 [mysql] no-auto-rehash -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Starting mysql 5.7.7

2015-05-15 Thread Jørn Dahl-Stamnes
to resolve the issue. May 15 09:42:57 anakin mysqld: 2015-05-15T07:42:57.986100Z 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist May 15 09:42:57 anakin mysqld: 2015-05-15T07:42:57.997527Z 0 [Note] Event Scheduler: Loaded 0 events May 15

Re: Cannot install mysql 5.6.24 from source

2015-05-12 Thread Jørn Dahl-Stamnes
On Tuesday, May 12, 2015, Jørn Dahl-Stamnes wrote: > Hello, > > I'm trying to install mysl 5.6.24 from source on a Fedora Core 21 server, > but it fails during 'make install': > > CMake Error at libmysqld/examples/cmake_install.cmake:74 (file): > file INST

Cannot install mysql 5.6.24 from source

2015-05-12 Thread Jørn Dahl-Stamnes
was able to start it but not to use 'mysql -u root -p' after I started it. Got a Segmentation fault - core dumped. :( -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: Crash after shutdown/restart

2014-02-18 Thread Jørn Dahl-Stamnes
hours I could see that the performance was back to normal - 1800 - 2000 jobs per minute. There is no sign of drop in performace so far. Please explain. -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: Crash after shutdown/restart

2014-01-22 Thread Jørn Dahl-Stamnes
On Tuesday 14 January 2014 21:51, Jesper Wisborg Krogh wrote: > Hi Jørn, > > On 15/01/2014 04:36, Jørn Dahl-Stamnes wrote: > > 140114 18:20:08 InnoDB: Error: data file /data/mysql/data/ibdata3 uses > > page size 1024, > > 140114 18:20:08 InnoDB: but the only supporte

Crash after shutdown/restart

2014-01-14 Thread Jørn Dahl-Stamnes
as a STORAGE ENGINE failed. 140114 18:20:08 [ERROR] Unknown/unsupported storage engine: InnoDB 140114 18:20:08 [ERROR] Aborting -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: Lost connection to MySQL server - need help.

2013-10-12 Thread Jørn Dahl-Stamnes
s read-only from the web application. -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: Lost connection to MySQL server - need help.

2013-10-12 Thread Jørn Dahl-Stamnes
; (if i remember the exact phrase). After witing 2 seconds, I restarted the server. It seemed to work OK until the backup started. Perhaps we should restore the database that I suspect cause this, in order to rebuild the complete database. -- Jørn Dahl-Stamnes homepage: http://photo.

Re: Lost connection to MySQL server - need help.

2013-10-12 Thread Jørn Dahl-Stamnes
mysqld_safe: Number of processes running now: 0 Oct 12 11:53:33 cebycny mysqld_safe: mysqld restarted -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Lost connection to MySQL server - need help.

2013-10-12 Thread Jørn Dahl-Stamnes
: Additional settings that can override those from this file! # The files must end with '.cnf', otherwise they'll be ignored. # !includedir /etc/mysql/conf.d/ -- Jørn Dahl-Stamnes homepage: http://photo.dahl-stamnes.net/ -- MySQL General Mailing List For list archives: http://

Re: Help with Date in Where Clause

2011-01-31 Thread Jørn Dahl-Stamnes
t passing the date (without time) would get it but I keep > getting an empty record set. > So looking for something that works a bit better. select * from your_table where convert(dateAdded, date)='2011-01-31'; -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- M

Re: Group by question

2011-01-17 Thread Jørn Dahl-Stamnes
On Monday 17 January 2011 09:53, Steve Meyers wrote: > On 1/16/11 5:22 AM, Jørn Dahl-Stamnes wrote: > > mysql> select album_id, updated_at, created_at from album_stats group by > > album_id order by updated_at desc limit 8; > > I believe that your problem is that the gro

Group by question

2011-01-16 Thread Jørn Dahl-Stamnes
270 | 2010-09-11 13:57:25 | 2010-09-11 13:57:25 | +--+-+-+ 8 rows in set (0.23 sec) But the result is not what I expected. What have I missed? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For lis

Re: Incorrect key file for table

2011-01-14 Thread Jørn Dahl-Stamnes
was my fault (the missing join) but I still wonder why the server processed the query. Would it not be more appropriate with an error message saying that this query contain an error? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list ar

Re: Incorrect key file for table

2011-01-14 Thread Jørn Dahl-Stamnes
+ A join was missing. Strange that this passed the syntax check because the select statment does not make sense (in the application). It should containt a "AND images.ALBUM_ID=albums.ID'. When I fixed this, it worked :) Thanx anyway. -- Jørn Dahl-Stamnes homepage: http://

Incorrect key file for table

2011-01-14 Thread Jørn Dahl-Stamnes
has only InnoDb tables and I'm using version 5.1.42-log. The query is build using Propel (from a web-application made by Symfony framework). -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Re: What if the user closes the browser while INSERT INTO MySQL? (PHP/MySQL)

2010-04-16 Thread Jørn Dahl-Stamnes
the browser is closed or not (or if the network connection is losted). It will continue to execute the code until finnished. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: 50 things to know before migrating from Oracle to MySQL

2010-01-29 Thread Jørn Dahl-Stamnes
... or 50 ways to leave your Oracle... ... or 50 ways to save your money... Choose mysql! :) -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub

Re: Record old passwords ?

2010-01-20 Thread Jørn Dahl-Stamnes
previous used password the system remembered. The program worked like this: for (n = 0; no_of_stored_password > n; n++) { set_password(random_generated_password); do_a_short_sleep(); } set_password(original_password); ... and the problem was solved :) -- Jørn Dahl-Stamnes homepage: http://www.da

Binary log problems

2010-01-11 Thread Jørn Dahl-Stamnes
alid event in binary log', data_len: 100, event_type: 2 What is causing this? How can I fix this? I'm using version mySQL 5.1.42. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscri

Re: Problem with mysql

2010-01-11 Thread Jørn Dahl-Stamnes
On Monday 11 January 2010 12:33, Mihamina Rakotomandimby wrote: > (Correction, seel below) > > > Jørn Dahl-Stamnes : > > > > I have checked the local DNS and 'r2-d2' and > > > > 'r2-d2.dahl-stamnes.net' resovl to the same IP-addres

Re: Problem with mysql

2010-01-11 Thread Jørn Dahl-Stamnes
cret-password'; I just found the cause of the problem... /etc/nsswitch.conf. It said that files should be used before dns. After I changed the order, it worked (so did the strange sendmail problem I had). But still I wonder why it worked on the other host, since it also had the order "files dns

Re: Problem with mysql

2010-01-11 Thread Jørn Dahl-Stamnes
On Monday 11 January 2010 08:53, Mihamina Rakotomandimby wrote: > > Jørn Dahl-Stamnes : > > I have checked the local DNS and 'r2-d2' and 'r2-d2.dahl-stamnes.net' > > resovl to the same IP-addresse. > > What's wrong? > > Reverse resolut

Re: Problem with mysql

2010-01-10 Thread Jørn Dahl-Stamnes
7; idenfified by 'secret-password'; grant all on *.* to 'root'@'jedi.dahl-stamnes.net' idenfified by 'secret-password'; > --Original Message-- > From: Jørn Dahl-Stamnes > To: mysql@lists.mysql.com > ReplyTo: sq...@dahl-stamnes.net > Subject:

Problem with mysql

2010-01-10 Thread Jørn Dahl-Stamnes
DNS and 'r2-d2' and 'r2-d2.dahl-stamnes.net' resovl to the same IP-addresse. What's wrong? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: Update Doesn't Update!

2009-12-11 Thread Jørn Dahl-Stamnes
Look at the message, 0 rows changed and 1 warning. You cannot have ID=0 if ID is an index. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: Include SQL files

2009-04-01 Thread Jørn Dahl-Stamnes
be important. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Include SQL files

2009-04-01 Thread Jørn Dahl-Stamnes
ql file like: use foobar; include some/dir/file1.sql include some/dir/file2.sql ... and so on. Is it possible? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.co

DBDesigner 4 and MySQL

2008-03-07 Thread Jørn Dahl-Stamnes
privileges; DBDesigner claim that the user/password is invalid. Any idea what can be wrong? I whish to do a reverse engineering on a big database in order to save time making the visual design in DBDesigner. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General

Re: Sql 5 new installation and root password?

2008-03-01 Thread Jørn Dahl-Stamnes
On Saturday 01 March 2008 13:45, Jørn Dahl-Stamnes wrote: > I have just installed MySQL 5. The server is running, but I'm not able to > connect to the server as root. > > I have not set any root password, since I have not found any way to do this > in version 5 (it was rathe

Sql 5 new installation and root password?

2008-03-01 Thread Jørn Dahl-Stamnes
sword, but it does not work: http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html Can someone please explain who to set the root password? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mys

Re: Mysql and Perl

2007-12-21 Thread Jørn Dahl-Stamnes
[EMAIL PROTECTED] ~]# uname -a Linux jedi.dahl-stamnes.net 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:56:33 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: backup InnoDB db to another server

2007-11-30 Thread Jørn Dahl-Stamnes
PROTECTED]:. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Debugging batch sql statements

2007-10-05 Thread Jørn Dahl-Stamnes
root -p and enter password and do a > mysql>use dbname; > mysql>source build.sql; > > ERROR 1064 (42000): You have an error in your SQL syntax; check the manual > that corresponds to your MySQL server version for the right syntax to use > near ')' at line 8. f

Re: Selecting rows by DATE ranges

2007-06-25 Thread Jørn Dahl-Stamnes
rator does not include the last day, so my reports with > > "<=" are done by adding one day but don't like to use it this way since > > it could > > be confusing and generate errors on reports. > > > > Thanks for any comment, > > Mig

Re: Update question

2007-04-26 Thread Jørn Dahl-Stamnes
hich is exactly as described above. Lesson learned: Get a good night sleep and then try to figure out how to do things... ;-) -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://list

Update question

2007-04-25 Thread Jørn Dahl-Stamnes
this in a single operation. Anyone that can give me a suggestion? I'm using MySQL 4.1.8 -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Uknown error 2000

2007-04-18 Thread Jørn Dahl-Stamnes
| | | 1 || +--+---+--+-+-++ The web-server is using PHP 4.3 -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://list

SQL and PHP: Incorrect errorcode

2007-02-25 Thread Jørn Dahl-Stamnes
is not to be trusted, or? Any comments? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: need a help in Query

2007-02-10 Thread Jørn Dahl-Stamnes
info as l on (l.user_id=u.id) inner join playershanddetails as h on (h.playername=u.id) group by u.id; Please note: I have not tried this... just a quick suggestion right out of my brain... :-) -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List

Re: need a help in Query

2007-02-10 Thread Jørn Dahl-Stamnes
15) to INT UNSIGNED and use INET_ATON to convert a ip of the form a.b.c.d to unsinged int, and INET_NTOA to go back to a.b.c.d -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Table update

2007-01-20 Thread Jørn Dahl-Stamnes
set teams.created = select min(r.starttime) from races as r on (r.id=p.race_id) inner join participants as p on (p.rider_id=rt.rider_id) inner join rider_team as rt where rt.team_id=$id } I guess that I have to do this in a perl script? But I would like to be able to do this with a SQ

Table update

2007-01-17 Thread Jørn Dahl-Stamnes
1.8-standard | ++ -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Mysql, PHP and Persistent mode

2006-12-21 Thread Jørn Dahl-Stamnes
many times php must process that file. If the image files are within the document path for the Apache web-server. But they are not. In order to display an image, a PHP script must be used (a php script can access files outside the document path). But now we are moving away from the config question I h

Re: Mysql, PHP and Persistent mode

2006-12-21 Thread Jørn Dahl-Stamnes
d the thumbnails are not stored in the database. The database contain image id, image attributes (exposure++) and name of the image and thumbnail file. I have looked into the docs about configuration, and there is parameter called wait_timeout, which is set to 28800 (8 hours). I have not tested

Mysql, PHP and Persistent mode

2006-12-21 Thread Jørn Dahl-Stamnes
. Any settings in the config file for the sql-server I need to be aware of? I'm using MyISAM tables . mysql> select version(); ++ | version() | ++ | 4.1.8-standard | +----+ -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/

Re: Mysql and Perl

2006-09-26 Thread Jørn Dahl-Stamnes
4-bit prosessor... I also got some hints about using cpan (perl -MCPAN -eshell) but I felt like a prisoner @ Guantamo who had to answer questions to CIA... At one point I had no answer so I could not continue. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL Gene

Mysql and Perl

2006-09-25 Thread Jørn Dahl-Stamnes
, but without luck. I have found a lot of references etc, but not a single link to the file... Can some kind soul please guide me to this file? Or has it been lost for man kind? ;-) -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives:

Re: COUNT question

2006-09-18 Thread Jørn Dahl-Stamnes
e correct value for the c.id. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

COUNT question

2006-09-18 Thread Jørn Dahl-Stamnes
e two COUNT's in one query or do I have to split the query into two queries? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Question about COUNT()

2006-09-11 Thread Jørn Dahl-Stamnes
-+ | name | COUNT(b.id) | +--+-+ | aa | 1 | | bb | 1 | +--+-----+ How can I get all records in x_type listet in one query? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archive

Re: SQL order by BUG?

2006-09-06 Thread Jørn Dahl-Stamnes
desc, sum_score > > if you're after 'asc' on "sum_score". > > > - Rick Hmmm.. Seems like I have missed something important here. Thanks. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

SQL order by BUG?

2006-09-06 Thread Jørn Dahl-Stamnes
7 |1 | 1.0 | 1.000 | | 143 |1 | 1.0 | 1.000 | The order has changed from desc to asc! Looks like a bug for me or am I blind? ;-) select version(); ++ | version() | ++ | 4.1.8-standard | +--------+ -- Jørn Dahl-St

Re: HELP!

2006-08-22 Thread Jørn Dahl-Stamnes
I dump my databases every night so if I screw up, I can always go back without loosing more than 24 hours of updates. But then, my databases are not that big. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/

Re: HELP!

2006-08-22 Thread Jørn Dahl-Stamnes
On Tuesday 22 August 2006 10:29, Peter Lauri wrote: > Hi, > I did something terrible similar to UPDATE table SET testdate=NOW() > And I kind of forgot the WHERE lalalala, so now all my records are screwed. > Is there any way of actually undoing this? :) Backup? -- Jørn Dahl-Stam

Re: Problems with WHERE clause

2006-07-30 Thread Jørn Dahl-Stamnes
NER JOIN races AS r ON r.id = rs.race_id > INNER JOIN participants AS p ON p.race_id = r.id > WHERE s.receipt = 1 > AND p.rider_id = 236 > AND SUM(p.fee) > 0 > GROUP BY s.id > ORDER BY s.f_date; This gave the following error: ERROR (HY000): Invalid use of g

Problems with WHERE clause

2006-07-30 Thread Jørn Dahl-Stamnes
+ Is this due to an old version of MySQL? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: for queries and enquiries

2006-06-27 Thread Jørn Dahl-Stamnes
On Tuesday 27 June 2006 13:43, Veerabhadra rao Narra wrote: > Hi all if u have doubts pls feel free to send mails to [EMAIL PROTECTED] > www.venadsolutions.com > its > not spam > -Rao I consider this as spam. I would suggest that this person is removed from the list. -- Jø

SELECT and NULL

2006-06-25 Thread Jørn Dahl-Stamnes
tc, but without luck. All I get is an SQL error. The default value for some_field is null. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: PHP mysql_connect

2006-06-23 Thread Jørn Dahl-Stamnes
;t use. Here's the > part of the manual that explains it and how to fix it: > > http://dev.mysql.com/doc/refman/4.1/en/old-client.html Yes, I forgot to say that I was using PHP. However, using mysql does not work eigher. Thanks for the tip. I guess I just drop the passwor

PHP mysql_connect

2006-06-23 Thread Jørn Dahl-Stamnes
even more strange, is that I have other pages on the same server, which connect to a different sql-server (a different machine running the same version of MySQL) without problems. What can cause this problems? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mai

Dont click this link

2006-06-23 Thread Jørn Dahl-Stamnes
On Friday 23 June 2006 09:09, Veerabhadra rao Narra wrote: > pls click this link www.venadsolutions.com and > find new things This is what I consider as SPAM... So do not click the link... -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List Fo

Re: About mysqldump

2006-06-21 Thread Jørn Dahl-Stamnes
On Thursday 22 June 2006 04:00, Daniel da Veiga wrote: > On 6/21/06, Jørn Dahl-Stamnes <[EMAIL PROTECTED]> wrote: > > On Wednesday 21 June 2006 17:17, Barry wrote: > > > Jørn Dahl-Stamnes schrieb: > > > > Is it possible to get mysqldump to include rights that ha

Re: About mysqldump

2006-06-21 Thread Jørn Dahl-Stamnes
On Wednesday 21 June 2006 17:17, Barry wrote: > Jørn Dahl-Stamnes schrieb: > > Is it possible to get mysqldump to include rights that has been GRANTED > > to a database or to tables in the database that is being dumped? > > Dump the Grant tables? I have though of it. Curre

About mysqldump

2006-06-21 Thread Jørn Dahl-Stamnes
Is it possible to get mysqldump to include rights that has been GRANTED to a database or to tables in the database that is being dumped? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Re: Split a Delimited String in SQL ( PROCEDURE split_string )

2006-06-21 Thread Jørn Dahl-Stamnes
ht syntax to use near 'Argentina Will win the match tonight against Holland' at line 1 -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: if else statement

2006-06-21 Thread Jørn Dahl-Stamnes
e2 left join table1 on table1.id=1 where table1.col1=3 and table2.id=1) UNION (SELECT col2 FROM table3 left join table1 on table1.id=1 where table1.col1<>3 and table3.id=1); I have not tested it... -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing

Re: Copy database to a file

2006-06-20 Thread Jørn Dahl-Stamnes
o use > near 'mysql > dump --help' at line 1 Exit mysql and run mysqldump from the shell. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySQL

2006-06-07 Thread Jørn Dahl-Stamnes
rrcode: 13) > mysql> A quick check with the perror command: # perror 13 Error code 13: Permission denied -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: SPAMs

2006-05-24 Thread Jørn Dahl-Stamnes
e they help the spammers by doing this. It's OK that they show the item in the list, but the e-mail addresse should be masked... -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:ht

Re: SPAMs

2006-05-24 Thread Jørn Dahl-Stamnes
cribe and a new subscribe. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

SPAMs

2006-05-24 Thread Jørn Dahl-Stamnes
Seems like someone has got their hand of my e-mail alias which I use for this list only. It started last friday and I get about 10-15 messages every day. Does someone else has this problem? What's the procedure to change my subscribtion e-mail addresse? -- Jørn Dahl-Stamnes homepage:

Re: Update query

2006-01-24 Thread Jørn Dahl-Stamnes
something similar to: > update dbB, dbA set dbB.foo=dbA.foo, dbB.bar=dbA.bar where > dbB.id=dbA.id ; > > See: > http://dev.mysql.com/doc/refman/5.0/en/update.html Thanks a lot. That did the trick. I ended up with a command like this: update newdb.table as T,olddb.table as

Update query

2006-01-24 Thread Jørn Dahl-Stamnes
values, but the format is different ('001234' vs 1234). Is it possible to create a update query that copies the 'foo' and 'bar' from table dbA.A to dbB.B for each record in dbB.B? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General

Re: mysqldump

2006-01-20 Thread Jørn Dahl-Stamnes
e? > Furthermore, how should I do in order to load online the exported > database? > Many thanks in advance for the answer. this is how I dump my database: /usr/local/mysql/bin/mysqldump -u root -p imagedb > /tmp/image_db.tmp -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes

query question.

2006-01-18 Thread Jørn Dahl-Stamnes
d get a output like "root > sub 1 > sub 1.1", if this is possible. Or do I have to do this in a loop in my PHP code? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

myPhpAdmin

2006-01-04 Thread Jørn Dahl-Stamnes
nes.net' (using password: NO) It seems like the host name given in the config file is ignored and that it try to connect to the host where the web-server is running. It should not be like this, should it? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL Ge

MySQL server has gone away ??

2006-01-03 Thread Jørn Dahl-Stamnes
n why this happens? Should I be worried? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: high load average with 4.1.16

2005-12-21 Thread Jørn Dahl-Stamnes
n't post attachments here? > > uploaded it: > > http://img394.imageshack.us/img394/4808/topgraphtoday9fp.jpg > http://img394.imageshack.us/img394/3403/bottomgraphweeks2vf.jpg Nice graphs. What tool do you use to make them? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamn

Re: Question on table udate

2005-12-19 Thread Jørn Dahl-Stamnes
id; Thanks. I'll try this. I found another way that seem to work: SELECT @x:=category_id FROM category WHERE name='undefined'; UPDATE albums SET [EMAIL PROTECTED] WHERE category_id=0; But your suggestions is a bit more elegant... :-) -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Question on table udate

2005-12-19 Thread Jørn Dahl-Stamnes
'some name'; UPDATE albums SET category_id='value found from above' WHERE category_id='some value'; But I have not found any way to do this from a script. Any hints from some kind souls out there? -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/

Re: proper way to export with the --tab function

2005-12-18 Thread Jørn Dahl-Stamnes
, but then I got the following error: mysqldump: Got error: 1: Can't create/write to file '/home/dahls/Dump/albums.txt' (Errcode: 13) when executing 'SELECT INTO OUTFILE' -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Network login

2005-12-17 Thread Jørn Dahl-Stamnes
nst > your DNS name (what's in the permissions tables). I forgot to do a 'FLUSH PRIVILEGES;' after the GRANT command. Thanks to "Sol Beach" for this solution. -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list

Network login

2005-12-17 Thread Jørn Dahl-Stamnes
a: shell> mysql -h [EMAIL PROTECTED] -u snotface -p Password: novice ERROR 1045 (28000): Access denied for user 'snotface'@'otherhost.mydomain' (using password: YES) I'm running MySQL version 4.1.8 on the server. and Ver 14.7 Distrib 4.1.11, for redhat-linux-

Re: sequential id

2005-12-15 Thread Jørn Dahl-Stamnes
S ('bob jones'),('larry smith'),('henry rogers'); BTW, I started to learn SQL two days ago... -- Jørn Dahl-Stamnes homepage: http://www.dahl-stamnes.net/dahls/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]