You can view the MySQL Help documentation in detail for these three types of instructions.A summary of Char:The maximum length of char is 255 characters, note that the character number and character set do not matter. There can be default values,
#cd/USR/LOCAL/SRC# tar Xvzf mysql-5.1.34.tar.gz# CD mysql-5.5.1.34Configuration and compilation#chmod +x Configure#./configure--prefix=/usr/local/mysql--enable-local-infile#makeMake will prompt for ABI-related errors, and at the end of the makefile
For script files, it is possible to execute, we do not have to install. So, but this script file does not have permission to execute, so we first give this script file the executable permission.After you view the information for the file again.There
To view the compilation parameters of the Nginx service/application/nginx/sbin/nginx-v[Email protected] ~]#/application/nginx/sbin/nginx-vNginx version:nginx/1.2.1Built by GCC 4.1.2 20080704 (Red Hat 4.1.2-52)Configure
The first step: Create a batch named Backmysql saved in/wwwroot/backup/with the following contents:Backdate= ' Date +%y%m%d ' mysqldump database name-u user name-p password >/wwwroot/backup/$backDate. Sqltar zcvf $rq. tar.gz $rq. SQLRM $rq.
1. Replication overviewMySQL's built-in replication capabilities are the foundation for building large, high-performance applications. The distribution of MySQL data across multiple systems is done by copying data from one of the MySQL hosts to the
I. Automatic installation of MySQL via YumYum Install Mysql-server my-clientIi. initialization and related configurationAfter installing the MySQL database, you will find an extra mysqld service, and you can start the MySQL service by entering
1. Change the remote root passwordMysqladmin-h ip-uroot-p123456 Password PasswordIf ' Access denied for user ' root ' @ ' IP ' (using Password:yes) appearsThe remote host does not allow logins other than localhost, so the permissions are
How to use time functions in mysql
UNIX_TIMESTAMP ()
UNIX_TIMESTAMP (date)
If no parameter is called, a Unix timestamp (in seconds starting from '2017-01-01 00:00:00 'GMT) is returned ). If UNIX_TIMESTAMP () Uses
The date parameter is called. It
Mysql statement optimization Summary (1)
SQL statement optimization and Indexing
1. Innerjoin and left join, right join, subquery
A. inner join is also called an equijoin, while left/rightjoin is an outer join.
Select a. id, A. name, B. id, B. name
Mysql leftjion: it is the same as leftouterjoin (rightjoin)
Left Outer Join:
A left jion B on A. id = B. id indicates that the data in Table A does not move. After adding the data in Table B to table A corresponding to Table
Outer right
MySQLServer password retrieval
I recently used a server in the courtyard, but I don't know the MySQL password. However, I have to find a solution by myself. The process is very simple!
First, enter the following statement: mysqld -- defaults-file =
The default Requirements for the Case sensitivity of Mysql tables in windows and linux are as follows:
Today, I set up a project environment in a virtual machine. I stole my laziness and copied the tables in the local database to the database in
MYSQL master-slave switchover
1. modify the configuration fileRead-only = 1 (master database)# Read-only = 1 (slave database)
2. view the status of the Master/Slave DatabaseShow slave status \ GShow master status \ G
3. Operate the slave
MySQL uses commands to back up and restore databases. mysql commands
When a database is used, database backup is performed. When a database fails to be started due to a serious error or data loss, data can be restored in a timely and effective
Definition of mysql Stored Procedure Variables
Mysql variables:
1. DECLARE variable_name datatype (size) DEFAULT default_value;
The declaration here is equivalent to a local variable and will expire after the end.
DECLARE multiple: DECLARE x, y
Simple operations in MySQL Linux (Service Startup and shutdown, startup and shutdown, view Version)
Today, the younger brother recorded the simple use of MySQL in the Linux system, as follows:Start and Stop a service. view the
How to modify the default encoding in MySQL Linux
The younger brother recorded the modification of the default MySQL encoding here, and changed the default encoding to utf8. I hope this article will help you. Thank you!
Environment:
Linux: centeros 6
Differences between Mysql versions and download from the official website
Differences between Mysql versions and download from the official website
I. Differences between Mysql versions:
1,MySQL Community Server Community version, Open source is
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.