Changes between Version 3 and Version 4 of copy_mysql
- Timestamp:
- Jun 25, 2012, 5:03:44 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
copy_mysql
v3 v4 32 32 mysqldump name-of-source-database > name-of-source-database.sql 33 33 }}} 34 If you get an error like "{{{Access denied for user 'DBUSER'@'localhost' (using password: NO) when trying to connect}}}", you may need to create a `~/.my.cnf` file. On Mayfirst servers, for many web apps, you may be able to automatically create one using the command `mf-generate-my-cnf`. If that does no work, you can create one manually. The format is simple. In a text file in your home directory called .my.cnf place something like: 35 {{{ 36 [client] 37 username = DBUSERNAME 38 password = DBPASSWORD 39 [mysql] 40 database = DBNAME 41 }}} 42 You will want to make sure it's only readable by your user: 43 {{{ 44 chmod 600 .my.cnf 45 }}} 46 34 47 * [wiki:sftp Secure FTP] into the source site server and download the file name-of-source-database.sql to your computer 35 48 * [wiki:sftp Secure FTP] into the target site server and upload the file