List:General Discussion« Previous MessageNext Message »
From:Tobias Asplund Date:October 15 2003 7:50pm
Subject:Re: Command line fails "mysql mydb < mufile.sql"
View as plain text  
http://www.mysql.com/doc/en/Option_files.html
Check the example halfway down the page, it shows how you can supply a
password through your my.cnf file.


> I can log in as -u administrator when I use the -p option.  I need to
> make it work
> from  command line  because I am planning to put this command in
> a script to make it automatic to insert records.
>
> Nestor :-)
>
> Nestor A. Florez
>
>
> >>> Tobias Asplund <flupps@stripped> 10/15/2003 12:02:21 PM
> >>>
>
> > c:\>mysql mydb < myfile.sql
> > ERROR 1044: Access denied for user: '@localhost' to database 'mydb'
>
> try mysql -u administrator mydb < myfile.sql
>
>
>
Thread
Command line fails "mysql mydb < mufile.sql"Nestor Florez15 Oct
  • Re: Command line fails "mysql mydb < mufile.sql"Victoria Reznichenko15 Oct
Re: Command line fails "mysql mydb < mufile.sql"Nestor Florez15 Oct
  • Re: Command line fails "mysql mydb < mufile.sql"Tobias Asplund15 Oct
Re: Command line fails "mysql mydb < mufile.sql"Nestor Florez15 Oct
  • Re: Command line fails "mysql mydb < mufile.sql"Paul DuBois15 Oct