Question : Problems with root password on new MySQL server and old databases...???

I've currently got a test server configured using Windows 2k3 IIS PHP and MySQL.  It's all working great, however, my production server runs on Apache and I use .htaccess a lot so I'd like to mirror that locally for testing.  As such, I configured a new test server with apache, php, mysql, etc.  Everything is setup and running successfully.

So then I used NaviCat to transfer all of the databases from the old MySQL server to the new one.  I used the same password for root on the new server as I did the old one.

After successfully moving all of the data over I can now connect to the databases and edit tables and everything without a problem in the new MySQL server using the root login (that's the only user I currently have configured on the new mysql server).  

The problem is that if I try and add a new user to the system and assign it access to one of the DB's I get an error:

1044 - Access denied for user 'root'@'%' to database 'usbswipe\_usbswiper'

So two things are bothering me here.  First, why in the heck am I getting a password error here when I can access everything just fine using that same (the only) un/pw configured?

Second, my database is called usbswipe_usbswiper.  Is that \ in the middle normal?  Is that why it's failing?  Where did that come from?

It's even doing the same thing when I go into Manage Users and try to assign the root user to one of the individual databases...yet it works globally for all databases.  

Any information on how I can fix this would be greatly appreciated.  I've got everything migrated to my new server except I can't get passed this road block.  

Thanks!

Answer : Problems with root password on new MySQL server and old databases...???

It would be easier if you would post the results of the query rather than describing what you are seeing.
Where are you connecting from to the mysql server?
Could you please post the results of the select * from mysql.user where user='root'?
Also run: show processlist and post the results.
The issue is that the login root@% which you seem to be using to connect to the mysql server does not have grant rights.
run mysql -h localhost -u root -p
and then try to create the user.
Are you using mysql Administrator?  If so, make sure when connecting to use the localhost/127.0.0.1 of the VirtualMachine.
Random Solutions  
 
programming4us programming4us