<div dir="ltr">On Mon, Aug 4, 2008 at 11:42 AM, David A. Bandel <span dir="ltr">&lt;<a href="mailto:david.bandel@gmail.com">david.bandel@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Folks,<br>
<br>
Hope someone here knows the POS mysql well enough to help.<br>
<br>
A client has some databases. &nbsp;These can be accessed from the command<br>
line. &nbsp;But connecting w/ phpmyadmin shows only a couple of the<br>
databases. &nbsp;This must be a privileges problem, but I don&#39;t know enough<br>
about mysql to solve it.<br>
<br>
Any suggestions welcome (short of dumping all the databases and<br>
importing them to postgresql -- that&#39;s my next step).<br>
<br>
TIA,<br>
<br>
David A. Bandel<br>
</blockquote></div><br>You&#39;re &quot;next step&quot; doesn&#39;t sound so bad to me.&nbsp;&nbsp; ;-)<br><br>As for MySQL, it&#39;s been awhile, but.....<br><br>Can you determine the username used by phpmysqladmin?&nbsp; The username used to be stored as plain text in one of the phpmysqladmin configuration files.&nbsp; Once you have the name, you can adjust it&#39;s access rights.<br>
<br>As I recall, you can adjust access rights using the GRANT SQL statement or by updating the administrative tables in the database named mysql.&nbsp; If you connect to the mysql database, a &quot;show tables&quot; command at the interactive prompt should be helpful in finding the correct administrative table.<br>
<br>There is also a &quot;show databases&quot; command; but I assume you already know the name of the database since you can see it from the command line.<br><br>The MySQL version of GRANT allows for the use of wildcards.&nbsp; You can find examples here:<br>
<a href="http://dev.mysql.com/doc/refman/6.0/en/grant.html">http://dev.mysql.com/doc/refman/6.0/en/grant.html</a><br><br>Note that for database and table names, you can use the wildcard &quot;*&quot;; but to grant access to a user from any host, the &quot;%&quot; is used.&nbsp; For example, to let &#39;somebody&#39; do anything/everything to any database/table from anywhere, the root database user could execute:<br>
<br>grant all on *.* to &#39;somebody&#39;@&#39;%&#39;;<br><br>(NOT that I&#39;m advocating such a policy!)<br><br>Good luck and have fun!<br><br>Andrew Gould<br><br></div>