Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2005
    Location
    Rochester, New York
    Posts
    165
    Plugin Contributions
    0

    Default Error trying to use Data base optomise

    Can someone tell me why I am getting this when I am in the admin of my catalog and in store manager and then go to the bottom and click optomise:

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-_cat1' at line 1
    in:
    [SHOW TABLE STATUS FROM rochesterlaw_org_-_cat1]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    I am on a unix server and running ver 1.37 I haven't changed anything nor has my host.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Data base optomise

    It's probably because you're using a '-' in your database name. Anything other than numbers, letters, and underscore are fringe characters in a database name and should be avoided. Even the mysql documentation suggests similarly. The installer doesn't let you use those characters anymore, for this reason.

    You might try changing your DB_DATABASE setting to use backquotes around the database name in your admin configure.php file, ie:

    Code:
    define('DB_DATABASE', '`rochesterlaw_org_-_cat1`');
    I'd recommend changing things to not use the hyphen though, if at all possible.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2005
    Location
    Rochester, New York
    Posts
    165
    Plugin Contributions
    0

    Default Re: Error trying to use Data base optomise

    Unfortunately the sserver automatically puts that in. I only wanted cat1. I tried the back quotes, I assume it is the one next the the number 1 on the keyboard. That did not work. It tells me on the page, can't connect to the database.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Error trying to use Data base optomise

    Then you'll have to use phpMyAdmin to optimize your tables if you believe that is necessary.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v139g Cannot use the Sql install patch or import direct to data base
    By michelleodin in forum General Questions
    Replies: 1
    Last Post: 5 Jul 2014, 12:27 AM
  2. data base contention error???
    By mumzie in forum Bug Reports
    Replies: 0
    Last Post: 3 Apr 2007, 12:10 AM
  3. Data Base error HELP!
    By shannda in forum General Questions
    Replies: 11
    Last Post: 28 Dec 2006, 04:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg