compile problem with newest version of mysql-server

2015-10-15 Thread Zhudacai
Hi all, Recently, I got the newest version of mysql-server from the github, Bug I got some compile problem as follows: cmake -DCMAKE_INSTALL_PREFIX=/u04/my3306 \ -DMYSQL_DATADIR=/u04/my3306/data -DMYSQL_USER=mysql \ -DSYSCONFDIR=/etc -DWITH_MYISAM_STORAGE_ENGINE=1 \ -DWITH_INNOBASE_STORAGE_ENGINE

Problem with INSERT INTO and UPDATE queries

2014-06-25 Thread Antonio Fernández Pérez
​Hi list, I have some problems with INSERT INTO and UPDATE queries on a big table. Let me put the code and explain it ... I have copied the create code of the table. This table has more than 1500 rows. ​Create Table: CREATE TABLE `radacct` ( `RadAcctId` bigint(21) NOT NULL AUTO_INCREMENT,

Re: Problem with having

2013-09-25 Thread rob.poll...@gmail.com
I Sent from my D - Reply message - From: "Rick James" To: "Larry Martell" , "shawn green" Cc: "mysql mailing list" Subject: Problem with having Date: Thu, Sep 26, 2013 12:11 PM Still more to this saga Comment 1: ... HAVING x; The expre

RE: Problem with having

2013-09-25 Thread Rick James
; -Original Message- > From: Larry Martell [mailto:larry.mart...@gmail.com] > Sent: Tuesday, September 24, 2013 1:44 PM > To: shawn green > Cc: mysql mailing list > Subject: Re: Problem with having > > On Tue, Sep 24, 2013 at 9:05 AM, shawn green > wrote: > > &

Re: Problem with having

2013-09-24 Thread Larry Martell
On Tue, Sep 24, 2013 at 9:05 AM, shawn green wrote: > Hello Larry, > > > On 9/23/2013 6:22 PM, Larry Martell wrote: > >> On Mon, Sep 23, 2013 at 3:15 PM, shawn green ** >> wrote: >> >> Hi Larry, >>> >>> >>> On 9/23/2013 3:58 PM, Larry Martell wrote: >>> >>> On Mon, Sep 23, 2013 at 1:51 PM, Sukhj

Re: Problem with having

2013-09-24 Thread shawn green
Hello Larry, On 9/23/2013 6:22 PM, Larry Martell wrote: On Mon, Sep 23, 2013 at 3:15 PM, shawn green wrote: Hi Larry, On 9/23/2013 3:58 PM, Larry Martell wrote: On Mon, Sep 23, 2013 at 1:51 PM, Sukhjinder K. Narula wrote: Hi, In your second query, you seem to have MIN(date_time), but

Re: Problem with having

2013-09-23 Thread Larry Martell
On Mon, Sep 23, 2013 at 2:17 PM, Sukhjinder K. Narula wrote: > Hi, > > I see that. So the query seems to be picking the first entry out of the > after grouping by a field and displaying it. And it seems to make sense > since Having clause seems incomplete. I believe we need to complete the > condi

Re: Problem with having

2013-09-23 Thread Larry Martell
On Mon, Sep 23, 2013 at 3:15 PM, shawn green wrote: > Hi Larry, > > > On 9/23/2013 3:58 PM, Larry Martell wrote: > >> On Mon, Sep 23, 2013 at 1:51 PM, Sukhjinder K. Narula >> wrote: >> >> Hi, >>> >>> In your second query, you seem to have MIN(date_time), but you are >>> talking about maximum. So

Re: Problem with having

2013-09-23 Thread Ananda Kumar
select recipe_id,max(maxdatetime) from data_csmeta group by recipe_id having recipe_id=19166; On Mon, Sep 23, 2013 at 4:15 PM, shawn green wrote: > Hi Larry, > > > On 9/23/2013 3:58 PM, Larry Martell wrote: > >> On Mon, Sep 23, 2013 at 1:51 PM, Sukhjinder K. Narula >> wrote: >> >> Hi, >>> >>> I

Re: Problem with having

2013-09-23 Thread shawn green
Hi Larry, On 9/23/2013 3:58 PM, Larry Martell wrote: On Mon, Sep 23, 2013 at 1:51 PM, Sukhjinder K. Narula wrote: Hi, In your second query, you seem to have MIN(date_time), but you are talking about maximum. So your group by query is actually pulling the minimum date for this recipe. I pas

Re: Problem with having

2013-09-23 Thread Larry Martell
On Mon, Sep 23, 2013 at 1:51 PM, Sukhjinder K. Narula wrote: > Hi, > > In your second query, you seem to have MIN(date_time), but you are > talking about maximum. So your group by query is actually pulling the > minimum date for this recipe. > I pasted the wrong query in. I get the same results r

Problem with having

2013-09-23 Thread Larry Martell
I want to find the rows from a table that have the max date_time for each recipe. I know I've done this before with group by and having, but I can't seem to get it to work now. I get the correct row id, but not the correct date_time. I'm sure I'm missing something simple. For purposes of showing a

Re: Problem with having

2013-09-23 Thread Sukhjinder K. Narula
Hi, In your second query, you seem to have MIN(date_time), but you are talking about maximum. So your group by query is actually pulling the minimum date for this recipe. Regards. On Mon, Sep 23, 2013 at 3:35 PM, Larry Martell wrote: > I want to find the rows from a table that have the max date

RE: Mysqldump routines dump, problem with lock tables.

2013-02-04 Thread Rick James
p routines dump, problem with lock tables. > > Hi All. > > I use: > > # rpm -qa | grep -i percona-server-server > Percona-Server-server-55-5.5.28-rel29.3.388.rhel6.x86_64 > > My system: > > # uname -a;cat /etc/redhat-release > Linux prbc01.mg.local 2.6.32-279.19.1.

Mysqldump routines dump, problem with lock tables.

2013-02-04 Thread Rafał Radecki
Hi All. I use: # rpm -qa | grep -i percona-server-server Percona-Server-server-55-5.5.28-rel29.3.388.rhel6.x86_64 My system: # uname -a;cat /etc/redhat-release Linux prbc01.mg.local 2.6.32-279.19.1.el6.centos.plus.x86_64 #1 SMP Wed Dec 19 06:20:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Red Hat

Re: problem with INNODB tables

2012-03-15 Thread Reindl Harald
Am 15.03.2012 17:31, schrieb Malka Cymbalista: > We are running MySQL version 5.0.45 on a Linux machine. Most of our tables > are MyIASM but we have recently installed drupal 7 and drupal 7 requires > INNODB tables. Every now and then when we restart MySQL using the commands > /etc/init.d/mys

Re: query problem with null

2012-03-09 Thread Johan De Meersman
- Original Message - > From: "David Lerer" > > Have you tried to set city = null (i.e. without the quotes)? Spot on, I'd think. NULL values are not a string with "NULL" in it - that's only what it looks like in query results :-) An empty string ('') is to strings what 0 (zero) is for

