<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 15, 2013 at 4:37 AM, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Le 2013-05-13 19:24, ayush choubey a écrit :<br>
<div>> 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. Has<br>
> that feature been implemented<br>
<br>
</div>Click on the database, then Operations. You'll find a dialog to rename<br>
the database.<br></blockquote><div> </div><div style>Well, i was thinking of adding a "export as" feature there for this Feature request </div><div style>that will take a name and thus generated sql file will have that exported database name.</div>
<div style>But i guess renaming it is better option. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div> <br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
><br>
> 2) while exporting the database there is no create database sql statement<br>
><br>
> for example :<br>
><br>
> there is a db called test with certain number of tables. I selected the<br>
> database, clicked on export, clicked custom and exported it.<br>
><br>
> However only the tables were exported. There were no create 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>
</div>I guess nobody ever felt the need for this. The CREATE DATABASE<br>
statement is generated when you export at the server level.<br></blockquote><div style><br></div><div style>We have hierarchy in this fashion<br></div><div style>Server->Database->tables</div><div style><br></div><div style>
Now when we have to export a table, we click on export and we expect that there will</div><div style>be a CREATE TABLE statement and INSERT statement</div><div style><br></div><div style>But when we have to export a server there are just CREATE TABLE statements and</div>
<div style>INSERT STATEMENTS. </div><div style><br></div><div style>So, in case the user wants to export a DB named test and his target machine has no test.</div><div style>In this case he would like sql file to have CREATE DATABASE test followed by tables</div>
<div style><br></div><div style>To achieve this he will have to go to :</div><div style><br></div><div style>server level -> click on export->select custom->select test-> export->Go<br></div><div style><br>
</div><div style>If we add one CREATE DATABASE IF NOT EXISTS at database export level, then </div><div style>his steps would be</div><div style>Select test->export->Go</div><div style>From the user point of view, i guess, this will be much more preferred as it has less number </div>
<div style>of steps.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<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" target="_blank">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>
</blockquote></div><br></div></div>