Mysql backup recovery (view, stored procedure) bitsCN.com
Mysql backup and restoration (views and stored procedures)
Recently, when I backed up and restored mysql, I found that the view was restored and an error occurred while creating the
How to View mysql version bitsCN.com
How to View mysql version
1: in the terminal: mysql-V. The following is a code snippet:
[Shengting @ login ~] $ Mysql-V
Mysql Verver 14.7 Distrib
1. View MySQL log mysqlshowglobalvariableslike % log %; + ----------------------------------------- + ----------------------- + | Variable_name 1. View MySQL log
mysql> show global variables like '%log%';+-----------------------------------------+-------------------------
The root user name in ubuntu cannot go to mysql. how can I view the user name and password, and how can I modify the root password in Ubuntu?
Mysql-u root-p press Enter. after entering the password, the system prompts "access denied... ues password YES/NO" error.
Step 1:
In this case, you need to enter the/etc/mysql
password, and then enter the password to use. This is relatively safer. After correct connection, the welcome page will appear. As shown in:
Exit the database and use the quit command.When an application connects to the database, it is recommended that you do not use the root administrator user to connect. A good way is to create one or more common users with specific permissions for the application to operate the database. Ordinary users follow the minimum permission principle, which can maxi
We sometimes need to look at the execution history of MySQL, such as when we do SQL optimization, at least to know what SQL is executed, the framework will generally help us to assemble SQL, so in the program will not be able to print out SQL, this time need MySQL generalLog out.
View settings MySQL genneral log‘%
[MySQL] view the MySQL configuration file path and related configuration (1) about the configuration file path, sometimes, I found that although I tried to modify some variables in the configuration file, it did not take effect. It was later discovered that the modified file was not the configuration file read by the MySQL
How to View binlog data of MySQL
Binlog is a binary log that records all changes in the database.
When the SQL statement execution of the database is changed, a record will be written at the end of the binlog, and the statement parser will be notified to complete the statement execution.
Binlog format
Based on statements, it cannot be ensured that all statements are successfully executed in t
/my.cnf is the MySQL boot loaded configuration file.If the above command has no output, MY.CNF is not set using the specified directory.2. View MySQL default read my.cnf directoryIf you do not set a My.cnf,mysql startup with the specified directory, the root directory of the installation directory and the my.cnf file u
View the default MySQL database code bitsCN.com
View the default encoding of the MySQL database
1. use the status command to display the relational information of the database, for example:
mysql> status;————–mysql Ver 14.12
Tags: GPO mysq oba log tor grep table span ack
We sometimes need to look at the running history of MySQL, for example, when we do SQL optimizations, at least we need to know what SQL is running. The framework usually helps us to assemble SQL, so it's not always possible to print out SQL in the program, which requires MySQL's generalLog out.
View settings
1) Start:Sudo/etc/init.d/mysql start2) Stop:Sudo/etc/init.d/mysql stop3) Reboot:Sudo/etc/init.d/mysql restart4) View log:Cat/var/log/mysql.errCat/var/log/mysql/error.log5) not supported in ChineseChange/ETC/MYSQL/MY.CNFAdd the fol
arguments)
cascaded: Conditions to meet all related views and tables when you update a viewLocal: When you update a view, you meet the criteria defined by the view itself
tips: The best way to create an attempt is to add the WITH cascaded CHECK option parameter, which is more stringent
Security of data can be guaranteed
View ActionsCreate a
How to view the encoding format bitsCN.com selected during mysql database installation
Enter the following in dos mode:
1. cd C:/Program Files/MySQL Server 5.5/bin
2. mysql-h127.0.0.1(The address of the host you want to access)-uRoot(User name)-pRoot(Password)
3. show variables like 'character % ';
You can
1) about the configuration file pathSometimes I find that although I try to modify some variables of the configuration file, it does not take effect. It turned out that the modified file was not a configuration file read by the MySQL server.If you don't know the profile path currently used by MySQL, you can try this:As can be seen, the server first reads the/etc/my.cnf file, and if it finds that the file do
How does MySQL view metadata lock blocking? mysql metadata
How does MySQL view metadata lock blocking?
Procedure:
1. session 1 execution:
start transaction; select *from t1;
2. session 2 is executed after Step 2 is executed:
drop table t1;
The drop Statement of sessio
Mysql Learning 1-create, view, and delete database bitsCN. comMysql Learning 1 --- CREATE, view, and delete a DATABASE 1. CREATE, view, and delete a DATABASE in Mysql. CREATE a DATABASE using the SQL statement CREATE DATABASE:
Create database name;
We sometimes need to check the execution history of mysql. for example, when we perform SQL optimization, we should at least know what the executed SQL is. the framework will generally help us assemble the SQL, therefore, the SQL statement may not be printed in the program. mysql generallog is required at this time.
We sometimes need to check the execution history of
Tags: img fetch stat EBE ONS change check information MDFThis article "My MySQL Learning experience (11)" will explain the MySQL view What are the reasons for using a view? 1, security: This is generally done: Create a view that defines the data that the
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.