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

Error when creating db user (and workaround) #249

Open
HexaFobia opened this issue Jan 20, 2023 · 0 comments
Open

Error when creating db user (and workaround) #249

HexaFobia opened this issue Jan 20, 2023 · 0 comments

Comments

@HexaFobia
Copy link

I added a website with sudo lamp add, I entered y for create db and user with same name, then I entered my sql root passwd and the name and password for the new db and user. Before printing db and user created successfully, it printed this error:

ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY 'websitePasswordsqlTheQuickBrownFox3569'' at line 1

I found the lines that create the error are located in /bin/lamp starting with line 224

I got around this error by creating 2 users for the db in phpmyadmin. One with localhost and the other with 127.0.0.1 both with same passwords, same usernames and default values for the rest (including all privileges on {dbname} )

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

1 participant