Importing new MYSQL databases
Posted by: tobyport
Posted on: 2007-12-17 01:31:00
So, I have a bunch of MySQL databases from my previous hosting provider which I need to import.
I exported them to tar.gz files and am trying to follow the instructions on http://wiki.dreamhost.com/Migrate_MySQL
I created a database and a database user in the Panel:
User my_user_name has access to the following MySQL databases:
Database Name sometest
What may my_user_name do to tables in these databases?
Select
Insert
Update
Delete
Create
Drop
Index
Alter
(all allowed)
Allowable Hosts
From what hosts (computers) may my_user_name connect to these databases?
(One per line, use % as a wildcard.)
%.dreamhost.com
Would you like to change my_user_name's password?
New Password:
Currently: my_password
(where the username and password have been changed to protect the innocent)
I have unzipped the sql file(s) in the shell and am trying the command
eros:~> mysql -u my_user_name -pmy_password -h mysql.tobyport.com db_bbps < Database-db_bbps.sql
ERROR 1044 (42000): Access denied for user 'my_user_name'@'208.113.160.0/255.255.224.0' to database 'db_bbps'
(where my_user_name is the username of of the SQL user I created earlier)
What gives?