Method 1: use the set password command
First, log on to MySQL.
Format: mysql> set password for username @ localhost = PASSWORD ('new password ');
Example: mysql> set password for root @ localhost = PASSWORD ('20140901 ');
Method 2: Use
View the current connection system parameters: Show variables like '% char % ';
Mysql> show variables like 'Char % ';+ -------------------------- + ----------------| Variable_name | value+ -------------------------- + ----------------| Character_
Simply put, you can use count and more fields in the query.
CopyCodeThe Code is as follows: Select count (ID), ID, name from table
It's embarrassing. My environment is 5.5, and the results can be obtained, but it won't work if I run it on the
Example:
Select email from xxxxxx where email is not null and email <> ''into outfile'/mail.txt 'Lines terminated by '\ r \ n ';
Note:
1. Export the file directory:Modify the directory of the output file name to put it in the specified
Command for backing up MySQL databaseMysqldump-hhostname-uusername-ppassword databasename> backupfile. SQLBack up the MySQL database in the format of a table with deletionBacking up a MySQL database is in the format of a table with deletion, so that
List of MySQL Common commands many of my friends have installed
MySQL But I don't know how to use it. In this article
Article We will learn some common MySQL commands from the aspects of connecting to MySQL, changing the password, and adding users.
I read some information about MySQL Performance Online.Article. I have a little bit of experience. Let's just say something!
Speaking of MySQL, it is an open-source database tool. If you want to improve performance, you can change it freely. Which
Read more
Summary
Permission
Allow Internet access
Column Operations
Modify column name
Modifying column attributes in MySQL
Others
Automatic completion and UTF-8 encoding for Logon Settings
Others
In the past few days, I 've moved the QBlog of the autumn garden to Oracle and fixed several bugs. Then I added some indexes to improve the running performance.
Then I put the autumn garden on MySql and ran around it. I found a lot of problems. I
Mysql common data export commands:1. mysql exports the entire databaseMysqldump-hhostname-uusername-ppassword databasename> backupfile. SQLMysqldump-hlocalhost-uroot hqgr> hqgr. SQL (if the root user does not use the password, you can leave-p. Of
For windows systems, the default local character set is gb2312. To enable the data table to use the gb2312 Character Set, write the SQL statement for creating the data table as follows:
Copy codeThe Code is as follows: CREATE TABLE TEST
{
...
...
Copy codeThe Code is as follows: 'mark' set ('index', 'best', 'hot ')
There were few users and few people who knew about it. After a long time, I finally got a set of knowledge points.Looking at the above structure, MYSQL is not stupid. Will it
Basic Introduction to MySQL (1 ):1. MySQL versions earlier than MySQL 4 can be managed using an official management tool, similar to MSSQL's "query analyzer"You can download it at http://dev.mysql.com/downloads/administrator/1.0.html.MySQL 4 and
Scale Out: horizontal scaling, adding processing nodes to improve overall processing capability
Scale Up: Scale Up to improve the overall processing capability of a single node.
ReplicationMySQL replication is asynchronous and suitable for
Select * from account where userName like 'ad % '; select * from account where userName> = 'ad' and userName
The results of these two queries are the same, and the efficiency seems to be similar. No specific efficiency test is conducted. If you
Mysql installation directoryDatabase directory/Var/lib/mysql/Configuration File/Usr/share/mysql (mysql. server command and configuration file)Related commands/Usr/bin (commands such as mysqladmin mysqldump)Start script/Etc/init. d/mysql (directory
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