Compiling and installing mysql5.5.8 in linux 1. preparation:
Download and copy the following two files to/opt, and download them directly using wget or other download tools.
Mysql 5.5.13:
How can I solve the problem of MySQL5.0.16 garbled characters? how can I solve the problem of MySQL 5.0.16 garbled characters?
A: The following method can be used to solve the garbled MySQL 5.0.16 problem:
1. set phpMyAdmin
Language: Chinese
[Hosting service qin] sqldatabase-() brackets instead of spaces to continue injection of SQL statements, we are still used to their spaces, such as select id from [name], if there is no space in the middle, it becomes selectidfrom [name], a mess!
In Linux, mysql master-slave configuration is used to configure the master-slave configuration of the mysql server, which can implement read/write splitting or restore data from the slave database after the master database fails.
Two machines are
Mysql full-text index solution (to) MySQL supports full-text indexing and searching since 3.23.23.
Full-text index is used to create an index, and full-text search is used to query the index.
LIKE uses Regular Expression for query.
MySQL full-text
Mysql data import and export
Export:
Mysqldump-h hostname-u username-p password databasename (tablename)> filename
For example, you can export a database from host 192.168.0.1 (root/root ).
Test to file abc. SQL
Mysqldump-h
192.168.0.1-u
Solve mysqlERROR1017: Canamp; #39; tfindfile: amp; #39; xxx. frmamp; #39; ERROR if mysql is not closed before the server is restarted, the MyiSAM table of MySql may encounter ERROR 1017: Can't find file: '/xxx. frm' error,
The reason for this
Create and delete mysql users 1. log on to mysql remotely
Mysql-h ip-u root-p password
2. create a user
Format: grant permission on database. * to username @ login host identified by "password ";
Example 1: Add a test1 user with a password of 123456
The problem of creating a user-defined function in mysql due to the fact that the mysql storage process has been written in the past few days and the program size has become increasingly large, so I tried to use the mysql function and the problem
Mysql command Daquan start: net start mySql;
Enter: mysql-u root-p/mysql-h localhost-u root-p databaseName;
List databases: show databases;
Select database: use databaseName;
List tables: show tables;
Show columns from tableName;
Create a database:
MySQL discrete notes-foreign key Mysql foreign key
References: about MySQL foreign keys and mysql foreign key association creation
MySQL has the same definition of "key" and "index", so foreign keys and primary keys are also an index. The
When configuring mysql, there is always no response error in the last step of startservice. when configuring mysql, there is always no response error in the last step of startservice (my name is win7, of course, I am sure it has something to do with
In mysql, if varchar length is set to 50 in one item, then of course 50 in English, then in Chinese, UTF-8 occupies three bytes in Chinese, can this varchar (50) only store 16 Chinese characters?
Mysql varchar (50) stores 50 files in both Chinese
MySQL has been installed many times, including virtual machines and hosts.
Blank installation is easy, that is, it is necessary to uninstall the trouble step by step.
1. clear the server configuration (you can run the configuration program to
Installation and configuration of MySQL in Linux 1. Installation File
MySQL-devel-5.0.22-0.i386.rpm
MySQL-shared-5.0.22-0.i386.rpm
MySQL-server-5.0.22-0.i386.rpm
MySQL-client-5.0.22-0.i386.rpm
2. Installation
Install the SDK in the above
How does a SQL database always have physical reads when indexing? BitsCN.com
The problem is as follows:1 SQL> r
2 1 select count (*)
3 2 from t_edu_member_info
4 3 * where status = '1' and xs_zy = '1'
01 execution plan
02 bytes ----------------------
Implementation of MySQLMVCC and its mechanism Multi-Version Concurrency Control
Most MySQL transaction storage engines, such as InnoDB, Falcon, and PBXT, do not use a simple row lock mechanism.
In fact, they have always been used with another
Quick understanding of the use of database links under SQLServer (2) bitsCN.com
Right-click on the page and click "create database link" in the displayed menu. an interface will pop up. you need to enter the link server (this is a name and can be
Use sysbench for oltp test bitsCN.com
Sysbench is an open-source performance testing tool that can be used to test the performance of multiple databases, including MySQL, ORACLE, and POSTGRESQL.
Sysbench starts threads according to the specified
Mysql error150 problem when adding foreign keys
BitsCN.com
This error often occurs when you try to create a foreign key in mysql, which is very frustrating. You cannot create one. the error of the frm file seems to imply an error in the file
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