- 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://ubuntuhandbook.org/index.php/2022/01/default-torrent-app-magnet-links-ubuntu/ Set “QBittorrent” as default app for magnet link,...
-
cf: https://www.tenforums.com/tutorials/101274-uninstall-printer-driver-windows-10-a.html Open cmd in administer mode Run printmanagement...
-
cf: https://stackoverflow.com/questions/54184707/warning-continue-targeting-switch-is-equivalent-to-break-did-you-mean-to-u Error while...
沒有留言:
張貼留言