As a site or server operation personnel, the site backup and restore operations must be skilled. MySQL database Export and import operations are essential, for the general user, may use more than phpmyadmin such a visual interface, but this
MySQL's Down right run
Create a new user like MySQL tutorialNET user MySQL Microsoft/addnet localgroup users Mysql/delDoes not belong to any groupIf MySQL is installed in D:mysql, then, give MySQL Full control of the permissionsThen in the system
Today due to accidental login MySQL server (the MySQL server is equipped with phpMyAdmin) to view the process (show processlist), I went to a large number of unauthorized users to connect to MySQL, the process results are as follows:
There is a scene, a tens of thousands of-record table, the primary key is ID, and I want to take a few records with ID 30,20,80,40 from the table.
Note that 30,20,80,40 is the order I expected, and I want MySQL to return records in this order.
So
Problem status
Restart MySQL is also a failure, look at the errorlog of MySQL, you can only see the following information similar to:
Forcing close of thread 12232 User: ' Root '
With mysqladmin simple monitoring of the next MySQL situation:
Char type
The length of the char column is fixed to the length declared when the table was created. The length can be any value from 0 to 255. When you save the char value, fill the space on their right to reach the specified length. When a char
Resolve failed to start
A, first use the command C:/Program files/mysql/bin/mysqladmin-u root-p shutdown to close MySQL
B, and then under the cmd command line, execute net start MySQL to start MySQL.
Hint: Plugin ' InnoDB ' registration as a
SQL Alias syntax for ① tables
The code is as follows
Copy Code
SELECT column_name (s) from table_name as Alias_name
Example:
The code is as follows
Copy Code
SELECT Po. OrderID,
User Authorization method
You can add a new user by issuing a GRANT statement:
The code is as follows
Copy Code
shell> MySQL--user=root MySQLMysql> GRANT all privileges in *.* to Monty@localhostIdentified by ' something
The first way
Update id= "UpdateBatch" parametertype= "Map" >Update AA SetA=#{FPTM},B=#{csoftrain}where C in#{item}
But the values of the fields that are modified in this way are the same.
The second way
Note If you want to modify the database
1. Use the following code to test the normal operation after installing the mysql database: The code is as follows:Copy code $ Cn = mysql_connect ("localhost", "root", "root") or die ('database Server Password Error! ');If ($ cn){Echo 'success ';
As shown in the following figure, the remote database connection prompt is "Can't connect to MySQL server (10060 ).When this problem occurs, we first make an analysis of the reasons for this situation:A. bind-address limits the connected ip
When MySQL multi-instance is enabled, many environments choose to use mysqld_multi to manage multiple instances. However, unfortunately, after MySQL 5.6,Mysqld_mutli cannot disable MySQL.To solve this problem, first confirm:Mysqladmin-h127.0.0.1-P330
MySQL does not have an integrated graphical interface management tool. For users, using the doc interface alone to operate mysql databases is very troublesome. Therefore, some mysql graphical management tools are commonly used, among them, navicat
There are two methods to modify the maximum number of connections in the mysql database. Today, we will analyze the features and differences between the two methods so that we can better maintain mysql.Method 1: Use commandsYou can use the set
[Root @ centos var] # service mysqld stopMySQL manager or server PID file cocould not be found! [FAILED]Solution:First, check the process. The code is as follows:Copy code [Root @ irxpert-test/] # ps aux | grep mysq *Root 10274 0.0 0.0 68160 1336
Today, I saw an article about the slow query speed when mysql has 1 million data records. In this article, we will discuss the optimization solution for this problem.Lab preparationHere I have prepared a table with 10 million data for testing. By
The following error is reported during use:[Root @ localhost bin] #. /mysql-uroot-pEnter password: Welcome to the MySQL monitor. commands end with; or \ g. your MySQL connection id is 8 Server version: 5.6.24 Source distributionCopyright (c) 2000,201
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