Re: query problem with null

2012-03-09 Thread Richard Reina
sage- > From: Richard Reina [mailto:gatorre...@gmail.com] > Sent: Friday, March 09, 2012 4:24 PM > To: mysql@lists.mysql.com > Subject: query problem with null > > When I do the following query: > > SELECT * FROM geo_trivia WHERE city IS NULL; > > certain columns

RE: query problem with null

2012-03-09 Thread David Lerer
Have you tried to set city = null (i.e. without the quotes)? David. -Original Message- From: Richard Reina [mailto:gatorre...@gmail.com] Sent: Friday, March 09, 2012 4:24 PM To: mysql@lists.mysql.com Subject: query problem with null When I do the following query: SELECT * FROM

query problem with null

2012-03-09 Thread Richard Reina
When I do the following query: SELECT * FROM geo_trivia WHERE city IS NULL; certain columns that DO have 'NULL' value for city and not a '' (blank) value do not show up. I have even gone to the extent of reseting these records value as ='NULL' with UPDATE and they are still are not selected when

Re: [First email] Problem with backup and ID's for a Database with INNODB

2012-02-03 Thread Govinda
> Hello, > > I'm new here, so since this is my first question email, I'm looking for an > advice/help a way to do it or a link which can explain me more about my > related question. > [snip] Carlos, you might have better luck if you break the problem down into smaller pieces.. both to make it

[First email] Problem with backup and ID's for a Database with INNODB

2012-01-25 Thread Carlos Sura
Hello, I'm new here, so since this is my first question email, I'm looking for an advice/help a way to do it or a link which can explain me more about my related question. This is the thing: Reciently I've made a backup of a database using INNODB, 1GB database, for a web based - software (IEM) s

Re: problem with installing MySQL 5.5 on OS Lion

2011-11-12 Thread Tim Johnson
* Martin Mueller [12 13:42]: <..> > In short, in my installation there seems a gap between mysql and mysql, and > I can't find any good explanations for what I might have done wrong or how I > could fix it. > > I'll be grateful for any help. I am probably not going to be very useful, but

