Home Backend Development PHP Tutorial phpmyadmin operation process_PHP tutorial

phpmyadmin operation process_PHP tutorial

Jul 21, 2016 pm 04:08 PM
mysql phpmyadmin client operate database yes process user of software Remotely connect


phpmyadmin is a client software used to remotely connect to a MySQL database. Users can refer to the following
steps to configure the phpmyadmin software:

Please download the phpmyadmin.rar file to your local computer;

Use winrar to decompress the file and generate a phpmyadmin directory;

Please use notepad and other software on the local host to edit the file config.inc.php in the phpmyadmin directory (add customer database link information ), modify the following settings:
$cfgServers[1]['host'] = 'localhost'; (The system default host name is 'localhost
does not need to be modified)
$cfgServers[1][ 'user'] = 'Database administrator name';
$cfgServers[1]['password'] = 'Password';
$cfgServers[1]['only_db'] = 'Database (database administrator) name_db)';
After the modification is completed, save the config.inc.php file;

After modifying the configuration file, upload the phpmyadmin directory and all the files in the directory to the customer via ftp
Under the directory of the website; (It is best to change the name slightly, so that others can not modify your data casually)

Type 'http://your domain name/phpmyadmin' in the browser. Can manage and create customer's MySQL
database.

Use PHPMYADMIN to manage MYSQL database
1. After you create your database (or the database name given to you by the service provider), click to select it, and then click "Manage this database", you will enter The web management interface of the database,
can create tables, manage content, etc.;


2. Double-click your database, the data table in the database will be displayed, and at the same time, in the right half of the screen The operation section will display the operations of each data table:
3. You can operate each table according to the prompts in the right half;

Browse: All records in the data table can be displayed;
Select : is to display the records in the data table based on conditions. You can enter certain query conditions here. The system will
display the corresponding records according to the query conditions you entered;
insert: is to add a record;
attribute : You can change the attributes of each field in the data table, add indexes and other operations;
Discard: delete this data table. Note that it cannot be restored after deletion, and do not delete it easily;
Clear: means Delete all records in the data table

Run the SQL statement in the database specified below:

refers to entering the standard SQL statement, which can be operated according to your SQL statement; you can also choose your local SQL statement file, and then
click the "Start" button to proceed;


4. There are four options to view the structure and summary information of the database
1) Only Select structure: It does not contain data, it is just the structure of the data table, and it is displayed on the screen
2) Structure and data: It refers to the structure and data content of the data table,
3) Send: It only sends the system The contents are output to a file.


5. Create a new data table:
Name: refers to the name of the newly created data table
Fields: refers to the number of fields contained in the newly created data table

Click the "Start" button to enter the new interface. Enter the name and type of each field. After completing the input, click "Save" and the system will
automatically return to the previous interface;

6. Discard the database: This refers to deleting the database. Please do not operate it at will to avoid problems;


7. Above we talked about the operation of the database, below we will operate on a data in a database Table operations describe the role of PhpAdmin;


8. Double-click a data table in the database, and the structure of the data table will be displayed in the right half of the screen;


9. The page displays the properties of this data table. In the operation column, there are:
1) Change: refers to changing the name of this field
2) Discard: refers to deleting this field
3) Key name : Refers to whether to change this field to the primary key
4) Index: Refers to index data records according to this field
5) Unique: The content of this field is unique in the data table, and there are no duplicate records;


10. Browse: refers to displaying records; selection: refers to entering query conditions and querying records according to your query conditions; insert: adding a record;


11. Reading data from a text file: refers to importing a local text file into this data table. Regarding the format of the text file, you can use spaces
or semicolon, etc.;


12 . Check the structure information of the data table: you can send the structure or structural data record of the data table to the screen or a standard file to
facilitate your data backup;


13 . Change the name of the data table: It means to change this data table to a new data table name;


14. Copy the data table: It means to create a data table that is the same as this data table.

About the backup and recovery issues of vbb forum data! ! !
When I used it myself, I didn’t know how to do it, so I encountered many problems for many years. Now I finally know how to do it. I will write an explanation and share my experience with you!
1. You need to be able to use Myphpadmin. It is a very good tool. Most spaces that support mysql are installed for you, so you can use it directly. For its installation and use, please refer here:
http://www.im286.com/showthread.php?s=&threadid=46001

You can also check it out at Juba.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VBB is a very excellent PHP+MYSQL forum. The Laggard Forum has been using VBB since its establishment. But for most users, MYSQL backup is a troublesome problem because most space providers do not provide permissions for remote connection to the database. At the same time, the PHP program takes 30 seconds to run. Limitation, making the backup of a slightly larger MYSQL database a very troublesome problem. Based on the data backup experience of the Laggard Forum, Yuxian uses PHPMYADMIN as an example to describe the backup of MYSQL data.

