mysql -uroot -p`cat /usr/local/ispmgr/etc/ispmgr.conf | grep Password | awk '{print $2}' | head -n1`
А дампить вот так:
mysqldump -uroot -p`cat /usr/local/ispmgr/etc/ispmgr.conf | grep Password | awk '{print $2}' | head -n1` db_name > /root/dump.sql
А импортировать так:
mysql -uroot -p`cat /usr/local/ispmgr/etc/ispmgr.conf | grep Password | awk '{print $2}' | head -n1` -Ddb_name -e "source dump.sql"
No comments :
Post a Comment
Note: only a member of this blog may post a comment.