mysql数据库新安装无法启动
发表于:2026-11-03 作者:千家信息网编辑
千家信息网最后更新 2026年11月03日,mysql数据库源码编译之后,启动失败具体报错日志如下:2018-04-13 23:45:46 67547 [Note] Plugin 'FEDERATED' is disabled./usr/loc
千家信息网最后更新 2026年11月03日mysql数据库新安装无法启动
mysql数据库源码编译之后,启动失败具体报错日志如下:
2018-04-13 23:45:46 67547 [Note] Plugin 'FEDERATED' is disabled./usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist2018-04-13 23:45:46 67547 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.2018-04-13 23:45:46 67547 [Note] InnoDB: Using atomics to ref count buffer pool pages2018-04-13 23:45:46 67547 [Note] InnoDB: The InnoDB memory heap is disabled2018-04-13 23:45:46 67547 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins2018-04-13 23:45:46 67547 [Note] InnoDB: Memory barrier is not used2018-04-13 23:45:46 67547 [Note] InnoDB: Compressed tables use zlib 1.2.32018-04-13 23:45:46 67547 [Note] InnoDB: Using CPU crc32 instructions2018-04-13 23:45:46 67547 [Note] InnoDB: Initializing buffer pool, size = 128.0M2018-04-13 23:45:46 67547 [Note] InnoDB: Completed initialization of buffer pool2018-04-13 23:45:46 67547 [Note] InnoDB: Highest supported file format is Barracuda.2018-04-13 23:45:46 67547 [Note] InnoDB: Log scan progressed past the checkpoint lsn 494632018-04-13 23:45:46 67547 [Note] InnoDB: Database was not shutdown normally!2018-04-13 23:45:46 67547 [Note] InnoDB: Starting crash recovery.2018-04-13 23:45:46 67547 [Note] InnoDB: Reading tablespace information from the .ibd files...2018-04-13 23:45:46 67547 [Note] InnoDB: Restoring possible half-written data pages 2018-04-13 23:45:46 67547 [Note] InnoDB: from the doublewrite buffer...InnoDB: Doing recovery: scanned up to log sequence number 16006072018-04-13 23:45:46 67547 [Note] InnoDB: Starting an apply batch of log records to the database...InnoDB: Progress in percent: 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 InnoDB: Apply batch completed2018-04-13 23:45:46 67547 [Note] InnoDB: 128 rollback segment(s) are active.2018-04-13 23:45:46 67547 [Note] InnoDB: Waiting for purge to start2018-04-13 23:45:46 67547 [Note] InnoDB: 5.6.39 started; log sequence number 16006072018-04-13 23:45:46 67547 [Note] Server hostname (bind-address): '*'; port: 33062018-04-13 23:45:46 67547 [Note] IPv6 is available.2018-04-13 23:45:46 67547 [Note] - '::' resolves to '::';2018-04-13 23:45:46 67547 [Note] Server socket created on IP: '::'.2018-04-13 23:45:46 67547 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist解决方法:
重新初始化数据库即可
shell> /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data`
之后数据库启动成功
shell> /etc/init.d/mysqld start
Starting MySQL. SUCCESS!
设置root用户登陆密码:
shell> mysqladmin -uroot -p password '123456'
Enter password:【默认密码为空直接回车即可】
Warning: Using a password on the command line interface can be insecur
数据
数据库
密码
成功
方法
日志
源码
用户
登陆
编译
新安
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
保险科技 互联网保险
为想互联网科技怎么样
中关村互联网科技集团
互联网医疗科技
互联网科技排名
致聘互联网科技
无线互联网科技
温州喔噻互联网科技有限公司
阿里互联网科技公司
互联网经济与金融科技
哈尔滨屹滨互联网科技有限公司
互联网金融科技名词解释
山东有哪些互联网科技公司
南通创西澳互联网科技有限公司
本届互联网大会上的黑科技
郑州欣桑互联网科技有限公司
云南互联网科技学费
中国互联网公司的科技投入
互联网科技职业技能培训学校
中国主要互联网科技公司
互联网科技企业
湖北九亚互联网络科技有限公司
互联网科技财经
圆梦互联网科技
镁科技互联网资讯平台
中国互联网有什么科技含量
互联网相关科技技术
互联网科技新闻
互联网的科技体现在哪里
伍佰万互联网科技是干嘛的