# Path to installation directory. All paths are usually resolved relative to this.Basedir = "D: \ MySQL Server 5.1 /"# Path to the Database RootDatadir = "D: \ MySQL Server 5.1/data /"
However, services are not generated because of no installation.
CopyCodeThe Code is as follows: Error code: 1418
This function has none of deterministic, no SQL, or reads SQL data in its declaration and binary logging is enabled (you * might * want to use the less safe log_bin_trust_function_creators variable)
For example, errors such as "got a packet bigger than 'max _ allowed_packet 'bytes" or "MySQL server has gone away" occur during Database Import, generally, the data imported is larger than the maximum package size limited by the system. The default
The coalesce function can accept multiple parameters and returns the first non-null value of these parameters. If all the provided parameters are null, null is returned.The ifnull function is the same as the coalesce function, but only two
During the execution of transactional statements, the server will perform additional processing. When the server executes multiple transactions in parallel, in order to record them together, the concept of transaction cache needs to be introduced.
In MySQL, the order by and group by are as follows:Select
From
Where
Group
Order
Note:Group by is executed first than order by, and order by does not sort the group by. If there is only one record after group by, order by will be invalid. To
The information_schema database is generated after mysql 5.0. A virtual database does not exist physically.
The information_schema database is similar to the "Data Dictionary" and provides a way to access database metadata, that is, Data. For
Mysql "on duplicate key update" Syntax
If the on duplicate key update is specified at the end of the INSERT statement and the DUPLICATE value appears in a UNIQUE index or primary key after the row is inserted, UPDATE is executed ON the row with the
1. When creating a MySQL table, the field must be set to a non-empty value and the default value of the field must be set.2. When creating a MySQL table, if the field needs to be NULL, you need to set the default value of the field. The default
I saw a buddy write a tutorial and record it. I am ready to lose weight at any time.
1. Delete the mysql-test folder; 2. Delete the SQL-test folder;3. Delete the debug folder under the bin directory;4. Delete all files with the. pdb extension in
When using mysql, you sometimes need to query records with unique fields. Although mysql provides the keyword distinct to filter out redundant duplicate records, only one record is retained, but it is often used to return the number of records that
The default Scheduling Policies of MySQL can be summarized as follows:· Write operations take precedence over read operations.· Write operations on a data table can only occur once at a time point, and write requests are processed in the order they
About 0.2 million of data insertion operations were encountered during work. After the program was compiled, it was found that the Operation timed out. The maximum PHP Execution time was modified to 600, or timed out. Check the number of data
First, start the command line.
1. Run:Taskkill/f/im mysqld-nt.exe
The following operations operate some programs in the bin directory of mysql. If no environment variables are configured, switch to the bin directory of mysql and execute the
When I visited the Forum today, I found a seemingly simple problem, but it attracted wide attention:This is a very early interview question:A table contains an ID auto-incrementing primary key. After 17 records are inserted, records 15, 16, and 17
The prompt command displays the current user, database, time, and other information at the mysql prompt.
Copy codeThe Code is as follows: mysql-uroot-p -- prompt = "\ u @ \ h: \ d \ r: \ m: \ s>"
After the setting is successful:Copy codeThe Code is
Test Table level;
Copy codeThe Code is as follows: create table test. level (name varchar (20 ));
Insert some data;
Code
Initialization
Copy codeThe Code is as follows: drop procedure if exists useCursor //
Create a stored procedureCopy codeThe Code
1.
Convert the number of a character to a number. For example, convert '0' to 0, which can be directly implemented by addition.For example, sort d in the pony table and define d as varchar.
Select * from pony order by (d + 0)
2. when performing
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