乱码
Wdcp GBK乱码怎么解决,
在后台的PHP.ini
default_charset = ""
报错
数据库启动报错:
[root@iZ2zeg0jra2uwpz9c6uaf2Z ~]# service mysqld start
Starting MySQL..The server quit without updating PID file ([FAILED]inux/mysql-5.5.54/data/iZ2zeg0jra2uwpz9c6uaf2Z.pid).
具体的报错日志:
mysql 数据库损坏导致,迁移到宝塔面板后,单单拷贝对应的库,mysql 自带库使用宝塔自带的
报错
[root@iZ9zma4z9iv72eZ ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: Warning: DocumentRoot [/www/web/default] does not exist
Warning: DocumentRoot [/www/web/80685566_com/public_html] does not exist
Warning: DocumentRoot [/www/web/fangdai365_cn/public_html] does not exist
Warning: DocumentRoot [/www/web/shfc666_com/public_html] does not exist
Warning: DocumentRoot [/www/web/uxesf_cn/public_html] does not exist
Warning: DocumentRoot [/www/web/uxesf_com/public_html] does not exist
报错提示找不到对应路径,先去检查对应的路径是否正确;
报错
190405 07:35:30 mysqld_safe Starting mysqld daemon with databases from /www/wdlinux/mysql-5.5.49/data
190405 7:35:31 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
190405 7:35:31 [Warning] option 'max_connections': unsigned value 1000000 adjusted to 100000
190405 7:35:31 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
190405 7:35:31 [Warning] option 'max_connections': unsigned value 1000000 adjusted to 100000
190405 7:35:31 [Note] /www/wdlinux/mysql-5.5.49/bin/mysqld (mysqld 5.5.49) starting as process 2418 ...
190405 7:35:31 [Note] Plugin 'FEDERATED' is disabled.
190405 7:35:31 InnoDB: The InnoDB memory heap is disabled
190405 7:35:31 InnoDB: Mutexes and rw_locks use GCC atomic builtins
190405 7:35:31 InnoDB: Compressed tables use zlib 1.2.3
190405 7:35:31 InnoDB: Initializing buffer pool, size = 40.0G
InnoDB: mmap(43956305920 bytes) failed; errno 12
190405 7:35:31 InnoDB: Completed initialization of buffer pool
190405 7:35:31 InnoDB: Fatal error: cannot allocate memory for the buffer pool
190405 7:35:31 [ERROR] Plugin 'InnoDB' init function returned error.
190405 7:35:31 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
190405 7:35:31 [ERROR] Unknown/unsupported storage engine: InnoDB
190405 7:35:31 [ERROR] Aborting
190405 7:35:31 [Note] /www/wdlinux/mysql-5.5.49/bin/mysqld: Shutdown complete
190405 07:35:31 mysqld_safe mysqld from pid file /www/wdlinux/mysql-5.5.49/data/iZm5ef3lyonu19mqs6wk3vZ.pid ended
原因:降低配置导致内存不足导致数据库无法启动,升级完配置恢复了;