免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3579 | 回复: 4
打印 上一主题 下一主题

mysql登录时,弹出错误信息 [复制链接]

论坛徽章:
2
2015年亚洲杯之伊拉克
日期:2015-04-13 10:55:1115-16赛季CBA联赛之山西
日期:2016-05-16 09:54:41
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-11-04 17:37 |只看该作者 |倒序浏览
本帖最后由 little_angel 于 2015-11-04 17:48 编辑

1.正常启动mysql
  1. -bash-4.2$ service mysql start
  2. Starting MySQL SUCCESS!
复制代码
2.登录操作
  1. mysqld -uroot -pDJGN9M5fHkY5y4wN
复制代码
3.然后就弹出错误信息
  1. 2015-11-05 01:30:50 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
  2. 2015-11-05 01:30:50 2496 [Warning] One can only use the --user switch if running as root

  3. 2015-11-05 01:30:50 2496 [Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000)

  4. 2015-11-05 01:30:50 2496 [Warning] Buffered warning: Changed limits: table_cache: 431 (requested 2000)

  5. 2015-11-05 01:30:50 2496 [Note] Plugin 'FEDERATED' is disabled.
  6. 2015-11-05 01:30:50 2496 [Note] InnoDB: Using atomics to ref count buffer pool pages
  7. 2015-11-05 01:30:50 2496 [Note] InnoDB: The InnoDB memory heap is disabled
  8. 2015-11-05 01:30:50 2496 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  9. 2015-11-05 01:30:50 2496 [Note] InnoDB: Compressed tables use zlib 1.2.3
  10. 2015-11-05 01:30:50 2496 [Note] InnoDB: Using Linux native AIO
  11. 2015-11-05 01:30:50 2496 [Note] InnoDB: Using CPU crc32 instructions
  12. 2015-11-05 01:30:50 2496 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  13. 2015-11-05 01:30:50 2496 [Note] InnoDB: Completed initialization of buffer pool
  14. 2015-11-05 01:30:50 2496 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
  15. 2015-11-05 01:30:50 2496 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
  16. 2015-11-05 01:30:50 2496 [Note] InnoDB: Retrying to lock the first data file
  17. 2015-11-05 01:30:51 2496 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
  18. 2015-11-05 01:30:51 2496 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
  19. 2015-11-05 01:30:52 2496 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
  20. 2015-11-05 01:30:52 2496 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
复制代码
我尝试了一些方法,但还是未解决,求助各位大声。。。。。

论坛徽章:
2
2015年亚洲杯之伊拉克
日期:2015-04-13 10:55:1115-16赛季CBA联赛之山西
日期:2016-05-16 09:54:41
2 [报告]
发表于 2015-11-04 17:44 |只看该作者
在线等~~~~

论坛徽章:
0
3 [报告]
发表于 2015-11-11 00:07 |只看该作者
mysql是以root用户启动的? 改为mysql

论坛徽章:
7
数据库技术版块每日发帖之星
日期:2015-11-17 06:20:00数据库技术版块每日发帖之星
日期:2015-11-18 06:20:00数据库技术版块每日发帖之星
日期:2015-11-30 06:20:00数据库技术版块每月发帖之星
日期:2016-01-07 23:03:06数据库技术版块每周发帖之星
日期:2016-01-07 23:06:31数据库技术版块每周发帖之星
日期:2016-01-07 23:06:47数据库技术版块每日发帖之星
日期:2016-01-14 06:20:00
4 [报告]
发表于 2015-11-17 11:24 |只看该作者
2015-11-05 01:30:51 2496 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2015-11-05 01:30:51 2496 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2015-11-05 01:30:52 2496 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2015-11-05 01:30:52 2496 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.

这些文件都被锁定了,说明有进程正在使用,是不是已经启动了一个mysql,

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
5 [报告]
发表于 2015-11-18 19:31 |只看该作者
系统有另外的mysql服务在运行吧,楼主最好用service mysql restart来启动服务。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP