Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2007
    Posts
    63
    Plugin Contributions
    0

    database error weird error in Optimize Database

    Hi,

    When I want to Optimize Database my database through admincp to remove wasted space from deleted records.

    After I click on confirm i get the following;

    1044 Access denied for user 'v-mus'@'%' to database 'v'
    in:
    [SHOW TABLE STATUS FROM v-mus]
    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.


    what should I do?

    Thanks

    Saman-

  2. #2
    Join Date
    Feb 2007
    Posts
    63
    Plugin Contributions
    0

    Default Re: weird error in Optimize Database

    come on guys, please anyone?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: weird error in Optimize Database

    Quote Originally Posted by saman View Post
    1044 Access denied for user 'v-mus'@'%' to database 'v'
    in:
    [SHOW TABLE STATUS FROM v-mus]
    a. "1044 Access denied" ... means ... access was denied
    b. "user 'v-mus'@'%' " -- refers to the database user account named v-mus from any server addresses (the % is a wildcard)
    c. "database 'v' " -- this is the database it was trying to access
    d. SHOW TABLE STATUS FROM v-mus --- this is the SQL query it was trying to run.

    Thus, according to the error, it means your v-mus user account doesn't have permission go run the SHOW TABLE STATUS query, which is used by the store_manager script to get a list of all tables to optimize.

    So, you can either fix your permissions problem (talk to your host if you're uncertain how), or don't use the script.

    Were you intending to run the optimize script because you know exactly what you're doing with it? or did you just see it in the list and figure you'd try it out?
    There are other ways to do table optimization, such as via phpMyAdmin.
    .

    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.

  4. #4
    Join Date
    Feb 2007
    Posts
    63
    Plugin Contributions
    0

    Default Re: weird error in Optimize Database

    Quote Originally Posted by DrByte View Post

    Were you intending to run the optimize script because you know exactly what you're doing with it? or did you just see it in the list and figure you'd try it out?
    There are other ways to do table optimization, such as via phpMyAdmin.
    Thanks for the reply. Once in a while I do that to cleanup...
    My database is performing a little slow so i Thought I should cleanup some maybe it helps...

    How should I cleanup/check if there are some tables which should be cleanedup to improve the speed etc.

    I know that it could be a server issue but I also want to try if its anything else

    Thanks

  5. #5
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: weird error in Optimize Database

    When I want to Optimize Database my database through admincp to remove wasted space from deleted records.
    Define "admincp". Is is phpMyAdmin, your Control Panel (i.e. cPanel), or some other panel?

    Both phpMyAdmin & cPanel give the option to Optimize / Repair databases but the correct Username must always be used.

  6. #6
    Join Date
    Feb 2007
    Posts
    63
    Plugin Contributions
    0

    Default Re: weird error in Optimize Database

    Quote Originally Posted by Website Rob View Post
    Define "admincp". Is is phpMyAdmin, your Control Panel (i.e. cPanel), or some other panel?

    Both phpMyAdmin & cPanel give the option to Optimize / Repair databases but the correct Username must always be used.
    its phpmyadmin

    what is the best way to that through phpmyadmin?

    thanks

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: weird error in Optimize Database

    To do it via phpMyAdmin, you click on one table at a time. Click the Operations tab. Choose the Optimize Table option, and Go. Repeat for each table.
    .

    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.

  8. #8
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: weird error in Optimize Database

    Would it not be faster in phpMyAdmin, to use the Select All link (for all Tables) then choose Optimize or Repair from the drop-down list near the page bottom?

    That method usually works well for me.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: weird error in Optimize Database

    Quote Originally Posted by Website Rob View Post
    Would it not be faster in phpMyAdmin, to use the Select All link (for all Tables) then choose Optimize or Repair from the drop-down list near the page bottom?

    That method usually works well for me.
    If you have that option, then yes, that would be less laborious.
    .

    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.

  10. #10
    Join Date
    Mar 2009
    Posts
    58
    Plugin Contributions
    0

    Default Re: weird error in Optimize Database

    For anyone wondering how to do this.

    - Backup your Database via Cpanel>phpMyAdmin
    - "Click on the database you are working with on the left hand side frame (not the table, the database name)
    On the right hand column your tables should be listed. Scroll down till you see the “Check all” link.
    Click on that link, make sure all database tables are checked and then from the dropdown next to it, carefully select “Optimize table”.

 

 

Similar Threads

  1. v155 optimize database
    By mespe in forum General Questions
    Replies: 1
    Last Post: 21 Jul 2016, 10:35 PM
  2. Admin Optimize Database issue
    By wiccan0974 in forum General Questions
    Replies: 3
    Last Post: 1 Nov 2011, 12:01 AM
  3. Optimize Database ....any risk?
    By split63 in forum General Questions
    Replies: 3
    Last Post: 8 Sep 2010, 03:38 AM
  4. Housekeeping - Optimize Database - 1064 SQL error
    By wiccan0974 in forum General Questions
    Replies: 2
    Last Post: 7 Jul 2009, 03:07 AM
  5. [Done v1.3.9] Optimize Database error
    By JunWeiStore in forum Bug Reports
    Replies: 1
    Last Post: 7 Jul 2009, 03:06 AM

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