Mysql - How to select lamp mysql, How to use mysql of /opt/lampp/bin/mysql

How to select lamp mysql

How to use the mysql command in "/opt/lampp/bin/mysql"?
How to use the mysql db present in lampp server?

When you type mysql in linux command prompt, normally it takes you to the mysql prompt. But when you use wish to use the DB present in /op or different directory you can use the socket to communicate with the particular mysql and use the DB which you wish DB.
 # /opt/lampp/bin/mysql --socket=/opt/lampp/var/mysql/mysql.sock
OUTPUT:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.8 Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 

The topic on Mysql - How to select lamp mysql is posted by - Math

Hope you have enjoyed, Mysql - How to select lamp mysqlThanks for your time

Tech Bluff