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

Database Auto-Optimizer

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 10-07-2006, 07:57 AM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default Re: Database Auto-Optimizer

Like 2coolbaby, I too would like someone to set this up - cPanel here...
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
Reply With Quote
  #32  
Old 10-20-2006, 05:13 PM
  Kara's Avatar 
Kara Kara is offline
 

Advanced Member
  
Join Date: May 2006
Location: O'fallon, Missouri
Posts: 77
 

Unhappy Re: Database Auto-Optimizer

NuAlpha,
I went through the steps, even set up the cron. But found I had misplace my sql pasword, so I changed it. Now I get this error when trying to access my site:

Warning: mysql_connect(): Access denied for user: 'acecase_xuser@web20' (Using password: YES) in /hsphere/local/home/acecase/acecase.com/store/include/func.php on line 44

Warning: mysql_select_db(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /hsphere/local/home/acecase/acecase.com/store/include/func.php on line 48

Warning: mysql_select_db(): A link to the server could not be established in /hsphere/local/home/acecase/acecase.com/store/include/func.php on line 48
Could not connect to SQL db

Help...anyone...
__________________
x-cart gold 4.6

Kara Design Group, Inc.
http://www.karadesigngroup.com
Professional Creative Services
Reply With Quote
  #33  
Old 10-21-2006, 06:49 AM
 
ranger82nd ranger82nd is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 159
 

Default Re: Database Auto-Optimizer

Open config.php get your original password and set it back to that or change the password field in config.php. That should get you going again.
__________________
X-Cart Gold v4.0.17 ~ EWD Hosting!
Reply With Quote
  #34  
Old 10-21-2006, 11:57 AM
  Kara's Avatar 
Kara Kara is offline
 

Advanced Member
  
Join Date: May 2006
Location: O'fallon, Missouri
Posts: 77
 

Smile Re: Database Auto-Optimizer

Thank you!
__________________
x-cart gold 4.6

Kara Design Group, Inc.
http://www.karadesigngroup.com
Professional Creative Services
Reply With Quote
  #35  
Old 11-23-2006, 03:07 AM
 
marcgeldon marcgeldon is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 65
 

Default Re: Database Auto-Optimizer

This is really a nice script!
__________________
Marc Geldon (PRO IT SYSTEMS)
http://www.proitsystems.de

X-Cart PRO 4.1.3
Reply With Quote
  #36  
Old 11-29-2006, 08:24 PM
 
Lambo Lambo is offline
 

Newbie
  
Join Date: Oct 2006
Posts: 1
 

Default Re: Database Auto-Optimizer

I'm sorry to bump this thread, but it was the logical place to put this question.

Originally our site was slow, (Even when there was no data on it, and a blank template.)

Once I'd custimized and imported our data I found that the site was still very slow. 10 to 15 seconds sometimes just to flick to different catagories.

I've followed all the recomendations here from the the site below for speeding up X-Cart. All except this one.

http://www.websitecm.com/news/14/Speed-up-your-XCart-Installation.html

If you have say a DB of 3000-4000 products, what kind of impact speed wise can such a script have?

I've followed the instructions and recommendations as mentioned in the thread. I'd prefer to manually do this, and I have been from the absolute path. It appears to be working, but other then a blank page how do I know it's doing anything at all? How long should it take?
__________________
4.0.19
Reply With Quote
  #37  
Old 01-19-2007, 11:27 AM
 
SMDStudios SMDStudios is offline
 

eXpert
  
Join Date: Dec 2003
Location: Orlando, FL
Posts: 207
 

Default Re: Database Auto-Optimizer

Will this work with the 4.1.x branch?
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #38  
Old 01-20-2007, 05:20 AM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default Re: Database Auto-Optimizer

It should work with any version of ... anything, really, as long as it has a mySQL Database. I wouldn't recommend it on any other type of Database, like msSQL. It does nothing to X-Cart itself, just cleans up the mySQL Database so that it's more organised & works faster.
__________________
Location: UK
X-Cart: Gold 4.4.2, Status: Finalizing
Template: Colors
Free Mods: Colour Coded Orders, FAQ Manager
Paid Mods: None... yet.
Server: Linux, Apache: 2.2.15 (Unix), MySQL: 5.0.90-community, PHP: 5.2.13
Reply With Quote
  #39  
Old 03-23-2007, 08:22 AM
 
AquaMan AquaMan is offline
 

Newbie
  
Join Date: Sep 2006
Posts: 4
 

Default Re: Database Auto-Optimizer

Hi,
Is there a way to tell if this is actually working? (ie ...a test or a report?)
__________________
P. L.

AQUANICA
XCART VER. Version 4.1.6
Reply With Quote
  #40  
Old 04-14-2007, 02:50 PM
 
cautious cautious is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: FL, US
Posts: 64
 

Default Re: Database Auto-Optimizer

Yes, today I started getting sql_query failure too, as shown by the snap shot below. My email is also full or related notifications

=======================
INVALID SQL: 0 :
SQL QUERY FAILURE: SELECT count(*) FROM xcart_sessions_data WHERE sessid='681572c3424d8ed7f5dbb16c57dda74c'
SQL QUERY FAILURE: UPDATE xcart_sessions_data SET data='a:13:{s:5:\"login\";s:0:\"\";s:11:\"editor_m ode\";s:0:\"\";s:8:\"sns_flag\";s:0:\"\";s:13:\"sn s_do_action\";s:0:\"\";s:8:\"is_robot\";s:1:\"N\"; s:5:\"robot\";s:0:\"\";s:11:\"is_location\";s:0:\" \";s:9:\"adaptives\";a:1:{s:14:\"is_first_start\"; s:1:\"Y\";}s:10:\"login_type\";s:0:\"\";s:6:\"logg ed\";s:0:\"\";s:11:\"top_message\";s:0:\"\";s:16:\ "current_language\";s:2:\"US\";s:17:\"merchant_pas sword\";s:0:\"\";}' WHERE sessid='681572c3424d8ed7f5dbb16c57dda74c'
INVALID SQL: 0 :
SQL QUERY FAILURE: UPDATE xcart_sessions_data SET data='a:13:{s:5:\"login\";s:0:\"\";s:11:\"editor_m ode\";s:0:\"\";s:8:\"sns_flag\";s:0:\"\";s:13:\"sn s_do_action\";s:0:\"\";s:8:\"is_robot\";s:1:\"N\"; s:5:\"robot\";s:0:\"\";s:11:\"is_location\";s:0:\" \";s:9:\"adaptives\";a:1:{s:14:\"is_first_start\"; s:1:\"Y\";}s:10:\"login_type\";s:0:\"\";s:6:\"logg ed\";s:0:\"\";s:11:\"top_message\";s:0:\"\";s:16:\ "current_language\";s:2:\"US\";s:17:\"merchant_pas sword\";s:0:\"\";}' WHERE sessid='681572c3424d8ed7f5dbb16c57dda74c'
=======================

As a result my site was useless. I researched this on the internet. It appears that many x-cart sites have experienced similar problems at one time or the other. Yes, I agree with balinor and others elsewhere in this forum that it is not x-cart direct problem. Nonetheless, I think x-cart should still research this and supply an integrated solution as part of HA and store maintenance feature.

Here is the solution that eventually worked for me to remedy the problem. It may work for you too. Note that I have a dedicated server so I was able to login and perform these steps manually. I recommend manual operation.

1. First backup you DB. Multiple ways to do this. In my case, I simply stopped mysqld (/etc/init.d/mysqld stop) and then made a zipped tarball of the DB (tar cvzf mysql_bak.tgz mysql ). Then start the DB (/etc/init.d/mysqld start)

2. Review the error(s) with this
mysqlcheck -s -u [Your_db_root_uname] -p[Hispasswd] [TheDBname]

where [text] is what you must supply as your correct value w/o the delimiting square brackets.

3. Then do the repair with this
mysqlcheck -r -q -u [Your_db_root_uname] -p[Hispasswd] [TheDBname]

4. Hopefully the above fixes all the problem as evident by the OK's it spits out. Just to be sure, repeat Step 2 to verify all the errors are gone:
mysqlcheck -s -u [Your_db_root_uname] -p[Hispasswd] [TheDBname]

If all is well, the last command should just return a prompt. If not, if you still have errors, you may need a professional to step in.

Cheers
__________________
Recommend www.paintball-gear-supplies.com for good deals on camping & outdoor supplies.
x-cart v4.1.10 on LAMP
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 07:32 AM.

   

 
X-Cart forums © 2001-2020