Redhat start MySQL failure and reset password

Source: Internet
Author: User
Tags mysql query

CD Usr/local/mysql/mysql5.6/bin

[[Email protected] bin]# service mysql-libs-5.1.73-8.el6_8.x86_64 start
Mysql-libs-5.1.73-8.el6_8.x86_64:unrecognized Service
[[Email protected] bin]# service MySQL start
Mysql:unrecognized Service

@ Reference articles and original text

Updated: 2013-08-24 20:56| Tags: mysql under the CentOS installed after the installation of MySQL install, but found that the service mysqld start can not open the presence of mysqld:unrecognized service, online people say etc/rc.d/init.d/-q mysql query found is mysql-server is not installed immediately under terminal enter yum install MySQL-  Server installs the server side of MySQL, and then enters service mysqld Restart successfully resolves the issue. 
View Code

Yum Install Mysql-server

Service Mysqld start started successfully

Reset Password: @ Reference article

CD Usr/local/mysql/mysql5.6/bin

Service Mysqld Stop

VI/ETC/MY.CNF,MYSQLD module Add skip-grant-tables# #忽略mysql权限问题, log in directly

Esc--:wq

Service mysqld Start

This will not allow the password to enter MySQL again. Change the user's password,quit,

Update user set Password=password ("#######") where # # #

Redhat start MySQL failure and reset password

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.