MYSQL entry 7: MYSQL common functions bitsCN.com
MYSQL entry 7: MYSQL common functions
Related links:
MYSQL: Basic operations
Http: // database/201212/173868 .html
MYSQL 2: use regular expressions to search
Http: // database/201212/173869
Detailed explanation: the correct solution for MySQL data table corruption bitsCN.com
The actual operations for restoring a corrupted MySQL data table are often used. the following articles mainly describe how to correct and repair the damaged MySQL
Use the mysql command line to export SQL bitsCN.com
Use mysql command line to export SQL
In fact, it is very simple. you only need two steps to first enter the mysql command line, enter the use database name, and then enter source test. SQL to
Solve the problem of MySQL reinstallation bitsCN.com
I recently encountered a problem of MySQL reinstallation at work. today I will record my solution process.
First of all, for some reason, I have to uninstall mysql and then reinstall mysql. no
The processing method bitsCN.com that is incorrect when MySql executes the stored procedure
How to handle errors when MySql executes the stored procedure
Create a simple stored procedure:
DELIMITER $
Create procedure proc_book ()
BEGIN
MySQL generates a random password bitsCN.com
MySQL generates random passwords
I simplified the process, which is more concise than the previous one, and generally generates random passwords.
[SQL]
DELIMITER $
USE't _ girl $
Drop function
Mysql stored procedure and storage function bitsCN.com
Advantages:
V improves security
V simplify mysql Query
V reduces bandwidth burden
Disadvantages:
V increases server load
V is more difficult for our developers
Functions in PHP
Function
Centosyum install mysql and set the password (64-bit machine) CentOS
BitsCN.com
Centos yum install mysql and set the password (64-bit machine)
Yum install mysql
Yum install mysql-server
Yum install mysql-devel
Chgrp-R mysql/var/lib/mysql
Chmod-R 77
After the mysqlinnodb row locks are unlocked, the 1213 dead performance is like Deadlockfoundwhen solving bitsCN.com.
After the mysql innodb row lock is unlocked, the system displays the 1213 dead result, which is like the Deadlock found when
Method for updating part of data in a Mysql field bitsCN.com
How to update some data in a Mysql field
Mysql updates some data in the field in the first case:
Update tab set A = concat (substring (A, 1, 3), 'BBB ');
Start from 1
CentOS6.4 install MySQL record CentOS6CentOS
BitsCN.com
CentOS6.4 install MySQL
Choose Linux-Generic instead of Oracle & Ren Hat Linux 6
Download the corresponding server and client packages. here I select 64-bit
MYSQL sharing: obtain the full definition statement of the access process bitsCN.com
MYSQL sharing: obtain the complete definition statement of the access process
[SQL]
SELECT db, specific_name AS OBJECT_NAME,
CONCAT (
CHAR (13 ),
CHAR (10
Mysql index -- (mysql 2) bitsCN.com
Mysql index -- (mysql 2)
Index type:
Normal index
Primary key
Foreign key
Unique index
Non-unique
Professional index:
-- B-tree balanced number index, which is different from binary tree. the height of a binary
Mysql tool backup script bitsCN.com
Mysql backup script
Today I wrote a mysql backup, mainly using the mysqldump tool. The requirement is to back up some databases at three o'clock every day and keep the backups for two days. Simple requirement:
$ _ SERVER array element description bitsCN.com
$ _ SERVER array element description
$ _ SERVER ['php _ SELF '] # file name of the script being executed, which is related to document root.
$ _ SERVER ['argv'] # parameters passed to the script.
$ _
UbuntuServer uses automysqlbackup script UbuntuServerUbuntu
BitsCN.com
Ubuntu Server uses the automysqlbackup script
The server was accidentally shut down yesterday, causing damage to the database file in the development environment. so I
How to record cases in beautiful format when writing mysql technical articles or ppt
How to record cases in beautiful format when writing mysql technical articles or ppt
Mysql-related technical articles are frequently written recently. There
What are the indexes in the mysql database and what is bitsCN.com?
What are the indexes in the mysql database?
This article describes how to accelerate MySQL index analysis and optimization for dynamic websites.
1. what is an index?
Indexes are
Mysql record copy import and export bitsCN.com
Mysql record copy import and export
Copy record
Lower case-insensitive function
Password encryption function
Create table employee
> Create table employee (id int, name char (10), agi int, sex enum
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