- Create ~/.my.cnf, add these lines:
[mysqldump]
user=student
password=student
chmod 0600 ~/.my.cnf - Inside phpmyadmin, set 'Select' and 'LOCK TABLES' permission to database 'drupal' for 'student' as the following image:
- Then, dump drupal with the command without username and password:
mysqldump drupal > kpchiao9600k_drupal.sql
or
mysqldump -B drupal > kpchiao9600k_drupal.sql
The -B option will add the create database and use datatebase lines into dump file as:
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `drupal` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `drupal`;
2020年2月27日 星期四
setup permission for mysqldump
訂閱:
張貼留言 (Atom)
-
cf: https://www.tenforums.com/tutorials/101274-uninstall-printer-driver-windows-10-a.html Open cmd in administer mode Run printmanagement...
-
cf: https://forums.raspberrypi.com/viewtopic.php?t=278033 For linux: First run the command: route -n It will show the metrics of the i...
-
cf: https://askubuntu.com/questions/1276111/error-upgrading-grub-efi-amd64-signed-special-device-old-ssd-does-not-exist sudo mv /var/cache...
沒有留言:
張貼留言