3

Can any one help me to use phpmyadmin mysql database through terminal.

I am using ubuntu 10.4.

I guess the command like this /opt/var/usr/ mysql. I'm not sure about it.

3
  • 1
    it's not quite clear... you want to access MySQL from the terminal? Commented Apr 27, 2012 at 11:46
  • yes.. I want access from terminal Commented Apr 27, 2012 at 12:00
  • phpMyAdmin is a MySQL administration tool written in PHP, it is not a database itself. You are probably using MySQL or MariaDB as your DB. Commented Mar 22 at 20:39

2 Answers 2

6

In terminal just type:

mysql -u username -p

and afterwards you'll be prompted for your password.

Normally MySQL is added to /bin/ so no need to explicitly give a path to it.

Sign up to request clarification or add additional context in comments.

5 Comments

If i use this command then it will show the message like The program 'mysql' can be found in the following packages: * mysql-client-core-5.1 * mysql-client-5.0 * mysql-cluster-client-5.1 Ask your administrator to install one of them
Well then it seems you don't have it installed... Run sudo apt-get install mysql-server to install MySQL server... then sudo apt-get install php5-mysql to install the php5-MySQL connector and sudo apt-get install phpmyadmin to install phpMyAdmin.
ok. But phpmyadmin already is in my machine. Now I can access through below command.. /opt/lamp/bin/mysql -uroot Thanks.
Ah a lamp installation... I see... Well anyway, I advise you to create another user account with limited privileges and not use the root one. So your problem is solved now?
Cool no prob. Then you can choose my answer as the good one :) Have fun!
3

The Below command used to access phpmyadmin mysql database though terminal

/opt/lampp/bin/mysql -uroot -ppassword

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.