Linux installs and configures issues that are logged during MySQL and Redis processes

Source: Internet
Author: User
Tags redis server

Chapter Catalogue
  • Mysql
  • Redis

There are many tutorials for deploying MySQL and Redis online under Linux, and here are some of the issues and workarounds that I have encountered during my deployment and configuration.

MySQL① when the installation is complete, the error starting mysql.the server quit without updating PID file to kill/etc/my.cnf The reason is: Mysql_safe under the specified/var/run/mari ADB and/var/log/mariadb do not exist or you can choose to create both directories ② local access after installation, but the remote machine is inaccessible

It needs to be configured so that MySQL can be accessed remotely.  Update user set host= '% ' where user= ' root '; This will error error 1062 (23000): Duplicate entry '%-root ' for key ' PRIMARY ' plus and host = ' localhost ', will not be an error, the above should be written to cause the primary key duplication. it will not take effect at this time, call flush privileges;

③ The root account has no permissions to connect to MySQL locally when a user with a user name is empty

Workaround: At this time telnet is possible, delete the user name is empty user, run flush privileges;

Redis① execute command without response using REDIS-CLI tool

After Redis is installed, use the REDIS-CLI tool to connect to the service side, but when you press ENTER to execute the command, the console simply wraps and does not return the result.

Ask others to understand that this phenomenon is the Redis server does not respond, so

Ps-ef|grep 6379 Identify the Redis server process and

Kill-9 the upper command to see the PID kill Redis-server Process

Then restart Redis-server, execute the command again, it's normal.

Http://www.cnblogs.com/tzyy/p/4864640.html

Linux installation and configuration problems logged during MySQL, Redis (GO)

Related Article

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.