ERROR 1044 (42000): Access denied for user 'globacom'@'localhost' to database 'avi_globacomglobacom_data4.sql' I had created the database with the name globacom

  create database globacom;


and grant all the permissions as

    grant all on globacom.* to 'globacom'@'localhost' identified by 'globacom';


after this I have looged in using this credentials

       mysql -u globacom -pglobacom


when I import the .sql file  using this

    source E:\ravi_globacom\globacom_data4.sql


I am getting an error as 

 ERROR 1044 (42000): Access denied for user 'globacom'@'localhost' to database 'avi_globacomglobacom_data4.sql'


please anyone can help me.
You need to use forward slashes for paths, even on Windows. The mysql command line is interpreting the sequence \r as a connect command and things blow up. (This quite visible in the error message: database 'avi_globacomglobacom_data4.sql'.)

So try:

source E:/ravi_globacom/globacom_data4.sql


Or don't use source, but shell/cmd redirection instead:

mysql -u globacom -pglobacom &lt; E:\ravi_globacom\globacom_data4.sql


depending on what's most practical.