Alex Rivera | Logout

how to run mysql in ubuntu through terminal

Asked 2012-06-25T11:19:15.997
30

trying to run mysql in ubuntu typing mysql in terminal and getting error

ERROR 1045(28000): Access denied for user 'root'@'localhost' (using password: NO)

Can anybody please sort out this problem...

Edit
Report

1 Answer

7

If you want to run your scripts, then

mysql -u root -p < yourscript.sql
answered 2012-06-25T11:23:45.980

Your Answer