Mysql5.4startservice, applysecuritysettings error solution bitsCN.com solution:
1. uninstall MySQL.
2. type regedit in "run" to enter the registry.
3. delete the HEKY_LOCAL_MACHINE/SOFTWARE/MYSQL directory.
4. delete the
The bitsCN. comkey_buffer_size optimization of MyISAM and InnoDB is very important for MyISAM tables. If you only use the MyISAM table, you can set it to 30-40% of the available memory. A reasonable value depends on the index size, data volume, and
After mysql regularly executes bitsCN. com5.1, MYSQL supports the scheduled execution (event) function, which is similar to linux crontab.
First, check your MSYQL version and the SQL statement for querying version information:
Select VERSION
Mysqlinsert performance optimization bitsCN. comMysql optimization-the time it takes to INSERT a record in the accelerated INSERT statement is determined by the following factors, and the number indicates the proportion of the impact:
Connection: (
The special statement in MySQL queries bitsCN. com1. calculate the total number of records in the data table. the SQL statement mysql> select count (*) from openes; + ---------- + | count (*) | + ---------- + | 136 | + ---------- + 1 row in set (0.00
Fix MySQL database (MyISAMInnoDB) bitsCN.com and find a MySQL technical article on the internet. it feels good to translate and share it. Author: Mike Peters I have sorted out seven methods to fix the MySQL database. when a simple restart does not
Redhat
BitsCN.com I have installed redhat on the virtual machine and installed the mysql database. it is locally accessed through java and accessed directly using jdbc. Later, I found that there was a garbled problem when the database stored Chinese
MySQL queries the first few rows of bitsCN.com
When a data table contains a large amount of data, you only need to check the values of some of the fields, instead of all the data, you only need to check a few rows. at this time, you can use limit
MySQL numeric hexadecimal conversion (using conv) bitsCN. comMySQL numeric hexadecimal conversion (using conv)
CONV (N, from_base, to_base)
Converts numbers between different digit bases. Convert the number N from from_base to to_base and return
MySQL and handle bitsCN.com
1. environment
OS: Win 2003 Server (X86)DB: MySQL 5.1.30-community-log
2. problem
The number of handles occupied by the MySQL Server is too large, and the consumption process of the handle is faster than the release
Mysql5.6.4 supports nosql bitsCN.com
In the latest mysql-5.6.4-labs-innodb-memcached, The nosql function of key/value is implemented, and its main principle is as follows:That is, in addition to listening to Port 3306, mysqld listens to port 11211
Migrate MySQL database to PostgreSQL bitsCN.com
I checked a lot of information and tried some. The final method is as follows:
1. export mysql table definitions (no data)Mysqldump -- no-data [dbname]> dbdef. SQL
2. use mysql2postgres to convert the
Mysql stored procedure simple learning bitsCN.com
1. create mysql stored procedure p3 (first change the Terminator delimiter $)Create procedure p3 (IN nameid int, OUT person_name varchar (10) nameid is the input parameter, and person_name is the
Mysql sets the method of allowing external access bitsCN.com
Configure the password of an external access account
Log on to mysql locally
Java code mysql-uroot-p execute Java code grant all on *. * to rails @ 'Client _ IP' identified by 'password'
Mysql exports the select result to the file bitsCN.com
Mysql-hxx-uxx-pxx-e "query statement" db> file example: mysql-h127.0.0.1-uroot-p000000-e "select * from a" test> 1.txt host ip user password query statement database filename:
Several important parameters in MysqlJDBCURL: bitsCN.com
Mysql JDBC Driver
Two mysql drivers are commonly used. one is the mysql Driver provided by the gjt (Giant Java Tree) organization. The JDBC Driver name (JAVA class name) is org. gjt. mm. mysql.
Modify the field bitsCN.com in mysql
The method for adding fields in MySQL is not complex. The following describes how to add and modify fields in MySQL. it is helpful for you to learn how to add fields in MySQL.
1. log on to the database> mysql-u
Linuxmysql user management bitsCN.com
1. maintenance of the root user password: After MySQL is installed, MySQL automatically provides a root user without a password. to ensure security, set the password for the root user: # mysqladmin-u root
Import excel data to mysql database bitsCN.com
Method 1: 1. in the last column of the data to be imported, write an Excel formula (in this example, it is the cell under "SQL", "SQL" is not necessary, just for convenience ). = CONCATENATE ("insert
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