Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

SQL problem

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-31-2004, 04:08 PM
 
cen cen is offline
 

Member
  
Join Date: Dec 2003
Location: los angeles
Posts: 19
 

Default SQL problem

atop my stores page i get this message(below). im not the greatest with computers so im to sure what i have to do to correct this issue.

INVALID SQL: 1016 : Can't open file: 'xcart_stats_pages_views.MYD'. (errno: 145)
SQL QUERY FAILURE: INSERT INTO xcart_stats_pages_views(pageid, date) VALUES('21','1080775865')

I talked to my server and they told me i do have pently of room in my sql. im using 3.5.1 x-cart. to view the issue

http://www.motorex.net/xcart/customer/home.php?cat=248

thanks.
Reply With Quote
  #2  
Old 03-31-2004, 04:21 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Edit config.php,

find:

Code:
# # Automatic repair of the broken indexes in mySQL tables # $mysql_autorepair = false;

set it to true instead of false.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 03-31-2004, 05:44 PM
 
cen cen is offline
 

Member
  
Join Date: Dec 2003
Location: los angeles
Posts: 19
 

Default

thanks, that worked.
Reply With Quote
  #4  
Old 04-06-2004, 09:42 AM
 
tecdady tecdady is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 61
 

Default

im having this same problem with a client. and unfortunatly the mysql_autorepair line IS NOT in my config.php file. can anyone help me with this. thanks,
chris
Reply With Quote
  #5  
Old 04-06-2004, 10:19 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

I'm really not sure here, but I'm assuming you need to repair your table. Are you able to do this via shell or phpmyadmin?

http://www.mysql.com/doc/en/REPAIR_TABLE.html
Reply With Quote
  #6  
Old 06-12-2004, 09:26 PM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Weird. I had the same problem, did what Boomer said and it didn't fix it for a couple of pages, then it was gone Why is that even an option in config? Is it not good to keep it set to true?
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #7  
Old 06-13-2004, 08:01 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Some people don't have proper permissions to use such features in mySQL, this could be one reason to disable this feature in config.php.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #8  
Old 06-13-2004, 08:35 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Thanks Boomer. For anyone else, it seems to be an issue with the host as mine corrected it.
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #9  
Old 09-30-2004, 01:14 PM
 
sublimebikinis sublimebikinis is offline
 

Advanced Member
  
Join Date: May 2004
Location: New Zealand
Posts: 33
 

Default Excellent post

Thanks for the config.php remedy - it worked!

This is a VERY helpful post!

Reply With Quote
  #10  
Old 12-09-2004, 09:44 AM
  jeffwill's Avatar 
jeffwill jeffwill is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: US
Posts: 41
 

Default Excellent Post

I contacted my host and they told me they had a problem with the database I was connected to and performed some maintenance. This explained why I suddenly had SQL errors on my pages. The real problem was that they were not able to get this fixed with X-Cart, but that's why this forum is so great. Thanks for the fix BOOMER!

Always make sure to perform backups!!!

I used the following suggestion by modifying my config.php file and it worked perfectly. That's all I needed to do.

# Automatic repair of the broken indexes in mySQL tables
#
$mysql_autorepair = false;
__________________
X-Cart ver 3.4.14 (LIVE!)
PHP 4.3.8
MySQL server 4.1.15-log
Web server Apache/1.3.29
Operation system FreeBSD

X-Cart ver 4.0.9 (Dev)
PHP 4.3.4 Details
MySQL server 4.0.18
MySQL client 3.23.49
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:18 PM.

   

 
X-Cart forums © 2001-2020