Basic instructions for using mysql database:

  • Before connecting to the database please copy .my.cnf file to your home directory. The file contains the user information.
Command descriptionGeneric CommandExample/Comments/Links
To enter mysql databasemysql-
To use a particular databaseuse dbname;use hg19;
To show all the tablesshow tables;show tables;
To select everything from a table and limit to ten rowsselect * from tablename limit no;select * from allEnhancer limit 10;
To crete a table and load data from an external file-example