<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Tue, May 28, 2019 at 7:50 PM Stephen via talk <<a href="mailto:talk@gtalug.org">talk@gtalug.org</a>> wrote:<br></div></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Can anyone spot what is wrong?<br>
<br>
So I connect to the server with:<br>
stephen@Avalon:~$ mysql -u root -p<br>
Enter password:<br>
Welcome to the MySQL monitor.  Commands end with ; or \g.<br>
Your MySQL connection id is 11<br>
Server version: 5.7.26-0ubuntu0.18.04.1 (Ubuntu)<br>
<br>
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.<br>
<br>
Oracle is a registered trademark of Oracle Corporation and/or its<br>
affiliates. Other names may be trademarks of their respective<br>
owners.<br>
<br>
Type 'help;' or '\h' for help. Type '\c' to clear the current input <br>
statement.<br>
<br>
mysql><br>
===========================================<br>
I create grants<br>
mysql> grant all on rois3324_stephen.*  to <br>
"rois3324_stephen"@"localhost" with grant option;<br>
Query OK, 0 rows affected (0.00 sec)<br>
===========================================<br>
I try to see grants<br>
mysql> "rois3324_stephen"@"localhost"<br>
-><br>
<br>
It looks like no grants were created. And I get a confirming error from PHP.<br>
<br>
Can anyone see what is wrong?<br>
<br>
Thank you!<br>
-- <br>
Stephen<br>
---<br>
Talk Mailing List<br>
<a href="mailto:talk@gtalug.org" target="_blank">talk@gtalug.org</a><br>
<a href="https://gtalug.org/mailman/listinfo/talk" rel="noreferrer" target="_blank">https://gtalug.org/mailman/listinfo/talk</a><br></blockquote><div><br></div><div><div>Hey Stephen, you are running mysql 5.7, so I'm going to link some 
docs and walk through what I'd do in this situation.  I apologize if you
 know this stuff, or have already tried any of it as I'm operating off 
the set of information you've provided. :)</div><div><br></div><div>First off, I'd run <br>SHOW GRANTS FOR  "rois3324_stephen"@"localhost"; </div><div>to ensure that the grants you want match the grants it displays.  <br><a href="https://dev.mysql.com/doc/refman/5.7/en/show-grants.html">https://dev.mysql.com/doc/refman/5.7/en/show-grants.html</a></div><div><br></div><div>Second, I'd run<br></div><div>SHOW CREATE USER  "rois3324_stephen"@"localhost"\G</div><div>to further make sure that things look as they should.</div><div><a href="https://dev.mysql.com/doc/refman/5.7/en/show-create-user.html">https://dev.mysql.com/doc/refman/5.7/en/show-create-user.html</a></div><div><br></div><div>Next up is to run FLUSH PRIVILEGES;</div><div>To ensure that what you've just written to disk is loaded into a freshly cleared cache.<br></div><div><a href="https://dev.mysql.com/doc/refman/5.7/en/flush.html#flush-privileges">https://dev.mysql.com/doc/refman/5.7/en/flush.html#flush-privileges</a><br></div><div><br></div><div>I'm
 unsure of how GRANT works if CREATE USER hasn't already been executed, 
but to me, this appears to be a possible case. The above steps should 
hopefully reveal any discrepancies.  It's also worth remembering that 
'localhost' and 127.0.0.1 are not necessarily treated identically, 
depending on your mysql configuration and /etc/hosts files.<br><a href="https://dev.mysql.com/doc/refman/5.7/en/grant.html">https://dev.mysql.com/doc/refman/5.7/en/grant.html</a><br><a href="https://stackoverflow.com/questions/19712307/mysql-localhost-127-0-0-1">https://stackoverflow.com/questions/19712307/mysql-localhost-127-0-0-1</a><br><br></div><div>If
 you can sanitize the output from the above commands so they don't 
contain personal information and send them along, we can help 
troubleshoot further, but this is where I'd get started.</div><div>-jason</div> </div></div></div>