prestati Posted July 26, 2015 Share Posted July 26, 2015 Hi, After an update of prestashop -> 1.6.0.9 the categories pages don't display any products when the module blocklayered is activated. In debug mode I have the following message : PrestaShopDatabaseExceptionAccess denied for user '...'@'localalhost' to database '...' CREATE TEMPORARY TABLE bs_cat_restriction ENGINE=MEMORY SELECT DISTINCT cp.id_product, p.id_manufacturer, product_shop.condition, p.weight FROM bs_category_product cp INNER JOIN bs_category c ON (c.id_category = cp.id_category AND c.nleft >= 4 AND c.nright <= 5 AND c.active = 1) INNER JOIN bs_product_shop product_shop ON (product_shop.id_product = cp.id_product AND product_shop.id_shop = 1) INNER JOIN bs_product p ON (p.id_product=cp.id_product) WHERE product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog") In home page, I can see my products and go on details page... Link to comment Share on other sites More sharing options...
tomerg3 Posted July 27, 2015 Share Posted July 27, 2015 Go to your hosting Cpanel-> Manage database, and make sure that the DB user has full permissions for the DB Link to comment Share on other sites More sharing options...
prestati Posted July 27, 2015 Author Share Posted July 27, 2015 I have the correct DB password and have the following permissions SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER. The access to data base works correctly in home page but my problem is related to writing of a tempory table in memory. Does it miss a permission for that ? Link to comment Share on other sites More sharing options...
tomerg3 Posted July 27, 2015 Share Posted July 27, 2015 See a similar issue at http://stackoverflow.com/questions/8105735/access-denied-in-mysql-even-though-grants-looks-right You should have create temporary tables permissions too (may as well enable all) Link to comment Share on other sites More sharing options...
prestati Posted July 27, 2015 Author Share Posted July 27, 2015 I activated all privileges and now it works fine. Thanks for your help. Link to comment Share on other sites More sharing options...
desonet Posted December 11, 2015 Share Posted December 11, 2015 I'm having a similar problem and appears as below. May I know where exactly you went to activate all previleges? [PrestaShopDatabaseException]Access denied for user 'cl33-realhair'@'%' to database 'cl33-realhair' CREATE TEMPORARY TABLE `ps_product_reductions` (id_product INT UNSIGNED NOT NULL DEFAULT 0, id_product_attribute INT UNSIGNED NOT NULL DEFAULT 0) ENGINE=MEMORYat line 791 in file classes/db/Db.php 786. if ($webservice_call && $errno) {787. $dbg = debug_backtrace();788. WebserviceRequest::getInstance()->setError(500, ' '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {790. if ($sql) {791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');792. }793.794. throw new PrestaShopDatabaseException($this->getMsgError());795. }796. } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now