Recommended MYSQL database optimization design reasonable data table structure
1: select an appropriate data type. if you can set the length, try to set the length.2: Do not use the key fields that cannot be indexed, such as text.3: To avoid table
Batchinsert is used to solve the insert throughput problem of MySQL. Recently, an easy-to-use method has been used to solve the insert throughput problem in the business. here, we will summarize the problem.
First, let's clarify that the insert
Differences between MySQLDELETE statements and TRUNCATETABLE statements
There are two ways to DELETE data in MySQL: MySQL DELETE statement and MySQL truncate table statement. You can use the WHERE clause to select the record to be deleted. However,
Use PythonDBUtils data connection pool in combination with mysql python
#-*-Coding: UTF-8-*-"" desc: database operation class @ note: 1. when executing an SQL statement with parameters, specify the list of conditions to be entered with the SQL
How to uninstall MySQL in Debian
I used to configure the service environment for testing on the Server. I was too lazy to install it with an online ready-made script. as a result, MySQL cannot be started, so I only had to honestly reinstall the
Query all data tables in MySQL
Mysql> show tables; # View all tables in the current database + ---------------------- + | tables | + -------------------- + | biao | ceshi_biao | + -------------------- + 2 rows in set (0.00 sec) mysql> select * from
Configure MySQL service ubuntu in Ubuntu
Step 1 install MySQL
Sudo apt-get install mysql-server
Step 2 configure MySQL
2.1 vim/etc/mysql/my. cnf find bind-address = 127.0.0.1.
2.2 comment out: # bind-address = 127.0.0.1
Or change the IP
Some basic MySQL operations have recently started to learn MySQL, mainly through books, watching videos from instructor Yan 18, and then recording their learning processes through blogs.
Log on to the database
zhiniaobu@telunsu-K55VD:~$ mysql
What should I pay attention to when storing user passwords in the MySql database? I was interviewed by phone today and asked some practical questions. one of the questions is about what to pay attention to when storing user passwords in MySql in PHP
The MySQL permission assignment system involves two concepts:
1: Authentication-> determine whether the user is allowed to connect to the database server
2: authorization-> determine whether the user has sufficient permissions to execute query
Mysql optimization: connections sometimes encounter an exception in "MySQL: ERROR 1040: Too connections". One reason is that the access volume is Too high and the MySQL server cannot resist it, in this case, we need to consider increasing the load
MySQL data migration to MSSQL-take the Xiaomi database as an example-test that the 828W speed can reach 2 minutes 11 seconds. here, the ConcurrentQueue is used in. NET Framework 4.0 or a later version.
Class
MSDN describes it as follows:
In MySQL, ONDUPLICATEKEYUPDATE is used today to determine whether the data is inserted and used in MySQL on duplicate key update. now Mark the following!
If you want to insert or UPDATE data without data in the database, you can choose on
[Translation] Chinese comments MariaDBmy. cnf large server configuration template MariaDB
The file is as follows. modify the file as needed:
Translated on: February 1, May 22, 2014
Translators:Tie
#/Usr/share/mysql/my-huge.cnf # MariaDB profile
After mysql is installed, enable remote logon and install mysql on the internal test server. it is okay to log on to the database locally on the server, but remote logon is not allowed. try to connect to the mysql server using the telnet command,
MySQL database backup and restoration
If the mysql service cannot be stopped during backup, you can use this tool. Faster than mysqldump
This tool is a Perl script mainly used inLinuxUse
Use lock tables, flush tables, and cp for quick backup
Method 1 for setting the default value in the Mysqlselect statement:
SELECT userinfo. id, user_name, role, adm_regionid, region_name, create_time
FROM userinfo
Left join region ON userinfo. adm_regionid = region. id
Result:
Set
WebMisCentral-the Client is compatible with MySql databases. because WebMisCentral uses EF5.0, it is very easy to adapt. The following describes the operation:
1. in the ElegantWM. WebUI layer (or ElegantWM. DAL), download MySQL. Data 6.7.5 through
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