mysql - How do i do a Heroku Jawsdb InnoDB database restore? -


i hobbyist.

basically i'm playing heroku app-->php--> wordpress multisite-->jawsdb innodb/mysql.

i didn't realise free database limit 5mb. (yes know, i've upgraded plan already, late now.) sort of pushed limits, after while, couldn't append new tables or add new information. next thing knew, database crashed.

and have nice generic "error establishing database connection".

luckily using autobus automatically keep backup of database, managed download xyz.sql file.

but question how should restore database file? i.e upload local sql file sql server?

i able connect via heidisql, have change line line...

is there proper way this? i'm getting quite desperate already...

i've tried $mysql -u -p -h database < file doesnt seem work...

i know should've learnt more computer science before trying this... great.

sorry noob question above.

ok command

$mysql -h [host]-p [port] -u [username] -p[password] [table] < [file of dump].sql

yes, worked, -p , [password] column cannot have space.

also when working on heroku, have flush redis cache... can follow below link.

how wipe heroku redis?


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -