2014-11-02 15:38 GMT+01:00 Élodie de FranceServ Hébergement <admin@franceserv.fr>:
Greetings,

I don't know if i'm inside the good list to post my request, but i would
like that a developer add a new parameter inside the configuration. I
explain you my reason why this option could help me :

We have for the moment the option : $cfg['ShowCreateDb']

I have set false to this option inside my configuration because my users
don't have the privilege to create new database (they need to use my
panel admin instead).

But inside PhpMyAdmin, they can find inside the Operation page, a window
to rename a database. The option $cfg['ShowCreateDb'] don't apply to
this (and it's correct).

But as they don't have the right inside the privilege of MySQL to create
one, i would like hide this window too.

For the moment, i have modified the file : db_operations.php
with adding a // in front of
$response->addHTML(PMA_getHtmlForRenameDatabase($db));

But inside the function PMA_getHtmlForCopyDatabase($db) (inside
/libraries/operations.lib.php), they can create a database with the
checkbox called "checkbox_create_database_before_copying" and it's a
little more to hide it on my side ...

So, I would like have an option called $cfg['AllowCreateDb'] (true by
default) to hide their part automaticaly without editing the source code
:) I don't know if we have a way to create a database somewhere else
with PhpMyAdmin but it's a begining.

What do you think about it please ?
Someone could implement it more later ?

Thanks so much in advance,
Élodie

Hi Élodie,

I think that you should create a feature request here [1].

But firstly, to improve your comment into the request, I've a question please.
If you set the config variable "AllowCreateDb" to false, how would you (as an administrator) be able to create the database? Do you want to create it manually by MySQL command line? Will you set the config to true just to create the database and then set it back to false?
I think that something is missing in your scenario.

Have a good day,

[1] https://sourceforge.net/p/phpmyadmin/feature-requests/

Hugues.