The following contents are all Based on ztsky Chinese VBB 2.20 and phpmyadmin 2.26 version
ztsky Chinese VBB can be downloaded from http://www.chinavbb.com
phpmyadmin can be downloaded from http://sourceforge.net/project/show...elease_id= 85832 Download

VBB 2.29 has a total of access, adminlog, adminutil, announcement, attachment, avatar, bbcode, calendar_events, customavatar, forum, forumermission, icon, moderator, poll, pollvote, post, privatemessage, profilefield, replacement, replacementset, search, searchindex, session, setting, settinggroup, smilie, style, subscribeforum, subscribethread, template, templateset, thread, threadrate, user, useractivation, userfield, usergroup, usertitle, word 43 tables.

Among them Relatively important are the
post and thread tables, used to save forum posts;
poll and pollvote tables, used to save the voting part of the forum - generally not backed up
privatemessage table, used to save messages between users. Whisper ---Generally, all tables starting with
user are not backed up. They are used to save information related to registered users of the forum. ------There are several, and they must be downloaded together.
fourm is used to save forum categories. Without him, your classification is incomplete, so you should also back it up together.


When backing up, you just need to save the important ones above.
Next, let’s restore the forum data.

Enter myphpadmin and restore the backed up data above.

Note: If you have several tables in the restored data, you must first delete the existing tables. , discarded, otherwise there will be no mistakes. For example, if you put several user data together in a zip file, then you need to delete those data together when restoring. This is good!

The above is my own experience in management. If it is good, please support me! ! Please also give your comments and suggestions!

Another way to back up forum data is to back it up directly in the background. In fact, it’s the same! ! !

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/314723.htmlTechArticlephpmyadmin is a client software used to remotely connect to the MySQL database. Users can refer to the following steps to configure the phpmyadmin software: Please You download the phpmyadmin.rar file to your local; use...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MySQL's Role: Databases in Web Applications MySQL's Role: Databases in Web Applications Apr 17, 2025 am 12:23 AM

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

How to start mysql by docker How to start mysql by docker Apr 15, 2025 pm 12:09 PM

The process of starting MySQL in Docker consists of the following steps: Pull the MySQL image to create and start the container, set the root user password, and map the port verification connection Create the database and the user grants all permissions to the database

Laravel Introduction Example Laravel Introduction Example Apr 18, 2025 pm 12:45 PM

Laravel is a PHP framework for easy building of web applications. It provides a range of powerful features including: Installation: Install the Laravel CLI globally with Composer and create applications in the project directory. Routing: Define the relationship between the URL and the handler in routes/web.php. View: Create a view in resources/views to render the application's interface. Database Integration: Provides out-of-the-box integration with databases such as MySQL and uses migration to create and modify tables. Model and Controller: The model represents the database entity and the controller processes HTTP requests.

Solve database connection problem: a practical case of using minii/db library Solve database connection problem: a practical case of using minii/db library Apr 18, 2025 am 07:09 AM

I encountered a tricky problem when developing a small application: the need to quickly integrate a lightweight database operation library. After trying multiple libraries, I found that they either have too much functionality or are not very compatible. Eventually, I found minii/db, a simplified version based on Yii2 that solved my problem perfectly.

How to install mysql in centos7 How to install mysql in centos7 Apr 14, 2025 pm 08:30 PM

The key to installing MySQL elegantly is to add the official MySQL repository. The specific steps are as follows: Download the MySQL official GPG key to prevent phishing attacks. Add MySQL repository file: rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm Update yum repository cache: yum update installation MySQL: yum install mysql-server startup MySQL service: systemctl start mysqld set up booting

How to adjust the wordpress article list How to adjust the wordpress article list Apr 20, 2025 am 10:48 AM

There are four ways to adjust the WordPress article list: use theme options, use plugins (such as Post Types Order, WP Post List, Boxy Stuff), use code (add settings in the functions.php file), or modify the WordPress database directly.

Centos install mysql Centos install mysql Apr 14, 2025 pm 08:09 PM

Installing MySQL on CentOS involves the following steps: Adding the appropriate MySQL yum source. Execute the yum install mysql-server command to install the MySQL server. Use the mysql_secure_installation command to make security settings, such as setting the root user password. Customize the MySQL configuration file as needed. Tune MySQL parameters and optimize databases for performance.

Laravel framework installation method Laravel framework installation method Apr 18, 2025 pm 12:54 PM

Article summary: This article provides detailed step-by-step instructions to guide readers on how to easily install the Laravel framework. Laravel is a powerful PHP framework that speeds up the development process of web applications. This tutorial covers the installation process from system requirements to configuring databases and setting up routing. By following these steps, readers can quickly and efficiently lay a solid foundation for their Laravel project.

See all articles