Changes

Jump to: navigation, search

SRA840 Lab7

1,140 bytes added, 23:43, 16 July 2012
no edit summary
=Gregory Katherine Masseau=
1. Show SQL commands that work on MySQL for:
To insert some records into the table created above, you might use:
"insert into people (id,name,city,country) values (0,'Gregory Katherine Masseau','Toronto','Canada');
insert into people (id,name,city,country) values (0,'Mark Fernandes','Toronto','Canada');"
*change some of the records into the table you created
To change some records in this table, you might use:
"update people SET city='North York' where name='Gregory Katherine Masseau';"
*delete records from the table you created
=Kezhong Liang=
In my opinion, I think the General Query Log is important for us to keep track. It records the information of each client creating connection and close with timestamps. It even records the situation of each client query. It contains more detail information than others.
 
=Varinder Singh=
 
'''Security Measure'''
#Use MySQL's internal SSL support to make the connection even more secure.Alternatively, use SSH to get an encrypted TCP/IP connection between a MySQL server and a MySQL client.
 
'''To make a MySQL system secure, you should strongly consider the following suggestions:'''
 
Require all MySQL accounts to have a password. A client program does not necessarily know
the identity of the person running it. It is common for client/server applications that the user
can specify any user name to the client program. For example, anyone can use the mysql program
to connect as any other person simply by invoking it as mysql -u other_user db_name if other_user
has no password. If all accounts have a password, connecting using another user's account becomes much more difficult.
 
Never run the MySQL server as the Unix root user. This is extremely dangerous, because any user with the FILE privilege is able to cause the server to create files as root (for example, ~root/.bashrc). To prevent this, mysqld refuses to run as root unless that is specified explicitly using the --user=root option.

Navigation menu