When I try to create a new database(m) in xampp mysql command window then I’m getting an error message
“ERROR 1044 (42000): Access denied for user ”@’localhost’ to database
‘m'”.
Then I created that database by using phpmyadmin but its not shown in mysql command window when I type show databases command there. Can anybody tell me how can I get rid of that error message and can successfully create new database by using mysql command window in xampp? (I’m using windows xp professional service pack-2)
-Thanks.
RESOLVED:** Thanks to all for your kind replies. I solved that problem.
I changed the ‘user’ table in ‘mysql’ database by using phpmyadmin and set the fields to ‘Y’ while those were ‘N’ where host was ‘localhost'(so localhost wasn’t able to create or drop any database).Now its possible to create new database by ‘xampp\mysql\bin\mysql.exe’.
AND **to get .frm(table definition), .MYD(table data) and .MYI(table indices) files for a table in mysql data folder,I SET type=MyISAM and collation=utf8_general_ci so it would be easy to copy the database to another pc or server.