Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MySql
 [mysqld-4.1.13a-max]Duplicate entry
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 03 September 2005 :  16:54:47  Show Profile
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-4.1.13a-max]Duplicate entry '2-4-7735-142050' for key 1

/forum/admin_forums.asp, line 489




This is the error I am getting when trying to archive topics on my forums. I have done a search here and from which I gather is most likely an empty cell in the database? is that correct?
If so how can I go about fixing this?

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 03 September 2005 :  18:17:11  Show Profile
Its ok, I have sorted it.

I made my own php script to delete old posts past a certain date. And that seems to have fixed the error. (probably took out the post that was causing it!
Go to Top of Page

secretsquirrel
New Member

Australia
81 Posts

Posted - 04 May 2006 :  14:30:41  Show Profile  Visit secretsquirrel's Homepage
I just got an error in the same line while trying to archive.

ADODB.Connection.1 error '80004005'

SQLState: S1000
Native Error Code: 1062
[TCX][MyODBC]Duplicate entry '2-19-70-457' for key 1


/forum/admin_forums.asp, line 489
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 04 May 2006 :  14:37:11  Show Profile  Send ruirib a Yahoo! Message
That possibly happens because you are trying to archive after some previously failed archiving attempt. Unless you can find your way using MySQL, there isn't much you can do, except deleting old archived posts, but you have no easy way of knowing which ones to delete, except through MySQL...


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

secretsquirrel
New Member

Australia
81 Posts

Posted - 05 May 2006 :  00:15:17  Show Profile  Visit secretsquirrel's Homepage
Thanks Ruirib. I did have a failed archive attempt with that part of the forum once before. Fortunately it's not one of the main parts of the forum so i can play around with it a bit.
MySQL hehe i have no idea what i'm doing with it so won't go there
I will take my time and move threads that fall into the time frame i'm attempting to archive to another part of the forum and bring them back bit by bit archiving as i go until i get the message again.
Thanks for the help
Go to Top of Page

secretsquirrel
New Member

Australia
81 Posts

Posted - 15 May 2006 :  23:44:40  Show Profile  Visit secretsquirrel's Homepage
Now i get this Couldn't find anything on this error in search.

ADODB.Connection.1 error '80004005'

SQLState: S1090
Native Error Code: 0
[TCX][MyODBC]SQLBindParameter not used for all parameters


/forum/admin_forums.asp, line 489
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 May 2006 :  05:09:40  Show Profile  Send ruirib a Yahoo! Message
I don't even know what causes that error, but a post in a MySQL list seems to indicate that the packet network size for MySQL needs to be set to a higher value (the post I saw suggest 1 MB). Here is the link: http://lists.mysql.com/myodbc/1369

I guess you will need to talk to your host about that.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 10 April 2008 :  04:54:40  Show Profile  Visit NiteOwl's Homepage
quote:
Originally posted by ruirib

That possibly happens because you are trying to archive after some previously failed archiving attempt. Unless you can find your way using MySQL, there isn't much you can do, except deleting old archived posts, but you have no easy way of knowing which ones to delete, except through MySQL...



Hi ruirib - Would you mind giving me a string or an idea what I would be looking for in the MySQL I do use MySQL-FRONT and can run scripts. I have the exact problem stated here but am unsure how to overcome it.

I have successfully archived many of my topics, however there are approximately 12 topics which are original and I seem to recall having an archive problem in the early days, I do have monthly backups, I can provide copies of entire database or even a single topic (even a very small topic) if it could help to pinpoint what I need to look for.

NiteOwl

Edited by - NiteOwl on 10 April 2008 06:00:04
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 April 2008 :  07:48:47  Show Profile  Send ruirib a Yahoo! Message
Try this, it will delete archived replies that still exist on the live table:

DELETE AR FROM FORUM_REPLY R INNER JOIN FORUM_A_REPLY AR ON R.REPLY_ID=AR.REPLY_ID 


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 10 April 2008 :  09:38:16  Show Profile  Visit NiteOwl's Homepage
I get the following error:

SHOW FIELDS FROM `forum_reply`
SHOW KEYS FROM `forum_reply`
DELETE AR FROM FORUM_REPLY R INNER JOIN FORUM_A_REPLY AR ON R.REPLY_ID=AR.REPLY_ID
Not unique table/alias: 'ar'

-=NiteOwl=-
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 April 2008 :  10:01:13  Show Profile  Send ruirib a Yahoo! Message
Well that looks like an issue with your MySQLFront. I ran this on SQLYog and it went ok.

Do yourself a favor and download the free version of SQLYog. Beats MySQLFront any day.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 10 April 2008 :  14:23:24  Show Profile  Visit NiteOwl's Homepage
ok, I do remember looking at this product before and I even have it loaded on my machine. Here si the error I am getting now:

Error Code : 1066
Not unique table/alias: 'ar'
(0 ms taken)

I maybe trying to run it incorrectly as I am not familure with product, I have selected the forum_reply on the left then run the sql query provided. . I also tried running it from the top of the database...I must be doing something wrong? OH and of course this is on my recent backup.


Edited by - NiteOwl on 10 April 2008 14:31:14
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 April 2008 :  14:48:49  Show Profile  Send ruirib a Yahoo! Message
What version of MySQL are you running locally?
I'm running this on MySQL 5.x and have no issues running it. It works as expected. This also runs perfectly on MySQL 4.1.x, so maybe try it at the live server, because it won't delete anything that's not repeated.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 10 April 2008 :  15:34:59  Show Profile  Visit NiteOwl's Homepage
ok I will try to run it on the live server, that may well be the problem as my backup server is my home machine windows-server and something I have always noted is that the live server is always uppercase and when I do my backups to my personal server it all goes to lower-case.

Home windows-based server version 3.23.38 :( its been there a long time.

My production is running on a Linux box. Not sure the version but its hosted professionally, I have to run to work, but when I get back I will take the forum down and try running the sql on the live database. Thanks for your quick response I do so much appreciate it.

-=Bob=-


-=NiteOwl=-
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 April 2008 :  16:07:33  Show Profile  Send ruirib a Yahoo! Message
You should upgrade your MySQL server at home. The issue is because you are still running a 3.x version.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 11 April 2008 :  01:59:06  Show Profile  Visit NiteOwl's Homepage
Crap - I just realized my host is providing me with MySQL 3 its actually not surprisingly as that is what I desired 5 years ago and they would not change me without notification. (I never thought of that)

So I would like to upgrade but I do have a pressing problem with response time now and need to do an archive especially on the busiest forum. Is there something else we can do to get me out of the hole, at which time I can work with my provider my personal machine to do an upgrade?

Edited by - NiteOwl on 11 April 2008 02:13:36
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07