Several minor issues with MySQL in Linux

Source: Internet
Author: User

Several Problems with MySQL in Linux today:

Task to be completed: Use a local management tool to manage data on the server

In Linux:

/Usr/local/MySQL/bin/MySQL-uroot-p123456 // enter the MySQL Management Interface

Error:

Error 1045 (28000 ):
Access denied for user 'root' @ 'localhost' (using password: Yes)

Solution:

/Usr/local/MySQL/share/MySQL. server stop // close MySQL first

/Usr/local/MySQL/bin/mysqld_safe -- user = MySQL -- skip-grant-tables -- skip-Networking &

/Usr/local/MySQL/bin/MySQL-u root MySQL

Update user SET Password = PASSWORD ('000000') where user = 'root'; // modify the password

Restart MySQL Service

**************************

Authorize local ip192.168.1.48:

Mysql> grant all on *. * to root @ '192. 168.1.48 'identified by '20140901'; // authorize the IP address access permission

**************************************** ****************************

Local Database Management tools:

Use Database management tools-connect to data management data

Error: Error No 2003 can't connect to MySQL Server on192.168.1.23

My problem may be that the firewall is not closed. There are two solutions:

Disable firewall (1) service iptables stop (temporarily disable)

(2) chkconfig iptables off (effective after restart)

* ******* Connection successful

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.