Grant mysqlgrant permissions to bitsCN.com
Mysql grant permission allocation
Change password
1. modify data in the database
Mysql-u root-p Press enter
Enter password
Mysql> user mysql
Mysql> select user, password from user; # View password
After MySQL deletes the data, the id starts from 1 bitsCN.com.
After MySQL deletes the data, the id starts from 1.
Usage:
Create table test
(
Id int unsigned not null primary key AUTO_INCREMENT,
Username VARCHAR (15) NOT NULL
)
AUTO_INCREMENT = 100
Paul Graham showed us an interesting way to compare various programming languages: to explain what problems various programming languages are used to solve. I found that this method is also useful in databases: Oracle: We need enterprise-level
Description of the returned value for performance test of explain SQL statements bitsCN.com
Description of the return value for performance test of explain SQL statements
The returned values of the explain SQL statement performance test are as
MYSQL database naming and design specifications bitsCN.com
MYSQL database naming and design specifications
Do you have a headache in obtaining MYSQL database naming and designing specifications? If this is the case, the following articles will
Mysql Chinese garbled characters and exported SQL statements and Excel problems solved by bitsCN.com
I wrote a crawler based on Heritrix over the past few days and used mysql to import and export data. when I encountered some garbled code problems,
Iptables setting after mysql master-slave synchronization is enabled
BitsCN.com
Iptables setting after mysql master-slave synchronization is enabled
The two are performing master-slave synchronization of mysql. when my mysql server version is 5.6.1
Duplicate MySQL auto-incrementing primary key after deletion problem bitsCN.com
Repeated issues after the MySQL auto-incrementing primary key is deleted
This is a problem with a friend of my colleague. The title may be a bit closed. I will
Mysql common data types and instance descriptions (study Note 1) bitsCN.com
1. Mysql in windows
Net start mysql [start]
Net stop mysql [stop]
Quit [exit mysql command line]
/C [cancel the input command]
Select version (), current_date ()
Mysql
[MySQL] account and permission management bitsCN.com
[MySQL] account and permission management
MySQL initial account management
The initial MySQL account is as follows:
[sql] [root@lx16 ~]# mysql -u root mysql> select host,user,password from
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 '
MySQL database server parameter optimization mycnf, 16 GB memory 8-core CPU bitsCN.com
MySQL database server parameter optimization mycnf, 16 GB memory 8-core CPU
Business Scenario: The backend supports online mobile phone update systems, with 1
Mysql backup recovery (view, stored procedure) bitsCN.com
Mysql backup and restoration (views and stored procedures)
Recently, when I backed up and restored mysql, I found that the view was restored and an error occurred while creating the view. I
A simple example of a mysql scheduled task: bitsCN.com
A simple example of a mysql scheduled task
If you want to execute the following statement every 30 seconds: [SQL] update userinfo set endtime = now () WHERE id = '000000'; you can create
Several binlog replication formats: bitsCN.com
Several replication modes of binlog
MySQL 5.5 has three different binary log formats: Mixed, Statement, and Row. the default format is Statement. Summarize the advantages and disadvantages of these
Set up the second mysql instance bitsCN.com with Port 3306 in the case of the mysqld service.
Create a mysql instance with the second port 3306 in the case of the original port 3308 mysqld service
1 download the tar.gz [root @ 472322 tmp] #
In Windows, how does Mysql reset the root user password bitsCN.com?
Link: http://www.feeldesignstudio.com/2013/05/windows-mysql-root-password-reset
Many methods of resetting the root user password on the Internet in Windows are invalid. here,
Mysql insertupdate usage bitsCN.com
Mysql insert/update usage
The following statements may be used for conditional data insertion in MySQL. Create a simple table for testing:
CREATE TABLE `books` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name`
Use bitsCN.com for the initial execution file at mysql startup
Use of the initial execution file at mysql startup
You can specify the SQL file initially executed after mysql is started in the configuration file. Its syntax is:
In [mysqld] or
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