Purpose: A Redhat Linux 6.2 used as a firewall, dedicated line link chinanet, internal link
LAN segment 192.168.11.0/24, need to enable PHP4 and MySQL database, and LAN
There is another Apache server 192.168.11.2 that needs to be serviced by
This article comes from: Ohaha's learning experience [ohaha.ks.edu.tw] Author: Blue Bubble (panda@ks.edu.tw)
Objective:
The so-called phpmyadmin is simply a kind of MySQL management tool.
Through this program, you can directly from the web to
1. Backup
The code is as follows
Copy Code
[Root@localhost ~]# cd/var/lib/mysql (access to MySQL library directory, adjust directory according to your MySQL installation situation)[Root@localhost mysql]# mysqldump-u root-
MySQL sets the sync Replication and splits the following command into two sets of inputs, such as the following:
1.mysql> change MASTER to master_host= ' master.example.com ', master_user= ' repl ', master_password= ' Repl_password ';2.mysql>
Let's run 2 SQL statements First:
The code is as follows
Copy Code
SELECT * from ' welcome ' has ID >1 LIMIT 0, 30SELECT * from ' welcome ' WHERE ID >1 LIMIT 0, 30
Look at the results, okay? is not the query to
MySQL randomly query out a record
The code is as follows
Copy Code
$sql = "SELECT * from Pinglun WHERE ID >= (select MAX (ID) from Pinglun)-(select MIN (ID) from Pinglun) * RAND () + (SEL ECT MIN (ID) from Pinglun) LIMIT
The procedure is very simple, it is done in three parts:
1. Create bat file, bat file contents
The code is as follows
Copy Code
@echo offSet Host=localhostSet Username=rootSet Passward=ansureSet Database=weiheSet backup_
See if the event is open
The code is as follows
Copy Code
Show variables like '%sche% ';
To open an event plan
The code is as follows
Copy Code
Set global Event_scheduler = 1;
MySQL UPDATE statement Base usage
Updating data in a database
The UPDATE statement is used to modify data in a database table.
Grammar
The code is as follows
Copy Code
UPDATE table_nameSET column_name = New_valueWHERE
If there are many tables that need to be deleted, and the table has the same prefix, we might need the following statement:
The code is as follows
Copy Code
drop table pre_tablename1;drop table pre_tablename2;drop table
Recently replaced the blog's code highlighting Plug-ins, used to be syntaxhighlighter:Code format:
Code Area...... now replaced by Crayon Syntax highlighter:
Code Area...... code highlighted areas are not the same, there are a lot of articles
MySQL's "root" user default state is no password, so in PHP you can use mysql_connect ("localhost", "root", "") to connect to the MySQL server;
If you want to set a password for the "root" user in MySQL (for example, the native MySQL password is 110
What is an index?
Indexes are used to quickly look for records with a specific value, and all MySQL indexes are saved as a B-tree. Without an index, MySQL must begin scanning all records of the entire table from the first record until a record is
Open phpMyAdmin and log on as the root user,In the middle of the homepage, there is a line "create a new database", enter the database name, and click "create" to create a database.Click "permissions" in the lower part of the home page to go to
Notes for operating MySQL databases in PHP1. Semicolon exceptionsFor MySQL, the first thing you must remember is that every line of its command is ended with a semicolon (;), ...... There is no such thing as absolute. The same is true here. When a
Step 1: Prepare the database. Install the data source (I have been charged for several days). First, clickOdbc data source (32-bit), Click to enter and selectUser DSN (which is the default one), SelectMs access 97 DATABASE option, click the
I just saw someone posting the installation steps in Windows.It's just today that the company's website has a new server. It took me one morning to install mysql + php + apache.The old version of the new version is still somewhat different. Now post
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service