I'm using mysql in a jail and I am having problems importing my sql backups.
When I run:
I get the following error:
However, I can log into to the mysql deamon just fine with:
The root user has full privileges over the 'cncrepair' database. The mysql website (http://dev.mysql.com/doc/refman/5.1/en/access-denied.html) suggests that maybe there is an incorrect option file. However, I have not set up any of the template/default .cnf files.
I ended up compressing the sql file and using phpmyadmin to do the initial import but I would still like to know what's causing the error.
When I run:
Code:
mysql -u root -p -h localhost cncrepair < cncrepair_2012_03_08_1.sql
Code:
Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
However, I can log into to the mysql deamon just fine with:
Code:
mysql -u root -p
The root user has full privileges over the 'cncrepair' database. The mysql website (http://dev.mysql.com/doc/refman/5.1/en/access-denied.html) suggests that maybe there is an incorrect option file. However, I have not set up any of the template/default .cnf files.
I ended up compressing the sql file and using phpmyadmin to do the initial import but I would still like to know what's causing the error.