This program can be used to browse the data in MySQL, you can do a little modification can make a good MySQL browser.
*/
/*
? cmd=db
? cmd=table&db={}
? cmd=record&db={}&table={}
*/
$host = ' localhost ';
$user = ' Test ';
$password = ';
if (!isset (
MySQL is a multiuser, multi-threaded SQL database server. It can be used in relational database of various popular operating system platforms, which has a distributed database management system of client/server architecture. MySQL is fully
Automatic backup MySQL 5.0 has three scenarios:
Backup Scenario One: generate a complete. sql file directly through the mysqldump command
Step 1: Create a batch
(Note: Root is the MySQL default user name, AAAAAA is the MySQL password, bugtracker
1. Use MySQL's own database synchronization function (the following reference from the online article, wrote a very detailed)
MySQL provides database replication functionality after version 3.23.15. The function of two database synchronization,
1. Direct Input SQL execution
Mysql> Select Now ();+---------------------+| Now () |+---------------------+| 2013-09-18 13:55:45 |+---------------------+1 row in Set (0.00 sec)
2. Execute the prepared SQL script
Mysql> Source H:/1.sql+------------
MySQL's default encoding is Latin1, does not support Chinese, to support the noon need to change the database's default encoding to GBK or UTF8.
1, need to log in as root user can view the database encoding (as root user login command: >mysql-u
Detailed instructions on how to access the MySQL Guide with an ODBC interface
MySQL's ODBC interface implementation is through the installation of MYODBC driver, this driver is cross-platform. If used under UNIX systems such as Linux, you need to
MySQL, you will often see some of the processing of dynamic strings, such as: Dynamic_string.
In order to record the actual length of the dynamic string, the maximum length of the buffer, and the need to adjust each string, the new memory is
MySQL database forgot the root password is a very painful thing, this article describes how to resolve the Windows environment MySQL server forget root password solution.
1. Turn off MySQL service
Window+r run input net stop MySQL
2. Open the
MySQL database is the first choice for the backend database of small and medium sized web sites, because it is free for non-commercial applications. Web developers can build a "linux+apache+php+mysql" platform, which is one of the most
Description
Open the MySQL binlog log server, if you do not set automatic cleanup log, the default Binlog log has been retained for a long time, the server disk space is Binlog log full, resulting in a MySQL database error.
Use the following
1. With MSSQL Enterprise Manager, open the structure of the table (design table), local use phpMyAdmin according to the structure of one to create, while optimizing the table data fields, table creation completed.
2. Use Enterprise Manager to export
/usr/local/mysql/bin/mysql-uroot-proot test-e "LOAD DATA INFILE '/usr/1.txt ' replace into TABLE test FIELDS terminated By ' \ t ' (name,address)Info1.txtZhangsan WuhanLishi WuhanInsert the 1.txt file into the MySQL databaseOn the Internet to see
How is the system classified without CGI?
I haven't made an original article in the last few days, all in the architecture server, write CGI program
The beginning took some days to Perl, and later found that the regular expressions of the scripting
PS: The following is turned over, for the record, this is not the original intention, but only with the regexp, is more flexible and more convenient
The Author_url in the comment table contains www.sohu.com records, where the Sohu is replaced by
Use MySQL for database backup, and very formal database backup method, with other database servers have the same concept, but have not thought, MySQL will have a simpler use of the file directory backup method, but also quick to have good.
One,
As shown below:
The code is as follows:
Use the Mysqli object-oriented method to connect to the database!
-Yiu Yuan Blog " > Server address: server account: Server password: connect_error) {//$conn->connect_error is represented by
Mysql Installation
MySQL installation files can be downloaded directly to the http://www.mysql.com, for the. zip package for Win32, it is recommended to select the 4.0.20d version. This is not explained in detail here.
Get MySQL for Win32
First, the implementation of local automatic backup database is simple:
1. Log in as Root
2. Scheduled Tasks (3:30 automatic execution/usr/bin/mysqlbackup per day)
Crontab
0 3:30 * * */usr/bin/mysqlbackup
3. Write an automatic backup database script
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