Your database login does not have the privileges to create table on the database "defaultdb".

November 18, 2019 600 views
Apache PHP Applications Databases

Another problem with Digitalocean DB cluster
When i’m trying to install Prestashop on new droplet Ubuntu 1.8.0.4 LTS, PHP 7.3, MySQl 8, i got this error during installation step test database connection

Your database login does not have the privileges to create table on the database "defaultdb".

That if i’m using doadmin user with defaultdb database

But if i’m using another DB user with another database then i got this error

Your database login does not have the privileges to create table on the database "ps17dev01". Ask your hosting provider:
Storage engine MyISAM is disabled (Table creation is disallowed).

Before i can doing this, i was altering the authentication method from to mysqlnativepassword because somehow if using the default authentication method which is cachingsha2password i can’t connect to my DB cluster via my Droplet.

How to fix this problem ?
How to Create New Database and associate specific user to the database from DB cluster Control Panel Tab Users & Databases ?

Why it’s so complicated to use Digitalocean MySQL DB cluster ?

1 Answer

Hello,

It looks like PrestaShop is failing to pick up the correct MySQL engine storage and is defaulting to MyISAM which is disabled on the managed MySQL cluster.

To fix that you could do the following:

Edit this file:

classes/db/DbPDO.php
  • Look for the following:
if ($engine === null) {
        $engine = 'MyISAM';
    }
  • And update it to:
if ($engine === null) {
        $engine = 'InnoDB';
    }

Hope that this helps!
Regards,
Bobby

  • Thanks for your reply.
    I’ve been doing that after posting this.
    Test database connection is ok but still no luck … the installation stop (error) on 12% of progress.
    see [https://ibb.co/2jMz9ZF]
    seems another incompatibility

    Also the additional user seems to be working after I reset the password from the More menu option under Users & Databases tab … however this is odd

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!