<div dir="ltr">Sure sir,<div style>I have sent a pull request regarding this</div><div style><a href="https://github.com/phpmyadmin/phpmyadmin/pull/395">https://github.com/phpmyadmin/phpmyadmin/pull/395</a><br></div><div style>
<br></div><div style>Please have a look at it.</div><div style>Thank you</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 16, 2013 at 6:02 PM, Marc Delisle <span dir="ltr"><<a href="mailto:marc@infomarc.info" target="_blank">marc@infomarc.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">ayush choubey a écrit :<br>
> On Thu, May 16, 2013 at 4:09 PM, Marc Delisle <<a href="mailto:marc@infomarc.info">marc@infomarc.info</a>> wrote:<br>
><br>
>> Le 2013-05-14 20:12, ayush choubey a écrit :<br>
>>><br>
>>><br>
>>> On Wed, May 15, 2013 at 4:37 AM, Marc Delisle <<a href="mailto:marc@infomarc.info">marc@infomarc.info</a><br>
>>> <mailto:<a href="mailto:marc@infomarc.info">marc@infomarc.info</a>>> wrote:<br>
>>><br>
>>>     Le 2013-05-13 19:24, ayush choubey a écrit :<br>
>>>      > There were a couple of things that i wanted to know<br>
>>>      ><br>
>>>      > 1) I was going through the this feature request<br>
>>>      > <a href="https://sourceforge.net/p/phpmyadmin/feature-requests/1387/" target="_blank">https://sourceforge.net/p/phpmyadmin/feature-requests/1387/</a><br>
>>>      ><br>
>>>      > and i too wasn't able to figure out how to change database name.<br>
>> Has<br>
>>>      > that feature been implemented<br>
>>><br>
>>>     Click on the database, then Operations. You'll find a dialog to<br>
>> rename<br>
>>>     the database.<br>
>>><br>
>>> Well, i was thinking of adding a "export as" feature there for this<br>
>>> Feature request<br>
>>> that will take a name and thus generated sql file will have that<br>
>>> exported database name.<br>
>>> But i guess renaming it is better option.<br>
>>><br>
>>><br>
>>>      ><br>
>>>      > 2) while exporting the database there is no create database sql<br>
>>>     statement<br>
>>>      ><br>
>>>      > for example :<br>
>>>      ><br>
>>>      > there is a db called test with certain number of tables. I<br>
>>>     selected the<br>
>>>      > database, clicked on export, clicked custom and exported it.<br>
>>>      ><br>
>>>      > However only the tables were exported. There were no create<br>
>> statement<br>
>>>      ><br>
>>>      > Shouldn't the entire database be exported with create database<br>
>>>      > statement? Is this a bug or was this not implemented intentionally<br>
>>><br>
>>>     I guess nobody ever felt the need for this. The CREATE DATABASE<br>
>>>     statement is generated when you export at the server level.<br>
>>><br>
>>><br>
>>> We have hierarchy in this fashion<br>
>>> Server->Database->tables<br>
>>><br>
>>> Now when we have to export a table, we click on export and we expect<br>
>>> that there will<br>
>>> be a CREATE TABLE statement and INSERT statement<br>
>>><br>
>>> But when we have to export a server there are just CREATE TABLE<br>
>>> statements and<br>
>>> INSERT STATEMENTS.<br>
>> You probably meant "when we have to export a database" ?<br>
>><br>
> Oh, yeah, sorry, i meant Database, by mistake i wrote it as server.<br>
<br>
</div></div>You could add a CREATE DATABASE IF NOT EXISTS statement when exporting<br>
at the database level.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
>>> So, in case the user wants to export a DB named test and his target<br>
>>> machine has no test.<br>
>>> In this case he would like sql file to have CREATE DATABASE test<br>
>>> followed by tables<br>
>>><br>
>>> To achieve this he will have to go to :<br>
>>><br>
>>> server level -> click on export->select custom->select test-> export->Go<br>
>>><br>
>>> If we add one CREATE DATABASE IF NOT EXISTS at database export level,<br>
>> then<br>
>>> his steps would be<br>
>>> Select test->export->Go<br>
>>>  From the user point of view, i guess, this will be much<br>
>>> more preferred as it has less number<br>
>>> of steps.<br>
>> --<br>
>> Marc Delisle<br>
>> <a href="http://infomarc.info" target="_blank">http://infomarc.info</a><br>
<br>
<br>
--<br>
Marc Delisle<br>
<a href="http://infomarc.info" target="_blank">http://infomarc.info</a><br>
<br>
------------------------------------------------------------------------------<br>
AlienVault Unified Security Management (USM) platform delivers complete<br>
security visibility with the essential security capabilities. Easily and<br>
efficiently configure, manage, and operate all of your security controls<br>
from a single console and one unified framework. Download a free trial.<br>
<a href="http://p.sf.net/sfu/alienvault_d2d" target="_blank">http://p.sf.net/sfu/alienvault_d2d</a><br>
_______________________________________________<br>
Phpmyadmin-devel mailing list<br>
<a href="mailto:Phpmyadmin-devel@lists.sourceforge.net">Phpmyadmin-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel</a><br>
</div></div></blockquote></div><br></div>