The workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.



True or False: Telnet is a perfectly acceptable method to securely connect to MySQL from a remote host.


False. The key word is "secure," and Telnet does not encrypt data between hosts. Instead, use SSH to connect to your server.


Which three pieces of information does MySQL check each time a request is made?


Who you are, where you are accessing from, and what actions you're allowed to perform.


What command would you use to grant SELECT, INSERT, and UPDATE privileges to a user named bill on localhost to all tables on the BillDB database? Also, what piece of information is missing from this statement that is recommended for security purposes?


The command is

 GRANT SELECT, INSERT, UPDATE ON BillDB.* TO bill@localhost; 

The important missing piece is a password for the user!


  1. Think of situations in which you might want to restrict command access at the table level. For example, you wouldn't want the intern-level administrator to have shutdown privileges for the corporate database.

  2. If you have administrative privileges in MySQL, issue several GRANT commands to create dummy users. It doesn't matter whether the tables and databases you name are actually present.

  3. Use REVOKE to remove some of the privileges of the users you created in activity 2.

Sams Teach Yourself PHP, MySQL and Apache in 24 Hours
Sams Teach Yourself PHP, MySQL and Apache in 24 Hours
ISBN: 067232489X
EAN: 2147483647
Year: 2005
Pages: 263

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: