当前位置:网站首页>MySQL startup error: several solutions to the server quit without updating PID file
MySQL startup error: several solutions to the server quit without updating PID file
2022-07-03 05:36:00 【 】
1. Directory permission problem
Yes mysql The installation directory and data directory of are authorized respectively
#chown -R mysql.mysql /usr/local/mysql
#chown -R mysql.mysql /data/mysql
#service mysqld start
2. Maybe it's already in the process mysql process
resolvent : Command “ps -ef|grep mysqld” Check to see if there is mysqld process , If used “kill -9 Process number ” Kill , And then restart it mysqld!
3. It may be the second time to install... On the machine mysql, There is residual data that affects service startup .
resolvent : Go to mysql Data directory for /data have a look , If there is mysql-bin.index, Just delete it , It's the culprit .
4.mysql It is used when no configuration file is specified at startup /etc/my.cnf The configuration file , Please open this file to view in [mysqld] There is no specified data directory under section (datadir).
resolvent : Please be there. [mysqld] Next set this line :datadir = /usr/local/mysql/data
5. May be /usr/local/mysql/data/mysql.pid The file does not have permission to write
resolvent : Give authority , perform “chown -R mysql:mysql /var/data” “chmod -R 755 /usr/local/mysql/data” And then restart it mysqld!
6.selinux To blame , If it is centos System , On by default selinux
resolvent : Close it , open /etc/selinux/config, hold SELINUX=enforcing Change it to SELINUX=disabled After saving the disk, exit and restart the machine
7. Delete mysql The library files /data/mysql/ Medium “ib_*” file , Be careful :** Be sure to back up the database before performing this operation , because ibdata1 All data files are stored , If you accidentally delete the Library , That would be tragic !!!( From deleting the library to running away ...), And then restart mysql.
8. Check the log and there are the following error prompts :Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
terms of settlement :
[[email protected] mysql]# rm -rf ib_logfile*
Then start mysql, Problem solving !
9. Look at the words in the log “initialize buffer pool,size=128.0M”,“cannot allocate memory for the pool”, Can't allocate enough memory for pool Use . Now I think of it mysql There are relevant configurations in the configuration file , Then change the following parameters :
innodb_buffer_pool_size = 128
# The default value in the configuration file is 128M
Turn this value down , Start again mysql service , Problem solving !
10. Missing on system mysql The dependent files of
#yum -y install libaio
#yum -y install numactl
Restart mysql service , Problem solving
边栏推荐
- Altaro requirements for starting from backup on Hyper-V
- Learn libcef together -- set cookies for your browser
- Explanation of variables, code blocks, constructors, static variables and initialization execution sequence of static code blocks of Ali interview questions
- Xaml gradient issue in uwp for some devices
- Altaro o365 total backup subscription plan
- Rust基础入门之(基本类型)
- "250000 a year is just the price of cabbage" has become a thing of the past. The annual salary of AI posts has decreased by 8.9%, and the latest salary report has been released
- Altaro VM backup getting started
- "C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)
- XML配置文件
猜你喜欢

Detailed explanation of yolov5 training own data set

Beaucoup de CTO ont été tués aujourd'hui parce qu'il n'a pas fait d'affaires

Final review (Day5)

Export the altaro event log to a text file

"C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)

Latest version of source insight

大二困局(复盘)

"250000 a year is just the price of cabbage" has become a thing of the past. The annual salary of AI posts has decreased by 8.9%, and the latest salary report has been released

redis 无法远程连接问题。

@Solutions to null pointer error caused by Autowired
随机推荐
Technical analysis of qianyuantong multi card aggregation router
期末复习(DAY7)
"C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)
Communication - how to be a good listener?
ES7 easy mistakes in index creation
Xaml gradient issue in uwp for some devices
小学校园IP网络广播-基于校园局域网的小学IP数字广播系统设计
Introduction to deep learning (II) -- univariate linear regression
Webrtc M96 release notes (SDP abolishes Plan B and supports opus red redundant coding)
Configure and use Anaconda environment in pycharm
6.23 warehouse operation on Thursday
@Autowired 导致空指针报错 解决方式
Final review (Day2)
Brief introduction of realsense d435i imaging principle
期末复习DAY8
Go practice -- design patterns in golang's singleton
College campus IP network broadcasting - manufacturer's design guide for college campus IP broadcasting scheme based on campus LAN
Robot capture experiment demonstration video
Talk about how to use p6spy for SQL monitoring
Altaro requirements for starting from backup on Hyper-V