Event Type: Error
Event Source: Service Control Manager
Event Type:NoneEvent ID: 7034
Date: 2012-11-1
Event: 9:25:52User: N/
COMPUTER: SVCTAG-HZWGF3XDescription:The service MySQL stops unexpectedly. This occurs once.
For more information, see Help
They will discuss the statements that return data, such as INSERT and statements that do not return data, such as UPDATE and DELETE. Then they will write a simple program to retrieve data from the database.
Execute SQL statements
Now we have a
SET: set global log_bin_trust_function_creators = 1;
1. Function func_splitStringTotal: splits the string according to the specified method and calculates the total number of units.
Copy codeThe Code is as follows: DELIMITER $
Create function
There are two common methods for empty mysqll table content: delete and truncate. The delete statement without the where parameter can delete all content in the mysql table. You can also use the truncate table to clear all content in the mysql table.
ON clause and WHERE clause are differentA simple method to better understand complex matching conditions with WHERE... is null clausesMatching-Conditions is different from Where-conditions.
A note ON "a left join B ON conditional expression"
ON
We know that temporary tables have the following features:
1. At the SESSION level, a SESSION is automatically dropped once it is disconnected.
2. It depends on the default engine. If the default engine is INNODB, And you are crazy about using
A problem occurred while using order by today. I found that the previous understanding of ORDER BY is incorrect.
I saw the order by usage on the w3s website and thought it was to sort the selected data in ascending or descending ORDER of the
To check whether the event scheduler is currently enabled
Show variables like 'event _ schedount ';
Enable Event ViewerSet global event_scheduler = 1;
Create eventSyntax:Create event [if not exists] event_nameOn schedule schedule[On completion [NOT]
One solution:
If an error occurs during Website access, check my. cnf: It is found that innodb_buffer_pool_size = 2048 M is too large and can be adjusted to innodb_buffer_pool_size = 1024M. There are other solutions to this problem on the Internet,
Dual-system configuration and MySQL database storage situation: the mysql database is stored in d: \ MySQL \ data under Windows XP, And the Linux system is Ubuntu Server 9.10.
After the dual-system is installed, use GURB to start to Ubuntu Server 9.
1. How to obtain the latest MySQL version?
To install MySQL, you must first obtain the latest version of MySQL. Although we all know that MySQL can be found in FreeBSD Packages, I suggest you go to the network to find the latest version of MySQL. I
Version: 5.5.19-winx64
1. Change the my-small.ini TO my. ini (please change according to your machine configuration)
2. Enter the following in the command line:\ Bin \ mysqld -- console press enter and you will see the following:
Mysqld: ready
To randomly extract a record FROM the tablename table, the general syntax is: SELECT * FROM tablename order by rand () LIMIT 1.
However, I checked the MYSQL official manual. The prompt for RAND () indicates that the RAND () function cannot be used
Method 1. log on to mysql locally, change the "host" item in the "user" table in the "mysql" database, and change "localhost" to "%"
# Mysql-u root-prootMysql> use mysql;Mysql> update user set host = '%' where user = 'root ';Mysql> select host,
For versions earlier than 4.0, varchar (20) refers to 20 bytes. If UTF8 Chinese characters are stored, only 6 characters can be saved (3 bytes for each Chinese character)
Varchar (20) is a version later than 5.0. It can contain 20 characters,
1. How can I change the root administrator password of mysql at the win2K command prompt?
> Mysql-u root-pEnter password :******Mysql> use mysql;Mysql> update user set password = password ('new _ password') where user = 'root ';
In this way, you
MySQL supports several storage engines as processors for different table types. The MySQL storage engine includes the engine for processing transaction security tables and the engine for processing non-transaction security tables:
◆ MyISAM manages
Modify my. ini and add
Default-storage-engine = INNODB
The red font indicates the engine name to be specified.
Use SQL statements to modify the engine of a table:
Alter table tableName type = InnoDB
My. ini file for reference (http://www.my400800.
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