Sqoop Import/Export


1 Answer(s)


Hi Sachin,

You can find it by using Mysql commands:

To find the hostname -

mysql> select user();

It will output something similar to this:

+----------------+ 
| user()         | 
+----------------+ 
| root@localhost | 
+----------------+ 
1 row in set (0.41 sec)

To find the port -

mysql> SHOW VARIABLES WHERE Variable_name = 'port';

It will output something similar to this:

+---------------+-------+ 
| Variable_name | Value | 
+---------------+-------+ 
| port          | 3306  | 
+---------------+-------+ 
1 row in set (0.00 sec)

 

Hope this helps.

Thanks.