MySQL 启动错误: [ERROR] Can't find messagefile '/usr/share/errmsg.sys'(转载)

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
RDS MySQL Serverless 高可用系列,价值2615元额度,1个月
简介: 110623 21:49:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql110623 21:49:41 [ERROR] Can't find messagefile '/usr/share/errmsg.

110623 21:49:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

110623 21:49:41 [ERROR] Can't find messagefile '/usr/share/errmsg.sys'

110623 21:49:41 [Warning] Can't create test file /var/lib/mysql/ubuntu.lower-test

110623 21:49:41 [Warning] Can't create test file /var/lib/mysql/ubuntu.lower-test

/usr/local/mysql/bin/mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2)

110623 21:49:41 [ERROR] Aborting


从日志上发现,mysql的启动目录不对。


修改启动命令:


sudo mysqld_safe --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql &


即可启动成功:


110623 21:49:41 [Note]

110623 21:49:41 mysqld_safe mysqld from pid file /var/lib/mysql/ubuntu.pid ended

110623 21:57:21 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data/

110623 21:57:21 InnoDB: The InnoDB memory heap is disabled

110623 21:57:21 InnoDB: Mutexes and rw_locks use GCC atomic builtins

110623 21:57:21 InnoDB: Compressed tables use zlib 1.2.3.3

110623 21:57:21 InnoDB: Initializing buffer pool, size = 128.0M

110623 21:57:21 InnoDB: Completed initialization of buffer pool

110623 21:57:21 InnoDB: highest supported file format is Barracuda.

110623 21:57:21 InnoDB: Waiting for the background threads to start

110623 21:57:22 InnoDB: 1.1.7 started; log sequence number 1607993

110623 21:57:22 [Note] Event Scheduler: Loaded 0 events

110623 21:57:22 [Note] /usr/local/mysql/bin/mysqld: ready for connections.

Version: '5.5.13' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Source distribution

相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
1月前
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
28 0
|
1月前
|
SQL 关系型数据库 MySQL
SQL Error (2013): Lost connection to MySQL server at 'waiting for initial communication packet', sys...
SQL Error (2013): Lost connection to MySQL server at 'waiting for initial communication packet', sys...
|
4月前
|
关系型数据库 MySQL
ERROR 1449 (HY000): The user specified as a definer (‘mysql.infoschema‘@‘localhost‘) does not exist
ERROR 1449 (HY000): The user specified as a definer (‘mysql.infoschema‘@‘localhost‘) does not exist
26 0
|
4月前
|
SQL 数据采集 关系型数据库
如何解决MySQL报错 You have an error in your SQL syntax; check the manual that corresponds to your MySQL?
如何解决MySQL报错 You have an error in your SQL syntax; check the manual that corresponds to your MySQL?
|
4天前
|
关系型数据库 MySQL 数据库连接
解决 mysql8.0 ERROR 1045 (28000): Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)用户访问拒绝
解决 mysql8.0 ERROR 1045 (28000): Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)用户访问拒绝
23 5
解决 mysql8.0 ERROR 1045 (28000): Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)用户访问拒绝
|
8天前
|
关系型数据库 MySQL 数据库
MySQL 启动 登录报错Job for mysqld.service failed because the control process exited with error code. See
MySQL 启动 登录报错Job for mysqld.service failed because the control process exited with error code. See
|
14天前
|
SQL 关系型数据库 MySQL
MySQL SQL error: #1271 - Illegal mix of collations for operation ‘UNION‘
MySQL SQL error: #1271 - Illegal mix of collations for operation ‘UNION‘
|
25天前
|
关系型数据库 MySQL 数据库
docker 安装mysql(踩坑踩得想哭 详细解决教程)ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using pa
docker 安装mysql(踩坑踩得想哭 详细解决教程)ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using pa
30 1
|
1月前
|
关系型数据库 MySQL 数据安全/隐私保护
MySQL连接ERROR 2059 (HY000): Authentication plugin ‘caching_sha2_password‘ cannot be loaded
MySQL连接ERROR 2059 (HY000): Authentication plugin ‘caching_sha2_password‘ cannot be loaded
36 0
|
5月前
|
关系型数据库 MySQL 数据安全/隐私保护
(解决)Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
(解决)Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
39 0