Source: http://jingyan.baidu.com/article/8cdccae946133f315513cd6a.htmlRed part for me to addMySQL version 5.7 and above is different from the previous configuration, here to share with you experience.Tools/Materials
MySQL 5.7 and later zip
1. Copy table structure and data to new tableCREATE Table New Table SELECT * from old tableThis method will copy all the contents of oldtable, of course, we can use delete from newtable;But one of the worst things about this approach is that the new
MySQL root can not reset password (improper operation caused)/etc/my.cnf added Skip-grant-tables in safe mode password-free login no problem (MySQL library is in), and then reset the password in MySQL after the exit, will just in/etc/ MY.CNF
Error Description:Add user insert into Mysql.user (Host,user,password) VALUES ("localhost", "Test", Password ("1234"));Report the following error 1364 (HY000): Field ' ssl_cipher ' doesn ' t has a default value errormysql5.1 The above version, I was
1.mysql Master-slave replication:MySQL servers are divided into primary servers for write operations and from servers that are used to replicate the contents of the master server at all times. This allows you to keep multiple server data in sync, so
Chapter II MySQLFirst, fuzzy queryLike1. Field like ' Hebei% ' represents any n characters2 field like ' Hebei ____ ' _ stands for any 1 charactersTwo, inSyntax: SELECT field column 1, field 2,... From table name WHERE field x in (value 1, value 2,
MySQL supports several storage engines as processors of different table types, and the MySQL storage engine includes the engine that handles transaction security tables and the engine that handles non-transactional security tables:
MyISAM Manage
declaring variablesSetting Global variablesSet @a= ' a new variable ';Variables used in functions and stored procedures DeclearDeclear a int unsigned default 1;This variable needs to be set to the type of the variable and only exists at begin. End
Using Tcmalloc to optimize MySQLHttp://download.savannah.gnu.org/releases/libunwind/libunwind-1.1.tar.gzHttp://gperftools.googlecode.com/files/gperftools-2.1.tar.gzInstall by referring to MySQL management path 19 pageTAR-XF libunwind-1.1.tar.gzCD
Authorization to the user' User1 ' @'192.168.1.%'wangshaojun';Specify the library, user name User1 all under the network segment, password WangshaojunPermissions are not valid after authorization, refresh permissions> Flush Privileges;View database
Installing MySQL today prompts the following error:--------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------
QT4 installation Please refer to: Installing QT 4 under CentOS 6.5For MySQL installation Please refer to the following: CentOS 6.5 installation configuration MySQL1. Prevention in case, first install the Mysql-devel (must be installed!) )。 If you do
first, optimistic about the lock introductionOptimistic lock (optimistic Locking) relative pessimistic lock, optimistic locking hypothesis that the data generally do not cause conflict, so when the data is submitted to update the data will be
Ubuntu install MySQL can't find Mysql.sock solutionRestart MySQLView MySQL LogsGedit/var/log/mysqld/err.logcan find no Mysql.sockBut there is a mysqld.sockFile address directory:/var/run/mysqld/mysqld.sockWill php.ini the following
[Mysql] optimizes the hardware and mysql hardware.I. Features of CPU utilization in maximum cpu Performance Mode
5.1 up to 4 cores available
5.5 up to 24 cores available
5.6 up to 64 cores available
One query corresponds to one logical CPU.
If
[Mysql] high-availability cluster MMM, mysql cluster mmmI,Common topology of Replication
The replication architecture has the following basic principles:
(1) Each slave can have only one master;
(2) Each slave can have only one unique server ID;
(3)
From MySQL5.7.6, the installation of MySQL prompts "please type net helpmsg 3534 for more help" solution, mysql5.7.63534
The following error is prompted when installing MySQL today:
Zookeeper ------------------------------------------------------
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