I am very very new to all of this stuff. I have been given a username and password, and I try to run this command: mysql -p -u username < filename

But everytime it prompts me for a password, and does not let me type anything in. Please let me know if you can help. Thanks.

By the way I am trying to use unix to do this.

try:

mysql -pPASSWORD -u username < filename

example: mysql -u cs301 -pweb

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.