Learn common MySQL operation commands
1. Start the MySQL server
In fact, the previous article describes how to start MySQL. Two Methods: one is to use winmysqladmin. If the machine runs automatically at startup, you can directly go to the next step.
When mysql is started in linux today, The system prompts mysql Starting MySQL .. The server quit without updating PID file. Next I will introduce The solution.
I found a bunch of methods from the Internet as follows:
1. It may be that
Today, we used the source command to import data, but the ERROR 2006 (HY000) at line ***: MySQL server has gone away ERROR occurred, according to the prompt, it seems that the size is limited. I will refer to the specific process below.
Use the
This article introduces how to batch Delete tables with the same prefix and modify table names in mysql.
If many tables need to be deleted and the table has the same prefix, we may need the following statement:
The Code is as follows:
By default, mysql will automatically reverse parse. If we cannot handle the problem, we will find a large number of unauthenticated user prompts when viewing show processlist, the following describes how to solve unauthenticated user.
Example
Mysql is case-sensitive by default. If we write a field Abc in the database, it will prompt that this field is not stored if I write it directly in abc during query, the following describes how to configure mysql with no case sensitivity.
1. Log On
In mysql, the Rand () function is used to query random data in a data table. However, the Rand () function uses tens of thousands of records quickly, if tens of millions of records may cause problems, let's introduce the usage of the Rand ()
The error "ocould not initialize master info structure" is prompted when mysql is used today. I will summarize the solution for you.
MySQL sets synchronization Replication and splits the following commands into two groups of inputs, as shown below:
1
The cpanel panel is a host management system. Many IDC vendors may use the cpanel panel. How can we create and manage a mysql database in the cpanel panel, here is my summary.
To create a new MySQL database, you only need to perform the following
Because symfony2 requires php5.4.11 or later versions to run well, so I re-installed php5.5 today and re-installed the new mysql version. But when I was about to start Mysql, I found a prompt that "MySQL Daemon failed to start" failed to start, so
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, an effective method is provided:
Step 1: Stop the MySQL service:
You
I have been using the mysql database software, which is stable and highly efficient. There are several possible causes for serious performance problems:
1. The index is not created;
2. SQL statements are too complex;
3. Configuration Error;
4. The
1. Install MySQL
This should be very simple, and I don't think there is much problem with the installation, so I will not talk about it much. Let's talk about the configuration below.
2. Configure MySQL
Note: In Ubuntu, MySQL only allows local
The first step is to limit the concurrent processing of Innodb. If innodb_thread_concurrency = 0, you can change it to 16 or 64 to view the machine pressure. If
Very large. First change to 16 to put pressure on the machine, and then gradually
This article provides a detailed analysis of 30 common methods for optimizing SQL statement queries in MySQL. For more information, see
1. To optimize the query, try to avoid full table scanning. First, consider creating an index on the columns
For example, in Windows server, the SQL Server database is installed. in linux, the mysql database is installed, and the first version of the Mysql database is released on Linux.
I. mysql Introduction
MySQL is a relational database management system
1. Disable the mysql service.
# Service mysql stop
If an error message such as mysql: unrecognized service is displayed.
First, check for mysql. server and use: find/-name "mysql. server"
Run the/usr/local/mysql/share/mysql. server stop
BSQL Hacker
BSQL Hacker is developed by the Portcullis lab. BSQL Hacker is an automatic SQL injection tool that supports SQL blind injection. It is designed to cause SQL overflow injection to any database. BSQL Hacker applies to users who have
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