# Homemade tool book # MySQL inserts Chinese characters and obtains garbled data? BitsCN.com
In my. ini, the default character set of MySQL is latin1. we often use UTF-8 (utf8 in MySQL) and gbk to store Chinese characters.
Therefore, you can add
Install and configure bitsCN.com in MySQL
Installation:
Select Custom (Custom)
Installed components:
Select the installation server directory: (the path must not contain Chinese characters or spaces)
Select the data file directory (the
Are you looking for a graphical user interface (GUI) tool for managing SQLite databases? The following is a list of popular SQLiteGUI tools. SQLiteDatabaseBrowserSQLiteDatabasebrowser is a free and open-source lightweight GUI client for SQLite
When MySQL is started, bitsCN.com is returned.
When mysql service is started in linux
Report: Another MySQL daemon already running with the same unix socket.
Solution.
The reason is that multiple Mysql processes use the same socket.
Two
When we were hired to monitor MySQL performance, people wanted us to check MySQL configurations and give some suggestions for improvement. Many people are surprised afterwards, because we suggest that they modify only a few settings, even if there
An error is reported when XAMPP is used to start MySql -- Usinginnodb_additional_mem_pool_sizeisDEPRECATED. Solution: XAMPP
BitsCN.com
XAMMPP Version: xampp-win32-1.8.3-0-VC11-installer
MySQL Version:
[View the current MySQL version]
Use-V
Introduction to triggers in Mysql and use cases bitsCN.com
What is a trigger?
A trigger is a database program that monitors a behavior of a data table. Once the behavior of a data table occurs, the corresponding SQL statement is executed
Two methods for MySQL to prevent the delete command from deleting data: bitsCN.com
Method 1My common practice is to add a delete ID field in the database,For example, if isdel = 1, the code deletes the field.
Method 2Restrict mysql deletion
Add
UbuntuServer MySql database backup script code: UbuntuServerUbuntu
BitsCN.com
Note:
Here I want to back up the pw85 database under the/var/lib/MySql database directory to the compressed file format of/home/snapshot (2012_04_11 refers to the date on
Mysql-based time processing functions
DAYOFWEEK (date)
Returns the index of the week of the date (1 = Sunday, 2 = Monday ,...... 7 = Saturday ). These index values correspond to the ODBC standard.Mysql> select DAYOFWEEK ('2017-02-03 ');-> 3
WEEKDAY (
In windows, Mysql garbled characters. Solution: bitsCN.com recently picked up Mysql again in the development project, and encountered Chinese garbled characters during environment setup. I will share with you the solution below.
1. show VARIABLES
In-depth understanding of where11's usefulness bitsCN.com
Where 1 = 1? In SQL, writing such a sentence is the same as not writing it.
Select * from table1 where 1 = 1 is no different from select * from table1, and there are even many other
In-depth summary of basic SQLite operations
Sqlite provides some C function interfaces that you can use to operate databases. By using these interfaces, you can pass some standard SQL statements (in char * type) to the sqlite function, and sqlite
MySQL notes string function application bitsCN.com
String operations are a very important component in programming, while string operations in MySQL databases are quite simple.
Note that all the following functions do not change the original data
Jdbc calls the mysql stored procedure implementation code bitsCN.com
1. create a stored procedure
Create a MySQL stored procedure add_pro
Delimiter //
Drop procedure add_pro //
Create procedure add_pro (a int, B int, out sum int)
Begin
Set sum =
Linuxmysql error: MYSQL: TheserverquitwithoutupdatingPIDfile bitsCN.com
1. it may be that the/usr/local/mysql/data/rekfan. pid file has no write permission.Solution: Grant permissions, execute "chown-R mysql: mysql/var/data" "chmod-R
Mysql Query cache description bitsCN.com
Perform a detailed analysis on mysql Query Cache from five perspectives: Query Cache working principle, how to configure, how to maintain, how to determine the Query Cache performance, and suitable business
Mysql cross-table update multi-table updatesql statement summary bitsCN.com suppose we have two tables, one table stores Product information for the Product table, with the Product Price column Price, and the other table is the ProductPrice table,
Mysql local database How to export data from remote database bitsCN.com written in front: recently started to use the Ubuntu system, there is really no good mysql interface program, so... can only use terminal operations.
Procedure: open Terminal,
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