Deepin system installation MySQL tutorial and related operations1. Install MySQLsudo apt-get install mysql-server, you need to enter the password two times, the root account password.sudo apt-get install mysql-client, this does not know what to do
To facilitate testing, you want to use two MySQL db instances. Take Windows systems as an exampleOf course to install the first MySQL database, very simple nothing to say. But to install again, when running MySQL setup, you will be prompted,
The main purpose of this paper is to test whether a single column should be indexed, with query time and number of scanned rows as reference. MySQL version 5.5.20A: Build a tableCREATE TABLE' record ' (' ID ' )int( One) not NULLauto_increment, '
1. User-defined-user compositionUser name + Host domain uniquely specify a user2. User RoleUser Login - Connect database management database and data3. Create a userDefine user name user name + host domain definition passwordpermissions or
1. Create a stored procedureIf| int) begin SELECT COUNT (*) from Book;end;Call the above stored procedure (call statement invokes a program created previously with CREATE PROCEDURE)Set @s=0; call num (@s);Note : Specifying that the parameter is in,
##########################################################MySQL index:A directory similar to a bookType:--"Normal index"--"Unique index uniquely--"PRIMARY key primary Key"-Foreign key foreign keyAdvantages:Improve query speedDisadvantages:Slows down
There is a field that holds the checkbox content, such as a career target selection for database field otworkgoal, saving 1,2,3,4 contentNow you need to use the pure MySQL statement to translate the field otworkgoal content into Chinese.Can be
Pessimistic lock (pessimistic lock), as the name implies, is very pessimistic, every time to take the data when they think others will change, so every time when the data are locked, so that others want to take this data will block until it gets the
I have been engaged in the development of a period of time, about the database of some small knowledge here to summarize1, COUNT (*), COUNT (1) differs from count (column)COUNT (*) evaluates the number of rows, including nullCOUNT (1) evaluates the
A brief introduction: reference several senior, especially m elder brother Big God's blog, let me suddenly realize, hurriedly record underTwo principles:Three algorithms for MySQL1 Simple Nested-loop JoinThe result set of the driver/external table
A large table, previously in the form of a hash partition table,Mysql> Show CREATE table history_uint;| History_uint | CREATE TABLE ' history_uint ' (' Itemid ' bigint () unsigned not NULL, ' clock ' int (one-by-one) not null DEFAULT ' 0 ', ' Value
In the process of learning and development, there are several MySQL databases, such as Master-slave cluster, sub-Library sub-table, the development phase of the installation of multiple MySQL instances on a single machine is very
Detailed description of MySQL encryption and decryption instances
Detailed description of MySQL encryption and decryption instances
Data encryption and decryption are very important in the security field. For programmers, storing user passwords
Summary of basic statement optimization principles in Mysql
Basic mysql statement Optimization Principles
I. Avoid Column Operations as much as possible, which will cause index failure. Summary of the basic statement optimization principles in
Mysql5.7 how to change the user's initial password
Modify the user's initialization password:
Set password = PASSWORD ('your new password ');
Alter user 'root' @ 'localhost' password expire never;
Flush privileges;
Create a new user: mysql5.7 how
Mysql command to close the database
1. Start directly with mysqld
# Current mysql server running environment
2. mysql secure startup (mysqld_safe)
# Use mysqladmin to disable the mysql server that was previously started
# Use mysqld_safe to
Garbled Chinese characters in the imported SQL File
PL/SQL import SQL file Chinese garbled Solution
The pl/SQL export file received from other places XX. the SQL file is imported to the local database using the import function in the pl/SQL tool,
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