In learning the drop method to delete the user, according to the book has not been operational success, and then to the online search for some other information, only to understand the method of the drop, posted out and share with you.(method i)
Automatically backs up MySQL databases under CentOS and synchronizes the differences to other network hosts1, add backup.sh:vim/root/mysql_backup/backup.sh under/root/mysql_backup/, then add the following code inside:Mysqldump-uroot-p ' a123456 '
See: http://blog.yemou.net/article/query/info/tytfjhfascvhzxcyt345In the MySQL in statement is the appearance and the inner table as a hash connection, and the EXISTS statement is the external loop loop, each loop loop and then query the internal
After logging in to the MySQL server, you can use the grant command to create a user and assign permissions.mysql>for-adatabase changedmysql> GRANT select,insert,update,delete , Create,drop -on MySQL -to [email protected]0 rows affected, 1
1. Numeric type
Integer type
Bytes
Minimum value
Maximum Value
tinyint
1
Signed-128Unsigned 0
Signed 127Unsigned 255
smallint
2
Signed-32768Unsigned 0
Signed 3
Just to review this chapter today, will be published, as a review for their own Link Database$link = Mysqli_connect (' LOCALHOST/IP address ', ' username ', ' password ', ' database name ');Set character setsMysqli_set_charset ($link, ' UTF8
1, create the index, must be based on the actual situation to create, if the connection table query, such as a master account to connect multiple sub-accounts, you can consider two or more than three multi-index;2, reasonable use of time sorting,
Mysql-5 data retrieval (3), mysql-5 Data RetrievalCalculated Field
If you want to display both the company name and the company address in a field, the two information is generally included in different columns
The city, state, and zip codes are
MySQL uses LVM snapshot for backup and mysqllvm Snapshot Backup
Create an lvm disk. The lv I created here is mydatalv and mounted to/data.
[Root @ localhost ~] # Lvs lv vg Attr LSize Pool Origin Data % Meta % Move Log Cpy % Sync Convert mydatalv
What should I pay attention to when migrating data from MySQL to Oracle?
Precautions for migrating data from MySQL to Oracle, There are the following points
1. Automatically increasing data type Processing
MYSQL has a data type that increases
My SQL 1067 error and encoding solution, sql1067
Most of My SQL statements use the green version (extract version) and then register the service for convenience.
However. Configuration files have a headache.
First, configure the mysql environment
Monitor mysql options
After installing mysql, You need to monitor the mysql service.The check_mysql provided by nagios open-source is good for mysql Server Load balancer. However, the monitoring of database hosts is insufficient. Use a monitoring
[Consolidate Mysql Basics] Detailed description of mysql explain execution plan, mysqlexplain
Original article address
1) The larger the number in the id column, the more advanced the execution. If the number is as large as the number, the
30-minute MySQL Quick Start (illustration) and mysql Quick Start
1. Install MySQL
MySQL download
Http://dev.mysql.com/downloads/mysql/
MySQL version Selection
Custom MySQL feature Installation
Custom Feature Selection
Custom Path Selection
Set
Detailed description of formatting dates in mysql and detailed description of mysql dates
1. the DATE_FORMAT () function is used to display date/time data in different formats.
DATE_FORMAT(date,format)
The format of the format parameter is
MySQL error 1418 Cause Analysis and Solution, mysql1418
Analysis and Solution to error 1418 in MySQL
Specific error:
When using mysql to create and call stored procedures, functions and triggers, the error code is 1418.
ERROR 1418 (HY000): This
View, create, and modify the encoding formats of databases and data tables in mysql.
1. view the database encoding format
mysql> show variables like 'character_set_database';
Ii. view the data table encoding format
Mysql> show create table ;
3.
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