As to the access denied docs, I think everything checks out OK (from the command line.)
What I'm suggesting is that there is a difference between doing it from
the command line and from the Perl commands within WeBWorK, so that the
test from the command line are not testing the same thing as WW is
using.
I can enter mysql with the basic host (localhost) and user names (root, webworkRead, webworkWrite) without appending @localhost
It should default to localhost, so you shouldn't need to specify
anything to get that, but you WOULD in order to get something OTHER
than localhost. It might be interesting to try mysql -u webworkWrite -h your-host-name -p and see if you can get in.
There's one minor difference from the documnetation, that I need to
include -p in, e.g, mysql -u root -p test, to access the test database.
Yes, that is normal. I don't know why they don't include it in their examples.
I can't get mysql to take the command "select host.user from mysql.user;"
OOPS, there was a typo. It should be host,user not host.user (comma, not dot). Sorry about that.
What I see in the user table includes webworkRead, webworkWrite, root, localhost, and my machine's name.
Here's what I see for my server from select host,user from user; :
+----------------------+--------------+ | host | user | +----------------------+--------------+ | localhost | root | | localhost | webworkRead | | localhost | webworkWrite | | omega.math.union.edu | root | | omega.math.union.edu | webworkRead | | omega.math.union.edu | webworkWrite | +----------------------+--------------+
(I have removed lines that don't relate to WW). On closer
inspection, however, the ones from omega.math.union.edu don't have any
privileges activated, so they probably aren't doing any good. (You can
use select * from user; to get the privileges as well, but it is a very wide list.)
On the other hand, table host seems to be empty. Perphaps it shouldn't be?
Mine is empty, too.
I still think it sounds like a host name problem and that the server is
refusing the connection for some reason. The user comments at the
bottom of the documentation page have some things to say about that.
Davide
<| Post or View Comments |>
|