
Learn how databases power dynamic web apps by using PHP to interact with MySQL databases through Apache. Discover database basics—names, tables, rows, columns, and fields—with practical analogies to spreadsheets.
Explore phpMyAdmin, a graphical interface for database administration that lets you create, delete, and modify databases, tables, relations, and users, and import or export data with ease.
Explore the phpMyAdmin interface overview, with databases listed in the left column and expandable sections, plus top navigation links and server information about MySQL and Apache.
Assign passwords to all route users to prevent unauthorized access to databases on your server. Update the config file with the new passwords and refresh your browser to regain access.
Create a database and a users table in phpMyAdmin for a newsletter signup, defining an auto-incrementing primary key and varchar fields, plus a timestamp for registration using utf8 encoding.
Create a new MySQL user, specify host, set a secure password, and assign database- and table-specific privileges while avoiding global privileges; connect as root for the exercise.
Create a new MySQL user with no global privileges, grant database-specific privileges to the my website database, and assign table-specific insert and update rights to selected columns.
Learn how to modify a table's structure by changing or dropping columns, browse and search records, insert data with auto incremented id and timestamp, and empty or drop the table.
Learn how to modify and delete a MySQL database, rename or drop databases, copy for backups, and import or export data, while creating tables and performing searches.
Explore how sql, or structured query language, communicates with relational database management systems and why standardization enables compatibility across databases.
Learn how phpMyAdmin translates actions into SQL by selecting and inserting records in a MySQL database, using the users table as your example.
Learn to embed SQL statements in PHP scripts to build dynamic database-driven sites, connecting to a MySQL database with MySQLi or PDO and performing select, insert, update, and delete operations.
Import data into the users table using phpMyAdmin by emptying the table, pasting the prepared data, and confirming a fourteen-record import was successful.
Learn how to use the MySQL select statement to retrieve id, first name, last name, and email from the users table. Establish a connection, run the query, and display results.
Learn how to use the distinct keyword in a select statement to return unique values from the first_name column in the users table, removing duplicates.
Use the where clause to filter records by a condition. Enclose string terms in single quotes, then id = 4 yields Bill and id = 8 yields Gene.
Learn how to filter records with the and operator to apply multiple conditions, such as selecting the email from users where first name equals Ted and last name equals King.
Learn how the SQL or operator filters rows by meeting either condition, illustrated with Ted as first name and King as last name, showing how or returns two records.
Learn how to use the order by clause to sort results by one or more columns, observe ascending id sorting, and apply multi-column sorting by first name and last name.
Learn to insert first name, last name, and email into a MySQL database via a PHP form using post. Validate inputs and execute the insert into the users table.
Learn to retrieve the last inserted or updated ID in MySQL with the get last ID function, store it, and echo it to verify the record.
Insert records into a MySQL table with multiple insert into statements, use if statement to execute batch, and confirm success after inserting Neal Jennings, Judy Lam, and Justin Lee.
Learn how prepared statements let you repeatedly execute similar statements, bind parameters such as first name, last name, and email, and prevent injection with a browser-based test.
Learn how to delete records from a MySQL database using the delete statement, removing rows by id with a delete button and validating the change by refreshing the table.
Learn how to automatically redirect after deleting a record by using PHP's header function to send a Location header back to delete.php, streamlining the user flow.
Learn how to delete a record in PHP and return to the main page with a message parameter, using isset, GET, and a delete check to echo 'record deleted'.
Update records in a MySQL table with an update statement, using a PHP flow to load and edit a user's first name, last name, and email by id.
Course: Learn MySQL - For Beginners
Learn to Create Database Driven Web Applications using MySQL
Students learn to integrate and administer MySQL databases as part of PHP web application development.
The course begins with an in-depth look into PhpMyAdmin to create, delete and modify databases. We also explore security considerations and user privileges.
Next, students learn to build connections to existing databases in PHP, and execute commands using several essential SQL statements.
What you'll learn - Overview:
MySQL Database Administration
PhpMyAdmin Fundamentals
MySQL Security and Root Superuser
Create Tables
Creating Users
Modifying Database Privileges
Modifying & Deleting Tables
Modifying & Deleting Databases
SQL Fundamentals
SQL Statements in PhpMyAdmin
Database Connections
MySQL Import & Export Data
Updating Data in MySQL DB
Key Concepts:
Introduction to Databases
Intro to PhpMyAdmin
PhpMyAdmin Interface Overview
MySQL Security and Root Superuser
MySQL Creating a Database and Table
MySQL Creating a New User
MySQL Database and Table Specific Privileges
MySQL Modifying and Deleting a Database
Introduction to SQL
SQL Statements in PhpMyAdmin
Connect to MySQL Database using PHP
MySQL Database - Import Data
SQL Select
SQL Distinct Keyword
SQL Where Clause
SQL And Operator
SQL Or Operator
SQL Order By
MySQL Insert Into
MySQL Get Last ID
MySQL Prepared Statements
MySQL Delete Records
PHP Header Function
PHP Isset
MySQL Update Records
Your Instructor:
YouAccel is a leading provider in online training, offering courses across numerous industries from IT and Development to Business, Marketing, Design, and Productivity.
The courses can be taken at one's own pace and are offered at several levels including beginner, intermediate and advanced. Online courses are also compatible with any mobile device for the ultimate in convenience.