Recently, I learned Python, recorded the code and experience of writing to learn Python, wrote a query statement using Python MySQL and made a db_config.py configuration information.1. db_config.py configuration file1 #/usr/bin/python2 3
MySQL Types to Java Types for Resultset.getobject ()
MySQL Type Name
Return value GetColumnClassName of
returned as Java Class
BIT(1)(New in MySQL-5.0)
BIT
java.lang.Boolean
MySQL wildcard charactersThe pattern match for SQL agrees that you use "_" to match any single character, while "%" matches the random number of characters (containing 0 characters). In MySQL, the default mode of SQL is to ignore uppercase and
MySQLdb is the package used in Python to manipulate the MYSQL DatabaseAddress:http://sourceforge.net/projects/mysql-python/MySQLdbinstallationUnder Windows is the EXE version number of the one-click Installation . linux requires manual
First, ask: if there is a table, there is a field ID of the self-increment primary key, when the table has been inserted 10 data, deleted the ID of 8,9,10 data, and then restart the MySQL, and then insert a data, then the data ID value should be how
The following article mainly describes the actual operation of the MySQL show index syntax and its actual view of the index State (syntax) description of the specific content, if you are curious about this technology, the following article will
SQL Common statements: First, common keywords:1.distinct: Filter RepeatSelect distinct create_user_name from Bms_project; In this case, it is necessary to use the distinct filter out duplicates.2.count: StatisticsSelect COUNT (*) from Bms_project;
When you encounter importing an oversized file, first check the following three places in the php.ini configuration file, Upload_max_filesize, Memory_limit, and post_max_size, and recommend modifying the values slightly larger than the large
installation of MySQLThere are generally three ways to install a software:1, use RPM to install. This package must end in. RPM to be installed using the RPM package.2. Install using the Universal binary format. Just use this installation method the
There are two steps for a user to perform a database operation:1 whether there is permission to connect, according to Host,name,password;2 whether there is permission to curd;Illustrated explanation:Where are the user rights stored?Look like
Mysql advanced permission check Principle
You can perform database operations in two steps:
1. Whether the connection is permitted. The connection is based on host, name, and password;
2. Are you authorized to perform CURD;
Illustration:
Where
Difference between mysql int (3) and int (11), mysqlint
Int (M) zerofill. After zerofill is added, M shows a little effect,
For example, if you insert int (3) zerofill to 10 in the database, the actual insert is 010, that is, add a 0
If int (3) and
Two solutions for MySQL error Forcing close of thread
1. Modify the mysql configuration file
If the configuration file is my. ini, you can add the following two content in my. ini:
Skip-locking
Skip-name-resolve
Note: In the new mysql version,
Path Problems in mysql5.5
The parameters in my. ini are as follows:
Basedir = "C:/Program Files/MySQL Server 6.0 /"
Datadir = "" path for storing the table structure
Innodb_data_home_dir = "" This is the path for storing table data, ibdata1 (for
Mysql advanced cursor
What is a cursor? The select statement may obtain n statements at a time, so the cursor can obtain a record in the select statement at a time. Move down every time one is obtained! Complicated logic can be implemented!
Is MySQLMDL related to the storage engine?The background is that a service's logdb history oss_log (MyISAM Table type) is routinely deleted, and sometimes "deadlock" is reported ". Analysis of slow log found that some deletion takes a long time,
Principles of MySql index algorithms (easy to understand, only B-tree)
When I first started learning, Baidu went to check it. However, I found that many of them were too complicated to understand. I would like to summarize them in the light of each
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