We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description bin/mysql < ../../Downloads/dump.sql
ERROR 1227 (42000) at line 1566: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
Steps To Reproduce 1.bin/mysql < ../../Downloads/dump.sql
Expected Result Database has imported
Actual Result Got permission error
The text was updated successfully, but these errors were encountered:
Normally, importing database should not use root privileges.
It need to remove DEFINER from your export sql file.
DEFINER
ref: https://stackoverflow.com/questions/9446783/remove-definer-clause-from-mysql-dumps
cat dump.sql | sed -e 's/DEFINER[ ]*=[ ]*[^*]*\*/\*/' > dump_backup.sql # and them import again bin/mysql < ../../Downloads/dump_backup.sql
Other option to root privileges
bin/clinotty mysql -hdb -u root -pmagento magento < ../../Downloads/dump_backup.sql
Good Luck
Sorry, something went wrong.
@rangerz Thanks This solved my issue
No branches or pull requests
Description
bin/mysql < ../../Downloads/dump.sql
ERROR 1227 (42000) at line 1566: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
![Снимок экрана 2021-03-30 в 09 26 20](https://user-images.githubusercontent.com/2422927/112943653-6e530f80-913a-11eb-885e-96793fb63928.png)
Steps To Reproduce
1.bin/mysql < ../../Downloads/dump.sql
Expected Result
Database has imported
Actual Result
Got permission error
The text was updated successfully, but these errors were encountered: