<div dir="ltr">On Tue, Aug 5, 2008 at 5:44 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;">
<div class="Ih2E3d">On Mon, Aug 4, 2008 at 12:56 PM, Andrew Gould &lt;<a href="mailto:andrewlylegould@gmail.com">andrewlylegould@gmail.com</a>&gt; wrote:<br>
&gt; On Mon, Aug 4, 2008 at 11:42 AM, David A. Bandel &lt;<a href="mailto:david.bandel@gmail.com">david.bandel@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Folks,<br>
&gt;&gt;<br>
&gt;&gt; Hope someone here knows the POS mysql well enough to help.<br>
&gt;&gt;<br>
&gt;&gt; A client has some databases. &nbsp;These can be accessed from the command<br>
&gt;&gt; line. &nbsp;But connecting w/ phpmyadmin shows only a couple of the<br>
&gt;&gt; databases. &nbsp;This must be a privileges problem, but I don&#39;t know enough<br>
&gt;&gt; about mysql to solve it.<br>
&gt;&gt;<br>
&gt;&gt; Any suggestions welcome (short of dumping all the databases and<br>
&gt;&gt; importing them to postgresql -- that&#39;s my next step).<br>
&gt;&gt;<br>
&gt;&gt; TIA,<br>
&gt;&gt;<br>
&gt;&gt; David A. Bandel<br>
&gt;<br>
&gt; You&#39;re &quot;next step&quot; doesn&#39;t sound so bad to me. &nbsp; ;-)<br>
&gt;<br>
&gt; As for MySQL, it&#39;s been awhile, but.....<br>
&gt;<br>
&gt; Can you determine the username used by phpmysqladmin? &nbsp;The username used to<br>
&gt; be stored as plain text in one of the phpmysqladmin configuration files.<br>
&gt; Once you have the name, you can adjust it&#39;s access rights.<br>
<br>
</div>www-data@localhost<br>
<br>
granted permissions on one database via:<br>
&nbsp;grant all on dbname.* to &#39;www-data&#39;@&#39;localhost&#39;;<br>
<br>
query OK, no rows affected. &nbsp;However, still don&#39;t see that database.<br>
<br>
I just can&#39;t seem to wrap my head around how php and phpmyadmin decide<br>
which databases will show up in the list of databases. &nbsp;I still only<br>
see 2 of 68.<br>
<div class="Ih2E3d"><br>
&gt;<br>
&gt; As I recall, you can adjust access rights using the GRANT SQL statement or<br>
&gt; by updating the administrative tables in the database named mysql. &nbsp;If you<br>
&gt; connect to the mysql database, a &quot;show tables&quot; command at the interactive<br>
&gt; prompt should be helpful in finding the correct administrative table.<br>
&gt;<br>
&gt; There is also a &quot;show databases&quot; command; but I assume you already know the<br>
&gt; name of the database since you can see it from the command line.<br>
&gt;<br>
&gt; The MySQL version of GRANT allows for the use of wildcards. &nbsp;You can find<br>
&gt; examples here:<br>
&gt; <a href="http://dev.mysql.com/doc/refman/6.0/en/grant.html" target="_blank">http://dev.mysql.com/doc/refman/6.0/en/grant.html</a><br>
&gt;<br>
&gt; Note that for database and table names, you can use the wildcard &quot;*&quot;; but to<br>
&gt; grant access to a user from any host, the &quot;%&quot; is used. &nbsp;For example, to let<br>
&gt; &#39;somebody&#39; do anything/everything to any database/table from anywhere, the<br>
&gt; root database user could execute:<br>
&gt;<br>
&gt; grant all on *.* to &#39;somebody&#39;@&#39;%&#39;;<br>
&gt;<br>
&gt; (NOT that I&#39;m advocating such a policy!)<br>
<br>
</div>why not? &nbsp;these idiots still have root w/ no password as the administrator.<br>
<br>
That&#39;s when all this fun started. &nbsp;I found them being used as a<br>
phishing site (thanx to PHP and their configuration w/ safe_mode =<br>
off).<br>
<br>
<br>
Ciao,<br>
<div><div></div><div class="Wj3C7c"><br>
David A. Bandel<br>
</div></div></blockquote><div><br><br>I wonder if there&#39;s a configuration option to identify viewable databases, aside from permissions.<br></div></div><br>Andrew<br></div>