MY.CNF configuration files and parameters for MySQL

[Mysqld]Port = 3306ServerID = 1Socket =/tmp/mysql. sockskip-locking Avoid the external locking of MySQL and reduce the chance of error to enhance stability.Skip-name-resolveDisable MySQL for DNS resolution of external connections, and Use this

Set up MySQL to allow extranet access

1. Modify the configuration filesudo vim/etc/mysql/my.cnfChange the value of the bind-address parameter to your internal/external network IP or 0.0.0.0, or comment out the line directly.2. Log in to the databaseMysql-u root-pEnter passwordmysql> use

MySQL database master-Slave construction

Main Library server: 192.168.1.100From the library server: 192.168.1.101Install MySQL on both servers,Yum-y install MySQL mysql-server mysql-devel Primary service Settings • Set Password:/usr/bin/mysqladmin-u root password ' passwd '.•

MySQL Online DDL

The InnoDB engine is currently using the following steps to perform DDL:1 Create a new non-visible temporary table (tmp_table) According to the table structure and DDL statements of the original table (original_table)2 Add write lock on the original

SQL statement modifies the MySQL table's self-increment primary key

In the development process, we will use some initialization statements, because of the foreign key relationship, we need to write some ID to die, then when we are initialized, we need to increment the table in MySQL from a certain value of the

MySQL CREATE database specifies UTF-8 encoding

The following script creates the database Yourdbname and sets the default character set to Utf8create IF not EXISTS yourdbname default CHARSET UTF8 COLLATE utf8_general_ci; If you are creating a database with the default GBK character set, you can

Improve write speed by configuring MySQL parameters (grooming)

1) innodb_buffer_pool_sizeIf you use InnoDB, then this is an important variable. InnoDB is more sensitive to buffer size than MyISAM. Mysiam may use the default key_buffer_size for large data volumes, but InnoDB is crawling with default values when

Springmvc mybatis MySQL blob Chinese garbled problem processing

Recently use AJAX request SPRINGMVC background query MySQL database, page display Chinese garbledInitially configured as follows in MyBatis? 123 selectid="queryContentById"  resultType = "java.lang.String" parameterType="String">

Accidentally MySQL became a table lock

As we all know MySQL database InnoDB engine is the default row lock, but today accidentally found my database how to become a table lock, let me very puzzled ~ ~ ~1. First look at my database engineShow variables like '%storage_engine% ';2. Create

MySQL Common Operation Command memo

1. Login database: mysql-uroot-p12345 (12345 for password)2. Creating the database: Create databases SENGUOCC; (SENGUOCC is the database name)3. See which databases are available: show databases;4. Using a database: use SENGUOCC;5. Show all tables

Root password reset for 3.1-mysql

MySQL does not have a password by defaultMysql-uroot or MySQL to log in.Set PasswordMysqladmin-uroot password ' hd792310 'Login commandmysql-uroot-phd792310If the password is forgotten, the password can be initialized1.vim/etc/my.cnfAt the core

MySQL change root password, set IP access

Change Password:  Method 1: Use the Set password commandMysql-u Rootmysql> SET PASSWORD for ' root ' @ ' localhost ' = PASSWORD (' Newpass ');Method 2: Use Mysqladminmysqladmin-u root Password "Newpass"If Root has already set a password, use the

ERROR 1044 (42000): Access denied for user ' root ' @ ' localhost ' to database ' MySQL '

mysql> use MySQLERROR 1044 (42000): Access denied for user ' root ' @ ' localhost ' to database ' MySQL 'Mysql> exitBye[[Email protected] ~]# service mysqld stopStopping mysqld: [OK][Email protected] ~]#

MySQL server has gone away error

1. Recently did insert database, then always reported a mistake. MySQL server has gone away. (e.g.)Looked up a lot of information, finally solved.1. The connection timeout may be: Enter php.ini and modify the value of Wait_timeout. Some versions may

"Go" [MySQL] Linux MySQL log special

Original link: http://blog.csdn.net/xiaoxu0123/article/details/62585381. Set the directory to be stored:[Email protected] etc]# MORE/ETC/MY.CNF[Mysqld]# # #此处省略N个字Log-error=/var/log/mysql/mysql_error.log #错误日志Log=/var/log/mysql/mysql.log # # #最好注释掉,

MySQL GROUP BY data grouping--traps

GROUP byThe group BY keyword is used in MySQL to group one or some field queries and returns the first of the duplicate records.Grammar:SELECT column,... From Tb_name GROUP by column1,column2 ...The user table is logged as follows: UID

MySQL table name capitalization issues under Windows and Linux

MySQL is case-insensitive under Windows, and the table name is automatically converted to lowercase when the script file is imported into MySQL, resulting in an error when you want to put the database export into use on a Linux server. Because the

Linux CentOS 6.5 Operating environment modify MySQL database password

The modified users are listed as root.first, the root of the original myql password;Method One:Outside the MySQL system, use the Mysqladmin#mysqladmin-u root-p Password "test123"Enter Password: "Enter the original password"Method Two:By logging into

Mysql Modify Database storage location

at work, we will encounter the need to change the database storage location, such as: the original database where the disk space is insufficient, and so on. compiling the installed Mysql[[Email protected] ~]# service mysqld status # First see MySQL

Mysql Modify Database storage location

at work, we will encounter the need to change the database storage location, such as: the original database where the disk space is insufficient, and so on. compiling the installed Mysql[[Email protected] ~]# service mysqld status # First see MySQL

Total Pages: 3233 1 .... 1904 1905 1906 1907 1908 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.