In Linux, the following error is reported when you enter MySQL:
Can't connect to local MySQL server through socket '/var/lib/mysql. sock' (2)
This is very simple because the MySQL service is not started, but it cannot be seen from the literal
Some time ago, when I encountered such a problem, one day I suddenly encountered #2013-Lost connection to MySQL server at 'reading initial communication packet 'during database backup ',System error: 0Pay attention to the red part. Different error
Summary of Common commands in Linux and summary of linux commands
Service -- status-all [service status]
Service MySQL restart [restart database]
Pstree-a [show complete commands for each program]
Pstree-c [not applicable to exact
Mysql configuration file my. cnf configuration and configuration parameters, mysqlmy. cnf
Mysql configuration file my. cnf
Mysql is installed without the my. cnf file.
1. You can copy the mysql sample configuration file, such as the my-medium.cnf
Install MySQL and Ubuntu tumysql1. Verify that MySQL is installed on the original host:Run the sudo netstat-tap | grep mysql command to check whether the MySQL port exists. If sudo is not added, the execution fails because of the permission:
$
In this case, the root password of MySQL is lost. To restore it, let's talk about the environment first:
Red Hat Enterprise Linux 6.3 x86_64
MySQL 5.5.28
According to your previous experience, modify my. cnf: Add skip-grant-tables in [mysqld],
MySQL encoding settings
1. Edit the MySQL configuration file
MySQL configuration file in Windows is generally in the system directory or in the MySQL installation directory named my. ini, you can search, Linux is usually/etc/My. CNF
-- Add a
For partition consideration, do not use LVMRoot --> 20 GBSwap -- 2x system memory
Ram --> 4 GBMaster node:Raid 10, dual Ethernet cards, dual power supplies, etc.Slave node:1. Raid is not necessary
2. HDFS partition, not using LVM/Etc/fstab --
1. Download the MySQL Installation FileThe following two files are required to install MYSQL:MySQL-server-4.0.23-0.i386.rpmMySQL-client-4.0.23-0.i386.rpmTo: http://www.mysql.com/downloads/mysql-4.0.html, open this webpage and pull down the webpage
The database part in the deployment system is mysql, which is used in linux.In mysql, there is no password for Local root Login by default.Execute a grant statement as follows:Grant all on *. * to 'livesky 'IDENTIFIED by '20140901 ';Explanation:
Three methods for starting, stopping, and restarting the MySQL database under Ubuntu Server are described in detail.
Three methods for starting, stopping, and restarting the MySQL database under Ubuntu Server
System Environment: ubuntu server 12.10x6
Solution to failure of MySQL startup in Ubuntu
I found that the MySQL database on one of our Ubuntu servers is stuck. It may be a deadlock, so I tried to use the Command service mysql restart, result MySQL returns the stop/waiting status when it is
Slave have equal MySQL Server UUIDs
Recently, When I deployed The MySQL master-slave replication architecture, I encountered "Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs; these UUIDs
Ubuntu16.04 server: Configure MySQL and enable remote connection. ubuntu16.04mysql
Background
I recently studied nodejs and thought that I had an ECS instance, but I didn't need it for a long time. I was so worried that I had to reinstall a Ubuntu
The LAMP (Linux-Apache-MySQL-PHP) website architecture is currently a popular Web framework, including: Linux operating system, Apache network server, MySQL database, perl, PHP, or Python programming language. All components are open-source software
When the site traffic is large, mysql is under a high pressure. when the CPU usage of mysql exceeds 300%, it cannot provide services, and it is almost stuck. at this time, the best way is to restart the mysql service. This is unpredictable. we don't
Mysql character set modification and viewing problems bitsCN.com
Modification and viewing of Mysql character set
Modify and view the character set of the mysql database
Modify my. cnf
Vi/etc/my. cnf
Add under [client]
Default-character-set =
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.