A regular expression defines a rule for a string. The simplest regular expression does not contain any reserved words. For example, the regular expression Hello is only matched to the string "Hello".
A regular expression uses some special structure,
Related reading:
MySQL Introduction tutorial (v) creation, modification, and deletion of the table
A view is a virtual table that is derived from one or more tables. The view is like a window through which you can see the data specifically
In the last article to introduce the MySQL database performance optimization One, today continue to go on the article to introduce the database performance optimization related knowledge. The details are as follows:
Establish an appropriate index
Today, database operations are increasingly becoming a performance bottleneck for the entire application, especially for Web applications. As for the performance of the database, this is not just something that DBAs need to worry about, and that's
The table structure is the same except for the index of the table name, and if the ' id ' field of each table is still in the ' auto_increment ' way, the ID cannot only determine a single record.
This requires a mechanism in addition to the various
Modify My.ini, add under [mysqld]
default-storage-engine=INNODB
Where the red font part is the name of the engine to be specified.
To modify an engine that has completed a table with SQL statements:
ALTER TABLE TableName TYPE=INNODB
My
Show tables or show tables from DATABASE;
Explanation: Displays the names of all tables in the current database
Show DATABASES;
Explanation: Displays the names of all the databases in MySQL
Show Processlist;
Explanation: Displays all processes
Recently, in a larger concurrent project, I tried the InnoDB mysql5.5,30m installation files, performing in the slightest inferior to the huge Oracle or MSSQLSERVER. Open source, not superstitious Linux, I believe that MySQL in Windows will be more
MySQL database, database tables, data base operation notes to share with you for your reference, the specific content as follows
First, the database operation
1. Create a databaseCreate Database DB name[databases option];Tip: statement requires a
Download Mysql-5.5.10-win32.zip to the official website, and then extract the MySQL to any path, such as: C:\mysql-5.5.10-win32
Turn on the computer-> properties-> advanced system settings-> environment variable, create a new environment variable
Error 1:wizard installation Last page, cannot create Windows service for mysql.error:0 ErrorWORKAROUND: Open the command line to enter SC delete mysql command thatC:>SC Delete MySQL[SC] DeleteService SUCCESSReboot the computer, or reboot and
MySQL recently on Windows 2003 has many times the normal operation can not connect to the database failure, the phenomenon is unable to connect to the database, and can not stop MySQL or restart MySQL, restart the machine also has no effect, because
Now use the two servers have been installed MySQL, are all rpm packaging, can be used normally.
In order to avoid unnecessary trouble, master server MySQL version as much as possible to maintain consistency;
Environment: 192.168.0.1 (Master)
192.168.
MySQL Character set: cp1252 West European (latin1), solve garbled problem
Use the virtual host space on the phpMyAdmin operation database, if you see the phpMyAdmin home page on the MySQL character set for cp1252 West European (latin1), when we
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
Business background:The basic business scenario is that the request data (vehicle VIN information) goes into the interface, you need to determine its state in the database, if the VIN does not exist in the library, or if the VIN status is 1
installing MySQL
Installing MySQL and Php-mysql
[Root@sample ~]# yum-y Install Mysql-server
Configure MySQL
[Root@sample ~] #vim/etc/my.cnf edit MySQL configuration file
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/
This article illustrates the simple way to backup and restore MySQL in PHP. Share to everyone for your reference, specific as follows:
First, Backup:
Two, restore
0) {echo " failure command as follows:"; For ($ii =1 $ii ". $ii.
System: Ubuntu 10.10MySQL source file: mysql-5.5.8.tar.gzTools required for installation: CMake, GNU make, GCC, Perl, Libncurses5-dev, bison (optional), chkconfigNote:1. The official source code for 2010-11-18 has several bugs that were manually
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