0
~$ sudo /etc/init.d/mysql start
 * Starting MySQL database server mysqld                                                                                         [ OK ] 
~$ 

This worked, but I want the prompt where I can type the SQL commands.

4 Answers 4

1

mysql -u username -p this will prompt you for a password and then ENTER

0
0

Use mysql client.

mysql -uusername -ppassword

0

mysql -u root -p

This worked for me.

0

mysql -u username -p and hit enter. Hope this will work.

and if you also want direct access. So try this command:

mysql -uUsername -pPassword DB_Name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.