


Detailed graphic and text explanation of database addition, deletion and modification operations (phpMyAdmin usage tutorial 1)
Whether it is a Windows operating system or a Linux operating system, phpMyAdmin is graphical The management tools are all used in the same way.
In the previous article "Introduction to phpMyAdmin" we mainly introduced the installation and use of phpMyAdmin, so our article mainly explains the visual interface of the phpMyAdmin graphical management tool Operating database~!
Operation database
Enter: localhost/phpMyAdmin/ in the address bar of the browser, press Enter, you can enter the main interface of phpMyAdmin . Next, you can operate the MySQL database.
1. Create a database
In the main interface of phpMyAdmin, you can see the drop-down box of "Language-languange", we can Select the "Chinese - Chinese simplified" option in the drop-down box, and then there is a "Server connection proofreading". We usually choose the utf8_general_ci simplified Chinese encoding format to prevent garbled characters.
After the above settings are completed, I will start to create the database. Click on the database in the upper left corner and the following interface will appear:
Then enter your own database name in the text box, ours here is "php.cn", although we have set this encoding format at the beginning, but just in case, we can choose it again here "utf8_general_ci", then click the create button and then you can see the database you created in the left column, as shown below:
We can click on the database we created, and The database can be managed:
The above is the success of creating the database!
2. Modify the database
In the database management interface (picture above), there is an "Operation" button, click to enter the modification operation database page.
1. Enter the upper left corner of the modification page to create a data table for the current database. Enter the name of the data table to be created and the total number of fields in the two text boxes under the create data table prompt, and click Click the "Execute" button to enter the page for creating a data table structure, which we will introduce in detail in a later article.
2. You can rename the database in the upper right corner of the modification page. Enter the database name in the text box of "Rename the database to:" and click "Execute" to successfully modify the database name.
3. Delete the database
Also click the "Action" button to enter the modification page, and click on " Just below "New Data Table" is Delete Database. Click to delete the database.
Note:
The database is very important in our daily development. There is a lot of data in it. If you want to delete it, you must be careful. Once deleted, it cannot be restored. It is recommended to back up the database before deleting it!
Have you learned how to create and modify databases? In the next article, we introduce the data table. For details, please read " Detailed graphic explanation of data table addition, deletion and modification operations (phpMyAdmin usage tutorial 2)"!
【Related recommendations】
1. Relevant topic recommendations: "phpMyAdmin usage tutorial"
2. Related video courses Recommended: "MySQL Free Online Tutorial"
3. Online download of related tools: "phpMyAdmin Tool Download"
The above is the detailed content of Detailed graphic and text explanation of database addition, deletion and modification operations (phpMyAdmin usage tutorial 1). For more information, please follow other related articles on the PHP Chinese website!

表的主键是一列或多列,用于唯一标识表中每条记录。设置主键的步骤如下:登录 phpMyAdmin。选择数据库和表。勾选要作为主键的列。点击 "保存更改"。主键具有数据完整性、查找速度和关系建模方面的好处。

在 phpMyAdmin 中添加外键可以通过以下步骤实现:选择包含外键的父表。编辑父表结构,在“列”中添加新列。启用外键约束,选择引用表和键。设置更新/删除操作。保存更改。

PHPMyAdmin 的默认用户名和密码为 root 和空。为了安全起见,建议更改默认密码。更改密码的方法:1. 登录 PHPMyAdmin;2. 选择 "privileges";3. 输入新密码并保存。忘记密码时,可通过停止 MySQL 服务并编辑配置文件的方式重置密码:1. 添加 skip-grant-tables 行;2. 登录 MySQL 命令行并重置 root 密码;3. 刷新权限表;4. 删除 skip-grant-tables 行,重启 MySQL 服务。

phpMyAdmin 中删除数据表的步骤:选择数据库和数据表;点击“操作”选项卡;选择“删除”选项;确认并执行删除操作。

PHPMyAdmin日志文件的默认位置:Linux/Unix/macOS:/var/log/phpmyadminWindows:C:\xampp\phpMyAdmin\logs\日志文件用途:故障排除审计安全性

phpMyAdmin 拒绝访问的原因及解决方案:认证失败:检查用户名和密码是否正确。服务器配置错误:调整防火墙设置,检查数据库端口是否正确。权限问题:授予用户对数据库的访问权限。会话超时:刷新浏览器页面重新连接。phpMyAdmin 配置错误:检查配置文件和文件权限,确保启用了必需的 Apache 模块。服务器问题:等待一段时间后再重试或联系主机提供商。

可以在 phpMyAdmin 中“结构”选项卡下的“视图”子菜单中找到关联视图。要访问它们,只需选择数据库、点击“结构”选项卡、然后点击“视图”子菜单。

phpMyAdmin 易受多种漏洞影响,包括:1. SQL 注入漏洞;2. 跨站点脚本 (XSS) 漏洞;3. 远程代码执行 (RCE) 漏洞;4. 本地文件包含 (LFI) 漏洞;5. 信息泄露漏洞;6. 权限提升漏洞。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download
The most popular open source editor
