Mysqlerror: 150 error foreign key problem Mysql foreign key
BitsCN.com
Mysql error: 150 foreign key error
ERROR 1005 (HY000): Can't create table '*****. frm' (errno: 150)
Problem
1. make sure that the referenced tables and fields exist;
2
Mysql modify and revoke permissions bitsCN.com
Mysql modify/revoke permissions
For the sake of security, mysql can only log on locally by default. the remote logon permission is disabled. if you need to log on remotely, perform the following
Usage of mysqlcase... when statement bitsCN.com
Usage of mysql case... when statement
Generally, case... when is used in select statements, but can be used in other clauses.
1. perform custom sorting in the order by clause
SQL code
Show create
Build a MySQL master/slave database bitsCN.com using the local environment
Build a MySQL master/slave database using the local environment
First, let's introduce my configuration environment.
On the local machine, the IP address of MySQL5.5 is 192.
Analyze the combination of aggregate functions and connection tables using bitsCN.com
Analyze the combined use of aggregate functions and connection tables
Look at this relationship
MERS (cust_id, cust_name, cust_contact)
Orders (order_num,
Centosyum install mysql and set the password (64-bit machine) CentOS
BitsCN.com
Centos yum install mysql and set the password (64-bit machine)
Yum install mysql
Yum install mysql-server
Yum install mysql-devel
Chgrp-R mysql/var/lib/mysql
Chmod-R 77
Detailed mysql table sharding design and application bitsCN.com
Detailed design and application of mysql table sharding
Generally, when the data in our database exceeds million records, we should consider table sharding or partition. this time I
Mysqlmysqladmin: commandnotfound solution bitsCN.com
Mysql mysqladmin: command not found
Sometimes, when you install the MySQL program, directly enter the mysql or mysqladmin command to send
The command does not exist because the system will
Mysql _ syntax summary bitsCN.com
Environment: mysql 5.5
Create database test:
1 create database test;
We can execute the code to create the test Database. if you want to check whether the database test has been created, you can use the code to view
Solution to installation failure of MySQL5.6 management account in linux bitsCN.com
Solution to installation failure of MySQL5.6 management account in linux
This is not an article, just to record the time I spent this afternoon for no reason. To
Mysql modification code LinuxMacUnix general bitsCN.com
Mysql: Linux/Mac/Unix/General
The myslq configuration file is required to modify the mysql encoding. the file is in/etc/my. cnf, mac users do not have this file by default. you can find
Slow query caused by incorrect MySQL prefix index bitsCN.com
Slow query caused by incorrect MySQL prefix index
The front-end time is related to a DB Project. alanc reports a query. using indexes is much slower than not using indexes. So I followed
Think twice about partitions: 1. although partitions can bring many benefits, they also increase management fees and complexity for implementing objects. Therefore, before partitioning, you need to carefully consider whether to partition the object.
MySQL solves bitsCN.com with SQL garbled characters in the Mac console
Solve SQL garbled characters in the Mac console
1. scenario: the mysql database is on the slave machine, the slave machine is on the LAN, the ssh host is required, and then the
MYSQL sharing: obtain the full definition statement of the access process bitsCN.com
MYSQL sharing: obtain the complete definition statement of the access process
[SQL]
SELECT db, specific_name AS OBJECT_NAME,
CONCAT (
CHAR (13 ),
CHAR (10
Mysqloutfileinfile import and export data (append mysqldump) mysqldump
BitsCN.com
Mysql outfile infile import and export data (append mysqldump)
Export
[Plain]
SELECT * into outfile '/tmp/jason.txt 'Fields TERMINATED by',' FROM test. jason;
Mysql obtains all database table names and field comments bitsCN.com
Mysql obtains all table names and field comments of the database.
1. obtain field comments
Java code
Select COLUMN_NAME column name, DATA_TYPE field type, COLUMN_COMMENT
[Mysql] An example of subquery bitsCN.com
[Mysql] An example of subquery
Assume that the table my_tbl contains three fields a, B, and c. now we need to query the minimum value of column B under each different value of column a in the table.
How to solve bitsCN.com
Solution to garbled characters after mysql is reinstalled
View the system parameters of the current connection:
SHOW VARIABLES LIKE '%char%';mysql> show variables like 'char%';+--------------------------+----------------|
New mysql User cannot log on to bitsCN.com locally
New mysql User cannot log on locally
Mysql is used. because the root permission is too high, appadmin is created for a new user. The permission is only for the database to be used. The creation
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