Recently in the study of MySQL cluster, at least to install 2 or more MySQL database installation, operation is cumbersome and time-consuming, today, according to the installation steps to write a shell script, just execute the following script can
Drupal calls PHPEXCL through the libraryDownload the Phpexcel and upload it to your Drupal directory: Sites/all/libraries/phpexcel
If you have a libraries module installed in your project, you can call it by Libraries_load ($name).
If the
Back up the MySQL data table structure
[Root@mysql ~]#/usr/local/mysql/bin/mysqldump-uroot-p ' admin '-D Mysql servers>/backup/mysql-structure-tables-$ ( Date +%f). sql[Root@mysql ~]# egrep-v
1 MySQL supports enum, and set type, SQL Server does not support
2 MySQL does not support nchar,nvarchar,ntext type
3 The incremental statement of MySQL is auto_increment, while MSSQL is identity (1,1)
4 MSMs default values for the table creation
Today in MySQL want to use a self-contained function to detect the length of the field content as
The code is as follows
Copy Code
Select ID from BB where len (field) >5
Results appear
FUNCTION xxx. LEN does
Prepare an article
First, the environment description:
Operating system: Windows Server R2
PHP Version: PHP 5.5.8
MySQL version: MySQL5.6.15
Second, related software downloads:
1, PHP download address:
1. Integral type
MySQL data type
Meaning (Signed)
tinyint (m)
1 byte range ( -128~127)
smallint (m)
2 byte range ( -32768~32767)
Mediumint (M)
3 byte range ( -8388608~8388607)
If a varchar is set in an item (50)
Well, that's 50 for English.
So what about Chinese?
Utf-8 Chinese occupies 3 bytes
So, is this varchar (50) Only save 16 characters?
MySQL varchar (50) in both Chinese and English, there are 50.
MySQL5
When MySQL is accessed remotely, MySQL resolves the domain name, resulting in slow access, plus the following configuration to resolve the problem
Prevent MySQL from doing domain name resolution
[Mysqld]
Skip-name-resolve
PHP remote connection
We first look at the database permissions issues, and then do the following operation.
Sql:select value from [table]vars WHERE name= ' noteexists2′
Ucenter Info:mysql Query Error
Sql:select value from [table]vars WHERE name= '
Introduction: mysql5.0.94, this version and the more advanced versions (5.5, 6, and so on) have not yet supported circular recursive queries, and MySQL is difficult to traverse in the middle layer of the tree table compared to SQL Server and Oracle.
First of all, we need to understand the IP address conversion to the integral type (strictly speaking is a long integer) the principle of ~
"Principle of conversion": assuming the IP is: w.x.y.z, the IP address to the integer number of the
Server | Tutorial |mysql
Considerations for installing and using MySQL on the server
First, how to get the latest version of MySQL?
To install MySQL, first of course to get its latest version, although we all know in FreeBSD packages can find
For many beginners, using PHP can easily write code with specific functionality within a few hours. However, building a stable and reliable database will take some time and related skills. Here's a list of the worst 11 MySQL-related errors I've ever
mysql| Server
third, stop the server
To start the server manually, use Mysqladmin:
%mysqladmin shutdown
To stop the server automatically, you don't need to do anything special. BSD systems typically stop the service by sending a term signal to the
mysql| decryption when you connect to a MySQL server, you should usually use a password. The password is not transmitted on the connection with clear text.
All other information is transmitted as text that can be read by anyone. If you're worried
The three features of the InnoDB storage engine are very exciting, they are insert buffers, two writes, and adaptive hashes, and this article introduces the first feature-insertion buffer (insert buffer)
In the previous "MySQL-talking about InnoDB
Recently, open source database developers MySQL company in the 2007 MySQL conference announced the latest Mysqlclustercarrier gradeedition (Mysqlcluster telecommunications-grade version) database DBT2 benchmark results.
This test was done with
Why use a trigger? Advantages of triggers 1. Trigger's "automatic"For programmers, the trigger is invisible, but he does. If no trigger is needed, when you update the name field of the user table, you need to write code to update redundant fields in
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