Using the root user Perform: Grant Select,insert,update,delete on projects.* to ' test ' @ ' percent ' identified by ' test '; Results: ERROR 1044 (42000): Access denied for user ' root ' @ '% ' to database ' XXXXX ' Workaround: User MySQL; SELECT *
MySQL default is to turn off the use of the InnoDB storage engine, set InnoDB as the default engine as follows. 1. View MySQL storage engine condition: mysql>show engines. InnoDB | YES, indicating that this MySQL database server supports the InnoDB
A comprehensive technology for MySQL optimization, mainly including
The design of the table is rationalized (in accordance with 3NF), some of which need inverse paradigm; http://www.cnblogs.com/ChaosJu/p/4543210.html
SQL statement
the test code for the database is as follows: 1. The new table Test,sql code is as follows: CREATE TABLE test (field1 int not null) Type=myisam, insert INTO Test (field1) values (1); 2, delete the existing stored procedures, the code is as follows:
Splicing of stored procedure variables sometimes we need to blur the query, but at the same time we have to use the variable in the fuzzy query, we want to join the variable after a% to match the fuzzy query then we will use the Concat function
Recent company projects to use MyBatis, I have not contacted before, on the Internet to find some information research. The function of JDBC implementation based on MyBatis connection MySQL database was preliminarily made.Employee.javapackage
MySQL Replication TableIf we need to copy the MySQL data table completely, including the table structure, index, default value and so on. If you only use CREATE TABLE ... The SELECT command is not possible.This section will show you how to copy the
MySQL CREATE Database
Create a database using MysqladminWith a normal user, you may need specific permissions to create or delete a MySQL database.So here we are using the root user login, the root user has the highest privileges, you can use
PhpConnect to MySQL
PHP 5 and later recommends connecting to MySQL using the following methods:
mysqli Extension ("I" means improved)
PDO (PHP Data Objects)
We used the MySQL extension in early PHP versions. However, this
Bug #19528825 "unable to purge a record ",
Overview:
In the production environment, when insert buffer is enabled (innodb_change_buffering = all), some instances occasionally encounter the "unable to purge a record" error. This is actually an old
MySQL -- servicemysqlstart error, mysql cannot be started, solve mysql: unrecognizedservice error (episode)
Service mysql start error. mysql cannot be started. The method for resolving the mysql: unrecognized service error is as
Mysql Stored Procedure
Note: The difference between stored procedures and functions: stored procedures do not return values. 1. view the Stored procedure show procedure status \ G2, delete the Stored procedure drop procedure stored procedure name 3.
Syntax differences between stored procedures in mysql and oracle
Syntax differences between stored procedures in mysql and oracle
1. conditional statement: mysql uses the elseif keyword, and oracle uses the elsif keyword;
Oracle:
If expression
A cluster problem case solved by the MySQL slave_net_timeout parameter, slavenettimeout
Background]After upgrading from 5.5 to 5.6 for a set of database clusters, alter. log reports a warning exception.Copy codeThe Code is as follows:15:44:51 19633 [
MySQL order by Performance Optimization Method Instance, mysql Performance Optimization
Preface
In the course of work, various business requirements require order by sorting when accessing the database. Sometimes unnecessary or unreasonable sorting
Use innodb_force_recovery to solve the problem that MySQL cannot be restarted after a crash, mysqlinnodb
Background
A startup friend's host reports the following error when restarting the MySQL service due to disk array damage to the machine
MySQL Semisynchronous Replication introduction,
Preface
Before MySQL 5.5, the default Replication mode is Asynchronous. MySQL 5.5 provides the Semisynchronous Replication mode as plugins. Before introducing semi sync, we should first understand:
Four Methods for viewing the mysql version in Linux: linuxmysql
1: In the terminal: mysql-V. The following is a code snippet:Copy codeThe Code is as follows:[Shengting @ login ~] $ Mysql-VMysql Verver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
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