One, install upload commandYum-y Install LrzszTwo, install configuration Java(You must have Sun's jdk,openjdk is not possible (OPENJDK payment encryption will be an error), the current version is 1.7)1, to detect the Java version, if it is openjdk,
This procedure includes three files
reg.html User Registers HTML pagereg.php PHP Processing codeconn.php Database Tutorial Connection file
reg.html Code
The code is as follows
Copy Code
php+ajax User Registration To
110MB Space-free (can be upgraded to up to 15GB)10GB of bandwidth-free! (Can be upgraded to 1TB)Dual Xeon and Hao long serverSmall Industry-free!PHP 5-Free!Rent 5-* Must be activatedFTP (Property support)-* Must be activatedIoncube and Zend
Usage of Substring_index:
Substring_index (Str,delim,count)
Returns the string str from the string, before the delimiter Delim and Count appears. If Count is positive, it returns everything to the left of the final delimiter (starting from the
Station editing sometimes need to update some of the content to modify, if just a few data, we simply need to go directly to the Web site or MySQL data table can be modified, but if you need to modify a large number of the same string, the need for
Workaround:
The first step: to restore the database and tables are UTF8 format (recommended UTF8, of course GBK or gb2312 also line)
The code is as follows:CREATE DATABASE ' Shegongku ' DEFAULT CHARACTER SET UTF8CREATE TABLE ' Members ' (' UID '
Scene: Need to do a fuzzy query about the title, only a little more records, and need to be relatively accurate, such as search: AC, can not appear ABC, acceptable ACB,BAC, and so on.
MySQL Full-text search has three different modes:
One, natural
First look at the example
The code is as follows
Copy Code
SELECT P.price, Pd.name, m.manufacturers_name from (Products pLeft JOIN products_description pd on p.products_id = pd.products_id)Left JOIN manufacturers m on
Mysqldump Backup command-uroot Root User-p123456 Password is 123456The database where the MyDB table resides MyDBMYTB the table that will be exported MYTB>/opt/mytb.sql Backup to Mytb.sql
Export the entire database
The code is as
Method one, with Mysqladmin
Here you use the two commands that come with MySQL Mysqladmin.exe and mysql.exe,mysqladmin the command format to modify the password is as follows
The code is as follows
Copy Code
Modify MySQL configuration to solve garbled
First of all:
With show variables like "%colla%"; "Varables" and "%char%"; these two commands view the database and server-side character set settings
If the view is gbk2312, or GBK, then you can only
If a table product has a field add_time and its data type is datetime, someone might write SQL like this:
The code is as follows
Copy Code
SELECT * FROM product where add_time = ' 2013-01-12 '
For this
Let's Make a concrete demo:
1, first we want to login phpMyAdmin (as the current mainstream development language), do not do demo.
2, create a database, the following figure, in phpMyAdmin (as the current mainstream development language) right
MySQL Create Stored procedures"Pr_add" is a simple MySQL stored procedure that has two input parameters of type int
"A", "B", returns the and of the two parameters.
drop procedure if exists pr_add;
--Calculate the sum of two numbers
CREATE
The optimization of MySQL is not in line, has done several optimizations, but is not very ideal, or waste resources too much. I have always found that my MySQL cache hit rate is very poor, in good times to reach the 60-70%, but run a long time, only
Just install Python MySQL support library, a breath encountered a series of problems, fortunately, Google, are resolved. And the record, the memo.
1. Download Python's MySQL support library
Address: http://sourceforge.net/projects/mysql-python/
2.
1. Install MySQLSudo apt-get install mysql-server2. Modify the MYSQL root user passwordAfter the default MySQL installation, the root user does not have a password. Therefore, use the root user to enter:$ Mysql-u root-pMysql> use mysql; update user
First, describe the background. There are two local hard disks,120 gb ssd = 60 (linux ext4) + 60 (win7 NTFS)2 TB mechanical hard drive = 600 gb ntfs + 600g ntfs + 700G NTFSIn order to take care of Windows 7's compatibility with ext partitions, we
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