When using MySQL + Asp.net for development, the problem of garbled Chinese characters written into the database is a headache. In combination with my own situation, refer to the online materials. The solution is similar to the following three
1. Create a centos MySQL user group
[Root @ localhost ~] # Grep MySQL/etc/group
# QuerySystemMySQL user group. If no user group exists, add it.
[Root @ localhost ~] # Groupadd MySQL
# Add a user group named MySQL
2. Create a centos MySQL user
[
After installing apache2 + PhP5, I want to install mysql5 again.After installing mysql5 with the source code, I found that I wanted to add new extensions for PHP in Linux. Unlike in windows, I just needed to remove the semicolon comment ~I found a
Source: Click to open the link
Error executing insert: incorrect string value: '\ xe8 \ XAE \ xA1 \ xe7 \ XAE \ x97...' for column 'dep' at Row 1
The solution to this problem is as follows: (read carefully)
1. install and configure MySQLIi. Commonly
If you have read the following article, this article is suitable for you.
Http://blog.csdn.net/AndroidBluetooth/archive/2011/05/04/6394301.aspx
1. Configure environment variables for the root user
edit the profile or. bash_profile file under
If you have read these two articles, this article will make you feel very simple.
Install MySQL http://blog.csdn.net/AndroidBluetooth/archive/2011/05/04/6394301.aspx in Ubuntu
Configure MySQL http://blog.csdn.net/AndroidBluetooth/archive/2011/05/
Yesterday, the company suddenly experienced a power failure. When the server was restarted, myssql 1067 service could not be started.
It took a whole day to finally save the data .~ Send a post immediately to avoid further victims:
When MySQL is
MySQL includes a server process for database management and a series of tools for accessing databases and creating applications:
MySQL: Execute SQL queries in MySQL, or execute SQL commands stored in files;Mysqlaccess: Manage Users;Mysqladmin:
Transferred from: bytes? Is this column the maximum width allowed to store values? Why can I set it to int (1) and save 10,100,100 0. at that time, although I knew int (1), the length of 1 does not mean that the storage width is allowed, but there
// C write the data structure used by the MySQL Connection Program struct harvis_mysql_struct { MySQL * conn; // The MySQL connection established, global variable int ID; // sequence number connecting to MySQL, starting from 0 and starting from-1
By default, MySQL only allows local access. If you want other machines to remotely access this MySQL database, you need to set something. Next we will step by step:
1. Configuration File Modification1.% mysql_home %/My. conf
Find bind-address = 127.0
192.168.0.11
Master
192.168.0.12Slave
The master server has a problem, so the master server is upgraded from the master server to the master server. in CNF, the master-host option of 192.168.0.12 is disabled. After restart, it is found that the
Same
Display
The display format of the timestamp column is the same as that of the datetime column. In other words, the display width is fixed to 19 characters and the format is YYYY-MM-DD hh: mm: Ss.
Different
Range
Datetime retrieves and displays
Installation:
Apt-Get install mysql_server
Add User:
Mysql> grant all privileges on *. * To 'freebird' @ '%' identified by '000000' with grant option;'Freebird' User Name'123' Password'%' Indicates that the connection can be established from
MySQL history
MySQL configuration principles
Properly configured MySQLServer, try to reachThe most reasonable use of MySQL is for MyISAM or InnoDBCustom configurations for different enginesPerform proper configuration for different application
If the optimization of a single MySQL is still under pressure, we must consider the high-availability architecture of MySQL (many people also love to say it is a MySQL cluster, currently, feasible solutions include:
I. MySQL ClusterAdvantage: high
MySQL date usage Summary
Count the number of records in the current month by monthSelect PID, date_format (adddate,'% Y-% C'), Count (*) as ABC from t_tone_log group by PID, date_format (adddate,'% Y-% C')
% Y year % C month
Join and query (find
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