- 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,...
-
Download 7z-exe: https://www.7-zip.org/ Get into cmd window cd Z:\Classes\109year\Semester2\Calculus\B\HW\HW7 md files "C:\Program Fi...
-
Setting up Google Drive with rclone config involves creating a "remote" connection through an interactive terminal wizard. S...
沒有留言:
張貼留言