1 / 11

PHPMyAdmin

PHPMyAdmin. Web application Makes it easier to use MySQL To launch: http://localhost/phpmyadmin/ Download it here: http://www.phpmyadmin.net/home_page/downloads.php. Create Database. You are logged in as “root”. Enter name of database here and click “Create”.

marge
Download Presentation

PHPMyAdmin

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PHPMyAdmin • Web application • Makes it easier to use MySQL • To launch: http://localhost/phpmyadmin/ • Download it here: http://www.phpmyadmin.net/home_page/downloads.php

  2. Create Database You are logged in as “root” Enter name of database here and click “Create” To get back to this page at any time select “Databases”

  3. Create Table SQL query used to create “ensmartdb” We are currently using this database Enter table name and number of fields then click “Go”

  4. We are defining the columns for table “gene” Select “auto_increment” here Define Columns Select “Primary” here since this is the primary key Don’t forget to click “Save”!

  5. Select “ensmartdb” to view tables in database View Database Click “gene” to view “gene” table Add another table here

  6. Click on “insert” to add data to table Insert Data Don’t forget to save by clicking “Go”!

  7. Click on “Browse” to view/edit/delete data View/Delete/Edit Data Click here to delete checked rows Check rows to edit or delete Click here to edit checked rows

  8. Database Users • To use MySQL you must have a username and password • A user in MySQL has permissions set regarding • MySQL itself (ex. whether or not the user can create a database) • Specific databases within MySQL • For example, user “guest” may have permission to view database “x” but not database “y” • Multiple users can access a MySQL database simultaneously

  9. Granting a User Privileges • PHPMyAdmin is logged in as user “root”, and has permission to do anything • You should NOT make a habit of connecting to your database as root • Create a user with restricted permissions to your database instead Click “Add new User”

  10. Granting a User Privileges (Continued) Enter “User name”, “Host”, and “Password” This are privileges the user will have on ALL databases

  11. Granting a User Privileges (Continued) After you save the “global” permissions, you may add database specific permissions Select “ensmartdb” to edit user permissions for database “ensmartdb” On the next screen select ONLY the permissions the user must have

More Related