Some useful php scripts
https://github.com/lornajane/PHP-Web-Services
I hope it helped. Feel free to comment...
https://github.com/lornajane/PHP-Web-Services
I hope it helped. Feel free to comment...
mysql -u mysql_user -p dabase_name < /path/import_file_name.sqlIt will ask for the password, enter the mysql password and your sql script will be executed.
mysqldump -h localhost -u mysql_user -pMysql_password database_name | gzip > /path/export_file_name_$(date +%m-%d-%Y).sql.gz$(date +%m-%d-%Y) is optional. It inserts today's date in the file name. You can also use this export command without $(date +%m-%d-%Y)
mysqldump -h localhost -u mysql_user -pMysql_password database_name | gzip > /path/export_file_name_$(date +%m-%d-%Y).sql.gz
gzip -d file.sql.gz