problem with installing MySQL 5.5 on OS Lion

2011-11-12 Thread Martin Mueller
I had MySQL 5.5.15 running on OS X Lion, deleted it, and tried to install 5.5.17. I have run into problems that I cannot solve. To begin with the end, I can run start mysqld with the skip-grant-tables option and connect with mysql. If I issue the command select * from mysql the result returns

Re: problem with table

2011-10-31 Thread Sharl.Jimh.Tsin
在 2011-10-31一的 16:18 +0530,nataraj 0102写道: > Hello, > > > > I am using MYSQL database with Linux server. > > I have a problem with one table, when I tried to get the data from that > table, I am getting error : “mysql error 4600: mysql server gone away. > > No co

problem with table

2011-10-31 Thread nataraj 0102
Hello, I am using MYSQL database with Linux server. I have a problem with one table, when I tried to get the data from that table, I am getting error : “mysql error 4600: mysql server gone away. No connection, trying to re-connect” …. This error message getting and cursor getting stuck in

RE: odd problem with select as statement

2010-12-20 Thread Ramsey, Robert L
amsey, Robert L Cc: mysql@lists.mysql.com Subject: Re: odd problem with select as statement i.e. just try this: mysql> select 4E5664736F400E8B482EA7AA67853D13; ERROR 1367 (22007): Illegal double '4E5664736' value found during parsing -Hank On Mon, Dec 20, 2010 at 12:50 PM, Hank mailto:

Re: Problem with WHERE .. IN

2010-12-20 Thread Dan Nelson
In the last episode (Dec 20), Johnny Withers said: > On Mon, Dec 20, 2010 at 11:52 AM, muhammad subair wrote: > > I have table post (id INT and parent VARCHAR) > > > > +--+-+ > > | id | parent | > > +--+-+ > > |1 | 0 | > > |2 | 0 |

Re: Problem with WHERE .. IN

2010-12-20 Thread Johnny Withers
The sub-select only returns a single row, so IN(...) is only looking at a single value in the list .. it doesn't "expand" to into IN (5,7,11). On Mon, Dec 20, 2010 at 11:52 AM, muhammad subair wrote: > I have table post (id INT and parent VARCHAR) > > +--+-+ > | id | parent

Re: odd problem with select as statement

2010-12-20 Thread Hank
i.e. just try this: mysql> select 4E5664736F400E8B482EA7AA67853D13; ERROR 1367 (22007): Illegal double '4E5664736' value found during parsing -Hank On Mon, Dec 20, 2010 at 12:50 PM, Hank wrote: > > Here's my 5 second guess.. > > 4E5664736... is being interpreted as a number in scientific no

Problem with WHERE .. IN

2010-12-20 Thread muhammad subair
I have table post (id INT and parent VARCHAR) +--+-+ | id | parent | +--+-+ |1 | 0 | |2 | 0 | |3 | 1 | |4 | 0 | |5 | 1 | |6 | 0 | |7 | 1,5 | |8 | 1,5 |

Re: odd problem with select as statement

2010-12-20 Thread Hank
Here's my 5 second guess.. 4E5664736... is being interpreted as a number in scientific notation .. i.e. 4*10^5664736 and the parser doesn't like that as a field name. -Hank On Mon, Dec 20, 2010 at 12:43 PM, Ramsey, Robert L wrote: > I am having the hardest time getting a select as statement

Re: odd problem with select as statement

2010-12-20 Thread Johnny Withers
I can't tell you 'why' it is occurring when the field name begins with 4E5, but you can solve your problem by enclosing all your field names in backticks ( ` ). IE: SELECT field AS `4E5664736F400E8B482EA7AA67853D13` On Mon, Dec 20, 2010 at 11:43 AM, Ramsey, Robert L wrote: > I am having the h

odd problem with select as statement

