2
0
Эх сурвалжийг харах

Add info to README on how to run MySQL as root #501

Mark Shust 3 жил өмнө
parent
commit
de2e38db62
1 өөрчлөгдсөн 9 нэмэгдсэн , 0 устгасан
  1. 9 0
      README.md

+ 9 - 0
README.md

@@ -314,6 +314,15 @@ You also can use `bin/mysqldump` to export the database. The file will appear in
 bin/mysqldump > backups/magento.sql
 ```
 
+> Getting an "Access denied, you need (at least one of) the SUPER privilege(s) for this operation." message when running one of the above lines? Try running it as root with:
+> ```
+> bin/clinotty mysql -hdb -uroot -pmagento magento < src/backup.sql
+> ```
+> You can also remove the DEFINER lines from the MySQL backu pfile with:
+> ```
+> sed 's/\sDEFINER=`[^`]*`@`[^`]*`//g' -i src/backup.sql
+> ```
+
 ### Composer Authentication
 
 First setup Magento Marketplace authentication (details in the [DevDocs](http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html)).