[MDEV-22067] Pivot throws 'Access denied for user' Created: 2020-03-28 Updated: 2020-05-30 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Create Table, Storage Engine - Connect |
| Affects Version/s: | 10.4.10 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Radim Machů | Assignee: | Olivier Bertrand |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | connect-engine | ||
| Environment: |
Windows 10 Professional 64 bit |
||
| Description |
|
I am not able to run:
The query returns an error:
, while root is still connected. If I run the query from the command line, the same error reveals. |
| Comments |
| Comment by Radim Machů [ 2020-03-28 ] | |||||||||||
|
I checked logfile to see what is going on. While the connection is set as user root and
I have found the following records in logfile:
Since I found a topic discussing "Connect ...@localhost as anonymous" at | |||||||||||
| Comment by RHOPKINS13 [ 2020-05-27 ] | |||||||||||
|
I'm running into the same error, trying to create a pivot table on MariaDB 10.5.3 on Debian Stretch. | |||||||||||
| Comment by RHOPKINS13 [ 2020-05-29 ] | |||||||||||
|
I was able to get around the error by specifying a username and password in the option_list, but then I ran into another error about not being able to find matching columns. I got past that error by using a query in Srcdef, but then I had issues getting the pivot to group the way I wanted it to. I finally had to resort to not using the CONNECT Pivot table at all, and doing the pivot inside of a stored procedure instead. But I found it interesting that I could not get past this Access denied error. I had a password enabled for root@localhost, but after reading more about this problem switched to using unix socket. I can login from the shell prompt without using a password, and can access the table I need fine, but I still couldn't get the CONNECT engine to work without specifying a user with a password. | |||||||||||
| Comment by Olivier Bertrand [ 2020-05-30 ] | |||||||||||
|
About "Access denied":
About your other errors: To investigate I need you to provide the source table and the description of the desired pivot table so I can try to reproduce and see what error you get. |