2010-12-20 Thread Ramsey, Robert L
I am having the hardest time getting a select as statement right. Here is the full query: select SUM(IF(image='EE0840D00E2ED8A317E5FA9899C48C19',1,0)) as EE0840D00E2ED8A317E5FA9899C48C19, SUM(IF(image='235C7987796D5B7CEBF56FBDA2BF7815',1,0)) as 235C7987796D5B7CEBF56FBDA2BF7815, SUM(IF(image='9

Fwd: Backing up MySQL using PHPMyAdmin problem with UTF-8

2010-10-18 Thread Tompkins Neil
MySQL Administrator 1.2.15 is fails with the same problem. Do anyone have any other suggestions ? -- Forwarded message -- From: Tompkins Neil Date: Fri, Oct 15, 2010 at 11:21 AM Subject: Re: Backing up MySQL using PHPMyAdmin problem with UTF-8 To: Michael Dykman Cc: "[

Re: Backing up MySQL using PHPMyAdmin problem with UTF-8

2010-10-15 Thread Tompkins Neil
I managed to use the older version of MySQL Administrator 1.2.15 and it appears to back up find using InnoDB online backup. On Thu, Oct 14, 2010 at 6:56 PM, Michael Dykman wrote: > I have had this problem with PHPMyAdmin many times, and the only way I > know around it, is to go in and d

Re: Backing up MySQL using PHPMyAdmin problem with UTF-8

2010-10-15 Thread Tompkins Neil
Oh this isn't good. Because the database in on a shared server and I don't think I've got console access ? On Thu, Oct 14, 2010 at 6:56 PM, Michael Dykman wrote: > I have had this problem with PHPMyAdmin many times, and the only way I > know around it, is to go in an

Re: Backing up MySQL using PHPMyAdmin problem with UTF-8

2010-10-14 Thread Michael Dykman
I have had this problem with PHPMyAdmin many times, and the only way I know around it, is to go in and do your dump at the console. PHP does not deal with UTF very well. - michael dykman On Thu, Oct 14, 2010 at 5:48 AM, Tompkins Neil wrote: > Hi, > > I'm using PHP MyAdmin to b

Backing up MySQL using PHPMyAdmin problem with UTF-8

2010-10-14 Thread Tompkins Neil
Hi, I'm using PHP MyAdmin to backup my MySQL database. The database is of type InnoDB and encoding used is utf8_unicode_ci. The variables are set as follows : *MySQL connection collation: **utf8_unicode_ci* *MySQL charset: **UTF-8 Unicode (utf8)* *character set client: utf8* *character set conn

RE: Problem with mytop

2010-08-18 Thread Carlos Eduardo Caldi
Hi Baron This tool works better than mytop, you solved my problem, thanks a lot Carlos > Date: Tue, 17 Aug 2010 10:41:23 -0400 > Subject: Re: Problem with mytop > From: ba...@xaprb.com > To: mysql@lists.mysql.com > > Carlos, > > Have you tried innotop instead? I

Re: Problem with mytop

2010-08-17 Thread Baron Schwartz
Carlos, Have you tried innotop instead? It's a better replacement for mytop. (I wrote it.) - Baron On Tue, Aug 17, 2010 at 8:50 AM, Carlos Eduardo Caldi wrote: > > > If sombody can help me I'll be gratefull > > I have a problem with mytop1.6 on Mandriva 2010.1, when I

Problem with mytop

2010-08-17 Thread Carlos Eduardo Caldi
If sombody can help me I'll be gratefull I have a problem with mytop1.6 on Mandriva 2010.1, when I install it on a Slave server mytop works, but when I install it on a Master Server don't works, don't display the queries. I use mysql version 5.0.77 and linux mandriva 2010

Re: Problem with IF() inside of a select statement

2010-07-11 Thread Shawn Green (MySQL)
On 7/8/2010 10:59 AM, John Nichel wrote: Hi, I'm hoping what I'm trying to do can be done, but I can't seem to find the right syntax. I have the following query: SELECT ... snipped ... if( ( selec

RE: Problem with IF() inside of a select statement

2010-07-08 Thread John Nichel
> -Original Message- > From: Peter Brawley [mailto:peter.braw...@earthlink.net] > Sent: Thursday, July 08, 2010 12:27 PM > To: mysql@lists.mysql.com > Subject: Re: Problem with IF() inside of a select statement > > >Is there a way I > >can do a IF((SELECT

Re: Problem with IF() inside of a select statement

2010-07-08 Thread Peter Brawley
Is there a way I can do a IF((SELECT.), expr2, expr3) and have expr2 populate with whatever is returned from the select statement? Yes, select if( (select count(*) from mytable ) > 100, 1, 0) works fine. The alias inside your last If(...), though, is not visible outside its parentheses;

Problem with IF() inside of a select statement

2010-07-08 Thread John Nichel
Hi, I'm hoping what I'm trying to do can be done, but I can't seem to find the right syntax. I have the following query: SELECT a.productid, a.productcode, a.product, if(

Re: Problem with installing MySQL

2010-04-18 Thread Shawn Green
alba.albetti wrote: I've just installed MySQL on Windows 2000. I've opened the MS-DOS windows and I've written >C:\Programs\MySQL\...\bin\mysqladmin -u root -p password mysql2010 After the enter the prompt says >Enter password: and I've given and I get mysqladmin: connect to server at 'local

Re: Problem with installing MySQL

2010-04-08 Thread Ananda Kumar
what is mysql2010, it it host name or password. If password, there cannot be space for a password, it its host, then dont use if u connecting from the server. regards anandkl On Fri, Apr 9, 2010 at 2:06 AM, Michael Dykman wrote: > If you want to specify the password itself on the command line

problem with mysqld process

2010-04-08 Thread F.A.I.Z.A.L
Hi * mysqld process consuming more 100% of cpu usage and execution time also very high. 1. how to reduce CPU? 2. why mysqld process consuming high cpu utilization? 3. Wether need to fine tune sql application. then how to use plan table in mysql? 4. which storage engine is better for transaction?

Re: Problem with installing MySQL

2010-04-08 Thread Michael Dykman
If you want to specify the password itself on the command line use '--password' (double hyphen). '-p' requests interactive password prompt. - michael On Thu, Apr 8, 2010 at 4:31 PM, Carsten Pedersen wrote: > don't have a space between '-p' and 'password', i.e. -ppassword > > / Carsten > > alb

Re: Problem with installing MySQL

2010-04-08 Thread Carsten Pedersen
don't have a space between '-p' and 'password', i.e. -ppassword / Carsten alba.albetti skrev: I've just installed MySQL on Windows 2000. I've opened the MS-DOS windows and I've written >C:\Programs\MySQL\...\bin\mysqladmin -u root -p password mysql2010 After the enter the prompt says >Enter pa

Re: Problem with installing MySQL

2010-04-08 Thread mos
At 09:02 AM 4/8/2010, alba\.albetti wrote: I've just installed MySQL on Windows 2000. I've opened the MS-DOS windows and I've written >C:\Programs\MySQL\...\bin\mysqladmin -u root -p password mysql2010 After the enter the prompt says >Enter password: and I've given and I get mysqladmin: con

Problem with installing MySQL

2010-04-08 Thread alba.albetti
I've just installed MySQL on Windows 2000. I've opened the MS-DOS windows and I've written >C:\Programs\MySQL\...\bin\mysqladmin -u root -p password mysql2010 After the enter the prompt says >Enter password: and I've given and I get mysqladmin: connect to server at 'localhost' failed error: 'A

MY PROBLEM WITH THE SOURCE(\.) IS SOLVED

2010-02-01 Thread kebede teferi
I thank you all who responded to solve my problem in using the source command to execute a mysql script saved on a notepad.  Thank you, for your tips, I've solved the problem.  When I was using the "\.create.sql" at the prompt I wasn't giving the full path where 'create.sql' is residing.  Once I

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-addresse. > > > > What's wrong? > > > > > > Reverse resolution? > > > > I

Re: Problem with mysql

2010-01-11 Thread Mihamina Rakotomandimby
(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-addresse. > > > What's wrong? > > Reverse resolution? > I have checked that, and reverse DNS is OK - both resolve to > 192.18.2.22 I read you sol

Re: Problem with mysql

2010-01-11 Thread Mihamina Rakotomandimby
> 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 resolution? > I have checked that, and reverse DNS is OK - both resolve to > 192.18.2.22 I read you solved your problem, but by "

Re: Problem with mysql

2010-01-11 Thread Jørn Dahl-Stamnes
On Monday 11 January 2010 09:55, Ananda Kumar wrote: > use mysql; > select * from user; > > see if you able to see 'r2-d2' entry in this table. > > also you can try this > > grant all on . to 'root'@'%' idenfified by > 'secret-password'; I just found the cause of the problem... /etc/nsswitch.conf

Re: Problem with mysql

2010-01-11 Thread Ananda Kumar
use mysql; select * from user; see if you able to see 'r2-d2' entry in this table. also you can try this grant all on . to 'root'@'%' idenfified by 'secret-password'; regards anandkl On Mon, Jan 11, 2010 at 1:40 PM, Jørn Dahl-Stamnes wrote: > On Monday 11 January 2010 08:53, Mihamina Rakotoma

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 resolution? I have checked that, and reverse DNS is OK - both resolve

Re: Problem with mysql

2010-01-10 Thread Mihamina Rakotomandimby
> 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 resolution? -- Architecte Informatique chez Blueline/Gulfsat: Administration Systeme, Recherche & Developpement +26

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:

Re: Problem with mysql

2010-01-10 Thread sureshkumarilu
com ReplyTo: sq...@dahl-stamnes.net Subject: Problem with mysql Sent: Jan 10, 2010 3:20 PM Hello I have installed mysql, apache and phpmyadmin on a new server running Fedora Core 12. For some unknown reason I cannot connect to the local host using a full hostname. This is what I have done:

Problem with mysql

2010-01-10 Thread Jørn Dahl-Stamnes
Hello I have installed mysql, apache and phpmyadmin on a new server running Fedora Core 12. For some unknown reason I cannot connect to the local host using a full hostname. This is what I have done: r2-d2# mysql -u root -p grant all on . to 'root'@'r2-d2' idenfified by 'secret-password'; gran

Re: Strange problem with mysqldump / automysqlbackup (ERROR 1300)

2009-11-23 Thread René Fournier
So, as a followup, I ran mysqldump on the actual server (with the output directed over AFP to another machine on the network) -- as opposed to running mysqldump on the destination server and connecting to the databases over TCP/IP (both are running 5.1.39 PPC 64-bit). *That* dump file imported O

Re: Strange problem with mysqldump / automysqlbackup (ERROR 1300)

2009-11-21 Thread René Fournier
Except that, in my case, both machines are running 5.1.39. Mac "OS X" PPC 64-bit. I tried importing another, different dump file of the same database, and this time mysql returned a different error: Sat Nov 21 13:16:20 -- Minas-Tirith :: mysql -u root -p < dump_file.sql Enter password: ERROR

Re: Strange problem with mysqldump / automysqlbackup (ERROR 1300)

2009-11-21 Thread Claudio Nanni
There is a bug in mysqldump that prevents mysql from version 5.0.80 from importing dumps from a old version of mysqldump. I had this verified by MySQL support. You can have a look at this bug: http://bugs.mysql.com/bug.php?id=41486 Cheers Claudio 2009/11/21 René Fournier > It's just odd, bec

Re: Strange problem with mysqldump / automysqlbackup (ERROR 1300)

2009-11-21 Thread René Fournier
It's just odd, because that error was on 5.0. I'm running 5.1.39 -- surely enough time for the MySQL devs to fix it right? Could it be with extended inserts that the max statement length is greater than the default 16MB max allowed packet? I'm increasing that value to 256 MB and going to try ag

Re: Strange problem with mysqldump / automysqlbackup (ERROR 1300)

2009-11-20 Thread René Fournier
> From: René Fournier [mailto:m...@renefournier.com] > Sent: Friday, November 20, 2009 8:31 AM > To: mysql > Subject: Strange problem with mysqldump / automysqlbackup (ERROR 1300) > > I've been using automysqlbackup 2.5 for years on a particular database, and > it's

RE: Strange problem with mysqldump / automysqlbackup (ERROR 1300)

2009-11-20 Thread Gavin Towey
range problem with mysqldump / automysqlbackup (ERROR 1300) I've been using automysqlbackup 2.5 for years on a particular database, and it's always performed great. Recently, however, I've become encountering problems when trying to re-import one of its dumped sql files. (Not sure

Strange problem with mysqldump / automysqlbackup (ERROR 1300)

2009-11-20 Thread René Fournier
rge and growing -- about 10GB. The other databases automysqlbackup backs up are fine.) Basically on the import, MySQL fails and returns an error indicating a problem with the dump file: mysql -u root -p < dump_file.sql (~10GB) Enter password: ERROR 1300 (HY000) at line 426: Invalid utf

Re: Data import problem with duplicate datasets

2009-09-23 Thread Claudio Nanni
A very first thought I got is disable the constraint before import and re-enable after that. One way could be to set the foreign key checks to false or alter the constraint and remove the 'cascade delete' part. It's just a quick brain storm, please verify the goodness of it, I still need to get my

Data import problem with duplicate datasets

2009-09-23 Thread spikerlion
Hello, we have two tables associated with a foreign key constraint. Table A with the primary key and table B with an "on delete cascade" constraint. We want to delete datasets in Table B if the related dataset in Table A is deleted - that works. Now the Problem: There is a weekly import defined

RE: Problem with MySQL user

2009-09-16 Thread Gavin Towey
: Problem with MySQL user I'm working with two VMs, one a web server, one a MySQL database server. In mysql, I added a 'user'@'172.16.1.2' with privileges appropriate for the web site, and that works. The VMs got shipped off to a hosting facility. They got the 172.16.1.X netwo

Problem with MySQL user

2009-09-16 Thread John Oliver
I'm working with two VMs, one a web server, one a MySQL database server. In mysql, I added a 'user'@'172.16.1.2' with privileges appropriate for the web site, and that works. The VMs got shipped off to a hosting facility. They got the 172.16.1.X network between the two VMs up, but when they try to

Re: Problem with configuring 32-bit MySQL 5.0 on Windows Vista x64

2009-07-13 Thread Carlos Proal
Did you deleted the data dir (inside Program Files) after uninstall ?? i think that is was not empty and when the new install tries to set up finds it and get messy (maybe because the 32 and 64 bit issue). Carlos On 7/13/2009 11:07 PM, Edward Diener wrote: I had previously installed the 64-b

Problem with configuring 32-bit MySQL 5.0 on Windows Vista x64

2009-07-13 Thread Edward Diener
I had previously installed the 64-bit version of MySQL 5.1 server under Windows Vista x64 and both the installation and configuration were successful. Then for compatibility reasons with something on which I am working I realized I needed to install the 32-bit version of MySQL 5.0 server. Since

Re: Problem with Dynamic table names.

2009-06-29 Thread Joerg Bruehe
Marco, all, Marco Bartz wrote: > I accidentally sent it before finishing... > > I am looking for a way to do the following with a single query: >> SELECT `ID`, `Name`, `Interface`, >> (SELECT count(*) FROM CONCAT('listings_', `ID`) WHERE `Status`='Active') as >> `activeListings` >> FROM `sites`

Re: Problem with Dynamic table names.

2009-06-29 Thread nigel wood
Marco Bartz wrote: I accidentally sent it before finishing... I am looking for a way to do the following with a single query: SELECT `ID`, `Name`, `Interface`, (SELECT count(*) FROM CONCAT('listings_', `ID`) WHERE `Status`='Active') as `activeListings` FROM `sites` I am querying the

Re: Problem with Dynamic table names.

2009-06-29 Thread Marco Bartz
I accidentally sent it before finishing... I am looking for a way to do the following with a single query: > SELECT `ID`, `Name`, `Interface`, > (SELECT count(*) FROM CONCAT('listings_', `ID`) WHERE `Status`='Active') as > `activeListings` > FROM `sites` > I am querying the sites table and I want

Problem with Dynamic table names.

2009-06-29 Thread Marco Bartz
I am looking for a way to do the following with a single query: SELECT `ID`, `Name`, `Interface`, (select count(*) FROM CONCAT('listings_', `ID`) WHERE `Status`='Active') as `activeListings` FROM `sites`

problem with ssl connection

2009-04-14 Thread Stefano Elmopi
Hi, Is there someone who is able to connect to an MySQL instance connection via ssl, from a client located on a different server than where is the MySQL instance, using the only option --ssl-ca ? I'm not able, I can only connect if I use the options --ssl-ca, --ssl- cert and --ssl-key ev

Re: facing problem with is null in stored procedure

2009-04-12 Thread syed basha
hai shawn green, thanks for ur response.My situation is to generate a production plan.for this I collect the data from sales orders and compare the stock availability in rthe warehouse and if the stock is less than the ordered quantity I plan for production and for this I have to issue t

Re: facing problem with is null in stored procedure

2009-04-11 Thread Shawn Green
syed basha wrote: delimiter // create procedure sample1(in p_item varchar(30), in p_size varchar(6), in p_quantity decimal(10,3), in p_unit varchar(3), in p_autoincrement varchar(30), out v_mess varchar(50) ) begin declare done int default 0; declare v_bhqty decimal(10,3); decl

facing problem with is null in stored procedure

2009-04-08 Thread syed basha
delimiter // create procedure sample1(in p_item varchar(30), in p_size varchar(6), in p_quantity decimal(10,3), in p_unit varchar(3), in p_autoincrement varchar(30), out v_mess varchar(50) ) begin declare done int default 0; declare v_bhqty decimal(10,3); declare v_bhunit varchar

Problem with mysql_secure_installation script in mysql-5.0.67

2009-01-07 Thread sjh
... Failed! >How-To-Repeat: Just install the server, run mysql_install_db, start the server and run mysql_secure_installation. >Fix: >Submitter-Id: ? >Originator:Steve Holmes >Organization: Purdue University Computing Center >MySQL support: no

Re: Problem with fetching values...

2008-12-28 Thread Michelle Konzack
OK, Now I have gotten something... [ '~/.tdphp-vserver/includes/10_electronica_admin.inc' ] # while ($DB_list=db_fetch_array($DB_result)) { #$output .= "\n"; while ($DB_list=db_fetch_array($DB_result)) { print_r ($DB_list); } echo "\n"; exit(); --

Problem with fetching values...

2008-12-28 Thread Michelle Konzack
Hello, I have to code a compatibility layer under PHP5 for PostgreSQl and MySQL, which mean, I have to code something like db_query() which then can be used with mysql_query() and pg_query(). But now I have hit an weird error, since in PostgreSQL it is wotking but in MySQL it get the righ

Re: Problem with MySQL prompt

2008-12-23 Thread Stefano Elmopi
Hi Krishna, I use the script mysql_multi to stop and the start several, or all, instances. At the end, to work with more ease, I will create scripts to connect to each instance and in the script force the variable prompt at the connection seems easy Thanks for all !!! Il

Re: Problem with MySQL prompt

2008-12-23 Thread Krishna Chandra Prajapati
Hi Stefano, I believe that, different mysql configuration file for different mysql instance is a better idea. In your case, if any thing goes wrong with my.cnf Then, it is going to effect all mysql instance (either restart mysql server or any other way). It has a lots of disadvantages. You might

Re: Problem with MySQL prompt

2008-12-23 Thread Stefano Elmopi
Hi Krishna, the problem is that you use --default-file on the command line and in this mode it's working fine, I also tried, but I have the configuration of the variable "default-file" in the general my.cnf and I enter in MySQL in this way: mysql --socket=/tmp/mysql50_SIA_SVILUPPO.sock W

Re: Problem with MySQL prompt

2008-12-23 Thread Krishna Chandra Prajapati
Hi Stefano, I have tested. It's working fine without any issue. Open mysql configuration(.cnf) file referencing to 1st mysql instance. Add the below entires and restart the mysql server. [mysql] no-auto-rehash # Remove the next comment character if you are not familiar with SQL #safe-updates pro

Re: Problem with MySQL prompt

2008-12-23 Thread Stefano Elmopi
Hi Krishna, thanks for the your answer !!! I have three different my.cnf for my three instances but one general my.cnf to manage all instances, my general my.cnf is: [mysqld_multi] mysqld = /opt/local/mysql50/bin/mysqld_safe mysqladmin = /opt/local/mysql50/bin/mysqladmin user = root pas

Re: Problem with MySQL prompt

2008-12-22 Thread Simon J Mudd
prajapat...@gmail.com ("Krishna Chandra Prajapati") writes: > You are running three mysql instance on single server. You can have three > my.cnf say my.cnf, my1.cnf, my2.cnf with different port and socket and other > information in them. In this way you can set the prompt for different > instance.

Re: Problem with MySQL prompt

2008-12-22 Thread Stefano Elmopi
Thanks for the all answers !!! It's ok, even if I have three different my.cnf for my three instances, my general my.cnf is: [mysqld_multi] mysqld = /opt/local/mysql50/bin/mysqld_safe mysqladmin = /opt/local/mysql50/bin/mysqladmin user = root password = mysys2008srv log = /MYSQL/MYSQL_LOG/My

Re: Problem with MySQL prompt

2008-12-22 Thread Warren Young
Stefano Elmopi wrote: If I put the variable prompt in the general my.cnf, the prompt is changed but for all instances. If I put in the variable prompt in the my.cnf associated with the instance in the [mysql] section, the prompt does not change. This is because the client reads from my.cnf b

Re: Problem with MySQL prompt

2008-12-22 Thread Claudio Nanni
Ciao Stefano, how do you connect to the different instances? if you use different operating system users or different mysql home directories just put in the home directory of each user a .my.cnf file (or my.cnf in the mysql home) with just the prompt setting in the [mysql] section. NOTE: in the

Re: Problem with MySQL prompt

2008-12-22 Thread Krishna Chandra Prajapati
Hi Stefano, You are running three mysql instance on single server. You can have three my.cnf say my.cnf, my1.cnf, my2.cnf with different port and socket and other information in them. In this way you can set the prompt for different instance. On Mon, Dec 22, 2008 at 3:46 PM, Stefano Elmopi wrote:

Problem with MySQL prompt

2008-12-22 Thread Stefano Elmopi
I need advice. I have three instances of MySQL on a single server. How can I change the MySQL prompt depending of the instance on which connecting ? If I put the variable prompt in the general my.cnf, the prompt is changed but for all instances. If I put in the variable prompt in the my.cnf

Re: Problem with GROUP BY

2008-10-20 Thread Moon's Father
Learnt! On Wed, Oct 15, 2008 at 5:28 PM, philip <[EMAIL PROTECTED]> wrote: > > Date: Tue, 14 Oct 2008 16:55:11 +0300 > > From: Olexandr Melnyk <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED], mysql@lists.mysql.com > > Subject: Re: Problem with GROUP BY > >

  1   2   3   4   5   6   7   8   9   10   >