Mysql routine problem records

Source: Internet
Author: User

1. Modify the mysql Log Path
Vim/etc/my. cnf
Log-bin = mysql-bin
To:
Log-bin =/$ PATH/mysql-bin
After modification, save and exit.
Modify the mysql-bin.index file to modify the path to an existing log.
The default value is./mysql-bin .....
Change to/$ PATH/mysql-bin ....
After replacement, You can restart the mysql service. Otherwise, an error occurs.
2. Problem: Error: 'lost connection to MySQL server at 'reading initial communication packet ', system error: 113 'errno: 2013 retry-time: 30 retries: 86400
Solution: Add a startup parameter in the [mysqld] section of my. cnf.
Skip-name-resolve
Save and restart. The skip-name-resolve option can disable dns resolution.
3. Problem: Error reading packet from server: Access denied; you need the replication slave privilege for this operation (server_errno = 1227)
Solution: the master server does not have enough replication permissions and the master server re-grants permissions.
Grant replication slave on *. * to 'replicase' @ 'IP address' identified by 'Password ';
Flush privileges;
Remote retest is normal.
..
This article is from the "My O & M path" blog

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.