Follow these steps to select a database:
mysql -u username -p
a password request appears, enter the password. Now we list all the databases
show databases;
select the database you want to select using the command:
use databaseName;
select data from any table:
select * from tableName limit 10;
You can select your database using the use photogallery; command use photogallery; Thank!
Lalit Dashora Jul 13 '17 at 5:42 on 2017-07-13 05:42
source share