You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE OR REPLACEVIEWv_usersASSELECTu.uid,u.name, g.field_profile_gender_valueas'gender'FROM users u
LEFT JOIN profile p ONu.uid=p.uidLEFT JOIN field_data_field_profile_gender g ONp.pid=g.entity_id
I created an SQL Dump using drush sql-dump | bzip2 > dbname_yymmdd.sql.bz2.
When I try to restore the DB from this Dump I get:
ERROR 1227 (42000) at line 32330: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
If I delete this view and do a new Dump it works normally.
P.S. I try to restore the Dump using either of these commands:
#restore from an archive
bunzip2 < dbname_yymmdd.sql.bz2 |`drush sql-connect`#restore from sql dump
drush sql-cli < dbname_yymmdd.sql
The text was updated successfully, but these errors were encountered:
This is not a Drush issue. The access denied error is being forwarded to you from your mysql server. If you want to import without deleting the view, then you must do as the error message said, and grant additional privileges to the mysql user being used during the import.
I created MySQL view in my database.
I created an SQL Dump using
drush sql-dump | bzip2 > dbname_yymmdd.sql.bz2
.When I try to restore the DB from this Dump I get:
ERROR 1227 (42000) at line 32330: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
If I delete this view and do a new Dump it works normally.
P.S. I try to restore the Dump using either of these commands:
The text was updated successfully, but these errors were encountered: