C:\Perl\MySql>mysql -u localhost -p < c:\perl\mysql\perl.dbt
Enter password: ******
ERROR 1045 (28000): Access denied for user 'localhost'@'localhost' (using
passwo
rd: YES)
I don't remember ever setting up a user name. How do I find out what it is?
(Assuming that is the problem.)
**************************************
Jerry Kassebaum wrote:
I'm trying to learn mySql for use with cgi, so I hope y'all will consider
this close enough to a perl question.
I have a file called perl.dbt that contains a batch file to a database. (It
should list all the books I've read with Perl in the title.)
When I go to the command prompt and enter
mysql < c:\perl\mysql\perl.dbt
I get an error:
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using
password: NO)
Now what?
***************************
Supply a valid user name on the command line, like this:
mysql -u username -p < perl.dbt
This will prompt you for the password (the password must not be contained in
perl.dbt). To supply the password on the command line, write
mysql -u username -ppassword < perl.dbt
Note there is a space between -u and the username but none between -p and
the password.
Hans
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs