Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access denied for user 'freescout'@'localhost' #67

Closed
C0rn3j opened this issue Oct 15, 2018 · 2 comments
Closed

Access denied for user 'freescout'@'localhost' #67

C0rn3j opened this issue Oct 15, 2018 · 2 comments

Comments

@C0rn3j
Copy link

C0rn3j commented Oct 15, 2018

The install guide - https://github.com/freescout-helpdesk/freescout/wiki/Installation-Guide

has a step for creating the freescout mysql user.

GRANT ALL ON `freescout`.* TO `freescout`@`127.0.0.1` IDENTIFIED BY "XXX";

This gives access to freescout on 127.0.0.1 and NOT localhost at least on Ubuntu 18.04.

Issue can be verified by doing:

mysql -u freescout -p -h 127.0.0.1 # works
mysql -u freescout -p -h localhost # doesn't work

This is a problem for the php artisan migrate part.

root@freescout:/var/www/html# php artisan migrate
**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:
 > yes


In Connection.php line 664:
                                                                                                                                                                                                         
  SQLSTATE[HY000] [1045] Access denied for user 'freescout'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = freescout and table_name = migrations)  
                                                                                                                                                                                                         

In Connector.php line 67:
                                                                                               
  SQLSTATE[HY000] [1045] Access denied for user 'freescout'@'localhost' (using password: YES)  
                                                                                               
@freescout-helpdesk
Copy link
Contributor

Thanks for pointing this out. Try:

GRANT ALL PRIVILEGES ON `freescout`.* TO `freescout`@`localhost` IDENTIFIED BY "XXX";

@C0rn3j
Copy link
Author

C0rn3j commented Oct 15, 2018

@freescout-helpdesk Yeah that works just fine, I guess I should have added that to the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants