Re: Delete replication on replication

2009-06-23 Thread Isart Montane
what do yo get when you run show slave status on the slave?
are you replicating the database you are modifying?

Isart Montane

On Tue, Jun 23, 2009 at 7:29 AM, sangprabv sangpr...@gmail.com wrote:

 I have configured mysql replication and test to insert some records.
 Both nodes synchronized but when I delete 1 record from the main node,
 why the second node not synchronized? TIA.



 Willy


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/mysql?unsub=isart.mont...@gmail.com




Re: Duplicate key name when importing mysql dump file

2009-06-19 Thread Isart Montane
Hi Jason,

if you run mysql with -f it will ignore any errors and continue importing

cat aac.sql | mysql -f -u root AAC

Isart

On Wed, Jun 17, 2009 at 8:59 PM, Jason Novotny jason.novo...@gmail.comwrote:

  Hi,

   I'm trying to import a dumpfile like so:

 cat aac.sql | mysql -u root AAC

 It all runs fine until I get something like:

 ERROR 1061 (42000) at line 5671: Duplicate key name 'FK_mediaZip_to_zipSet'


 Is there a way I can tell it to ignore or replace the key?

 Thanks, Jason

 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/mysql?unsub=isart.mont...@gmail.com




Re: ignore accents in order by

2009-06-12 Thread Isart Montane
I agree with Per, I use utf8 and it works fine for me, even with Chinese
characters

On Fri, Jun 12, 2009 at 8:40 AM, Per Jessen p...@computer.org wrote:

 PJ wrote:

  Let me put it this way, I am not having the problem. The problem seems
  to be withthe way that character encoding is set up on the internet -
  as confused and inconsistent as most everything else.
  You can put whatever charset you want in the header, in the collations
  in your database, your htmls... you see already that the options start
  to multiply rapidly...

 You're making it more complicated than it is.  Just stick to UTF8 and
 you'll be fine.

  without even considering the browsers. So, I
  have tried about all combinations possible and there is no one way to
  implement display and use of accents.

 Sure there is.  UTF-8. Period.

  UTF-8 does not handle them very well at all; iso-8895-1 doesn't
  either; you can set the coding on your browser to whatever you want -
  when you update or reload the file the little black diamond devils
  come back or turn into little blank squares on IE8...

 I think we've gone OT here, but honestly I have no problem with accents
 nor any other special characters anywhere - database, browser,
 whereever.  And yes, I work with 4-5 different languages on a daily
 basis.


 /Per Jessen, Zürich


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/mysql?unsub=isart.mont...@gmail.com




Re: ignore accents in order by

2009-06-11 Thread Isart Montane
Hi,

I'm not having any problem on my local computer

mysql select text,text2 from table1 order by text2 desc;
+--+---+
| text | text2 |
+--+---+
| a| 1 |
| �| 0 |
+--+---+

mysqlselect text,text2 from table1 order by text2 desc;
+--+---+
| text | text2 |
+--+---+
| �| 1 |
| a| 0 |
+--+---+

What Collation are you using? can you send us the table schema?

thx!
Isart


On Thu, Jun 11, 2009 at 4:48 PM, PJ af.gour...@videotron.ca wrote:

 Is there a way to order lists while ignoring the accents?
 So far, I have found nothing simple; and I need to keep the accents for
 output.
 The language is French (and québécois) :-)
 TIA

 --
 Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
 -
 Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/mysql?unsub=isart.mont...@gmail.com




Re: IDE - SQLYog

2009-06-10 Thread Isart Montane
I've been using phpmyadmin as a MySQL GUI for some time and worked great for
me.

www.*phpmyadmin*.net


Isart


On Tue, Jun 9, 2009 at 8:57 PM, Daevid Vincent dae...@daevid.com wrote:

 SQLYog by Webyog is the best mySQL GUI client for Windows. Hands down. not
 even a question. I've used them all I think.

 http://webyog.com/en/

 There's even a free community version, but honestly it's worth purchasing
 the extended one for all the added features. They also release new ones all
 the time so it's very actively developed.

 http://daevid.com


  -Original Message-
  From: Mosaed zamil [mailto:mzamils...@gmail.com]
  Sent: Tuesday, June 09, 2009 9:41 AM
  To: mysql@lists.mysql.com
  Subject: IDE
 
  Hello all,
  I used Database Workbench on trial bases. It is nice. I plan
  to purchase an
  IDE. Is is it the best around. Your feed back is appreciated.
  yours
  mosaed
 


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/mysql?unsub=isart.mont...@gmail.com




