1
vote
1answer
345 views

Remote restore gz mysql database

I tried $> ssh root@ip "gunzip < [backupfile.sql.gz] | \ mysql -u [uname] -p[pass] [dbname]"` but get the error: ERROR 1044 (42000) at line 42: Access denied for user '[uname]'@'%' ...