User Tools

Site Tools


keller_and_evans_lab:my_sql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
keller_and_evans_lab:my_sql [2015/11/29 17:23]
scott Created page with " <syntaxhighlight lang="bash"> # Connect to mysql server mysql --host=<ip.address> --user=<username> --password=<password> </syntaxhighlight>"
keller_and_evans_lab:my_sql [2019/10/31 10:50] (current)
lessem ↷ Page moved from my_sql to keller_and_evans_lab:my_sql
Line 1: Line 1:
 +
 +====== MySQL ======
 +
 +Connecting to MySQL server in bash
 +  
 +   # Connect to mysql server
 +   mysql --host=<ip.address> --user=<username> --password=<password>
 +   
 +
 +MySQL commands
    
- # Connect to mysql server + show databases;      show the databases 
- mysql --host=<ip.address> --user=<username> --password=<password>+ use userdata_schema; # connect to a particular database 
 + show tables;         # list the tables within the database 
 + select * from table_name limit 10; # to see what's in a table (first ten entries) 
 + select * from user_location where user_id='6346669087044735461' order by sample_time desc limit 10;
    
 +
keller_and_evans_lab/my_sql.1448842994.txt.gz · Last modified: 2015/11/29 17:23 by scott