Re: dumb crash

2009-06-10 Thread Isart Montane
Hi,

any message on the error log? Have you tried restarting the mysql server?

On Tue, May 26, 2009 at 7:24 PM, PJ af.gour...@videotron.ca wrote:

 Hydro Quebec just f***ed my server just as I was booting up three
 machines; XP is ok, FreeBSD 7.1 is the one with mysql problem, FreeBSD
 4.10 - don't know, but boots ok. Result: can't access database. One
 table seems to abort mysqld. PhpMyAdmin connects to all databases except
 one.

 mysql CHECK TABLE producer;
 ERROR 2006 (HY000): Mysql server has gone away
 No connection. Trying to reconnect...
 Connection id: 1
 Current database: theproblem-one
 Error 2006 (HY000: Mysql server has gone away
 ERROR 2002 (HY000): Can't connect to local lMySQL server through socket
 '/tmp/mysql.sock'   (61)
 ERROR: Can't connect to the server
 mysql

 ps shows mysqls is running in safe mode

 Can't find anything on googie
 I've tried SELECT  INTO OUTFILE - same errors...
 WEBMIN shows all dbs except the fro producer and phpMyAdmin resets to
 login page when trying to access producer table.

 Any suggestions or bad experiences solved?


 --
 Hervé Kempf: Pour sauver la plančte, sortez du capitalisme.
 -
 Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/mysql?unsub=isart.mont...@gmail.com




Re: recurring corrupt table?

2008-11-18 Thread Isart Montane
have you checked with myisamchk?

On Thu, Nov 13, 2008 at 4:09 PM, Jed Reynolds [EMAIL PROTECTED] wrote:

  Application in php 5.1.6.I'm running MySQL version 5.0.45 on CentOS5 using
 a HP DL380 with 8G ram and 15krpm raid10 disks. Tables are myisam.

 I'm seeing errors in my application where I'm getting from simple selects
 every few hours:

 SELECT id, host_id, uri_id, profile FROM activity_profiles WHERE 1=1  AND
 id IN (48823962 )

 Table 'activity_profiles' is marked as crashed and should be repaired.

 My application isn't reporting errors when writing, though.

 I do a flush table activity_profiles; check table activity_profiles; and
 the table seems to have fixed itself.

 Any thots?

 TIA,

 Jed

 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/[EMAIL PROTECTED]




Re: Help with query to remove all records where foreign key doesn't have corresponding records

2008-08-13 Thread Isart Montane
Hi Daevid

If you are using a foreign key you can set the reference as cascade
and when a row is deleted from feed it will be deleted from feed_tag.

http://dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html

If you don't like it you can delete it easy with a query like this

delete from feed_tag where id not in (select id from tag)


Best,
Isart



On Wed, Aug 13, 2008 at 5:51 PM, Daevid Vincent [EMAIL PROTECTED] wrote:
 I want to remove all records from 'feed_tag' where the feed_id foreign key
 doesn't have any corresponding records in feed.

 For instance I may have a record in feed_tag that is like (23, 10, 4543,
 '... (some date)').

 Then lets say there is no record in feed that has a primary id key of 10.

 I want that record (or usually records because of the 1 feed to many
 feed_tag relationship) to be removed.

 CREATE TABLE IF NOT EXISTS `feed` (
   `id` int(11) NOT NULL auto_increment,
   `title` varchar(100) default NULL,
   `url` varchar(255) default NULL,
   `host` varchar(100) default NULL,
   `type` varchar(100) default NULL,
   `status` char(1) default NULL,
   `total_stories` int(11) default '0',
   `created_at` datetime default NULL,
   `updated_at` datetime default NULL,
   PRIMARY KEY  (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;

 CREATE TABLE IF NOT EXISTS `feed_tag` (
   `id` int(11) NOT NULL auto_increment,
   `feed_id` int(11) default NULL,
   `tag_id` int(11) default NULL,
   `created_at` datetime default NULL,
   PRIMARY KEY  (`id`),
   KEY `feed_tag_FI_1` (`feed_id`),
   KEY `feed_tag_FI_2` (`tag_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;

 As you can see the foreign key 'feed_id' is the issue here (ignore the
 tag_id key).


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]