Install-free mysql with the command bitsCN.com
Install-free mysql command
How to use mysql without installation:
1. execute mysqld-nt.exe to start the mysql service.
2. for the initial database, the default username is root and the
Mysql replication function-"master-slave" structure bitsCN.com
Mysql replication function-"master-slave" structure
1. configure the master server
1. add content in my. ini
2. create an account with "copy permission"
Create an account
Grant all
Mysql database learning-1, obtain the original data bitsCN.com show databasesshow tablesinformation_schemashow tables statement. The output does not contain the temporary table. View all databases on the server.> show databases view the create
Mysql basics: log on and exit, change the user password, and add or delete users. now I am learning mysql, and I am the first to contact user management.
Note: mysql commands can be case sensitive.
============ Logon and exit =====================
The length of the mysql varchar field bitsCN.com
Length of the varchar field of mysql
When designing system fields today, I found myself not familiar with varchar. I have set a field. the type is VARCHER, and I tested it. it is found that not much
A simple script for detecting whether the mysql master/slave is normal or not bitsCN.com
Script for simple mysql master/slave check
I want to use a simple script to test whether the master and slave databases are normal.
01 #!
Mysql function instance-count the number of monthly login users bitsCN.com
Mysql function instance-count the number of monthly login users
Java code
Create function statics_user_login_month () RETURNS int (11) COMMENT 'monthly user count/r/N'
Why does mysql encounter Waitingfortablemetadatalock and its solution bitsCN.com?
Causes and Solutions for Waiting for table metadata lock in mysql
Metadata Locking
MySQL 5.5.3 and up uses metadata locking to manage access to objects (tables,
MYSQL obtains the auto-incrementing primary key. [four methods] bitsCN.com
MYSQL obtains the auto-incrementing primary key. [four methods]
After executing the insert operation on mysql in an application, we need to obtain the auto-incrementing
Statement bitsCN.com used to determine whether a table exists in MySQL and sqlserver
Determine whether a table exists in MySQL and sqlserver
MySQL:
Select count (*) FROM information_schema. tables where TABLE_NAME = "table name ";
//
MySQL learning footprint record 01-SOURCE, SHOW bitsCN.com
MySQL learning footprint record 01-SOURCE, SHOW
1. import data
command: SOURCE
; eg: mysql> source ~/MyDoc/create.sql;
2. SHOW COLUMNS FROM
The shortcut is
Using hard links to delete MySQL large files in seconds bitsCN.com
Using hard links to delete large MySQL files in seconds
Principle:
Hard link basics
When multiple files point to the same inode, inode connections N> 1, deleting any file is
The role and separation of ibdata in mysqlInnodb bitsCN.com
Functions and separation of ibdata of mysql Innodb
In the mysql INNODB data status, ibdata is used to store file data, while the table files in the folder of the database name are only
Mysql removes duplicate data bitsCN.com
Select can take alias, delete cannot.
1. when you use mysql to perform the delete from operation, if the FROM statement of the subquery and the update/delete object use the same table, an error will
Enable the mysql log function bitsCN.com in windows and linux
By default, the log management function is not enabled for mysql installation, which makes subsequent maintenance inconvenient.
Check whether logs are enabledMysql> show variables like '
Duplicate records in the MySQL Query table: bitsCN.com
Query repeated records in the MySQL table
(1)
1. search for redundant duplicate records in the table. Repeat Records determine the select * from peoplewhere peopleId in (select peopleId from
A possible optimization method for mysqllimit large offset bitsCN.com
A possible optimization method for mysql limit large offset
When the mysql limit statement has a large amount of data, the offset After limit is too large, and the first query
Analysis of mysql, mysqli, PDO bitsCN.com
Analysis of mysql, mysqli, PDO
Which of the following is better performance for PDO, MYSQL, and MYSQLI? Here we will make a simple comparison.
Normal mysql connections will certainly be discarded
Mysql5.1 green version installation tutorial and mysql-related commands (resolving mysqld-nt failure) bitsCN.com
Mysql5.1 green version installation tutorial and mysql-related commands (resolving mysqld-nt failure)
But most of the tutorials are
Simple mysql data operation bitsCN.com
Simple mysql data operations
01 mysql-uroot-partition tablename04alter table add fieldname fieldtype05alter table table1 add id int unsigned not Null partition primary key06alter table TN chang
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