200907 17:36:42 [Note] Plugin 'FEDERATED' is disabled. /www/server/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist 200907 17:36:42 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 200907 17:36:42 InnoDB: The InnoDB memory heap is disabled 200907 17:36:42 InnoDB: Mutexes and rw_locks use GCC atomic builtins 200907 17:36:42 InnoDB: Compressed tables use zlib 1.2.11 200907 17:36:42 InnoDB: Initializing buffer pool, size = 256.0M 200907 17:36:42 InnoDB: Completed initialization of buffer pool InnoDB: The first specified data file /www/server/data/ibdata1 did not exist: InnoDB: a new database to be created! 200907 17:36:42 InnoDB: Setting file /www/server/data/ibdata1 size to 10 MB InnoDB: Database physically writes the file full: wait... 200907 17:36:42 InnoDB: Log file /www/server/data/ib_logfile0 did not exist: new to be created InnoDB: Setting log file /www/server/data/ib_logfile0 size to 5 MB InnoDB: Database physically writes the file full: wait... 200907 17:36:42 InnoDB: Log file /www/server/data/ib_logfile1 did not exist: new to be created InnoDB: Setting log file /www/server/data/ib_logfile1 size to 5 MB InnoDB: Database physically writes the file full: wait... InnoDB: Doublewrite buffer not found: creating new InnoDB: Doublewrite buffer created InnoDB: 127 rollback segment(s) active. InnoDB: Creating foreign key constraint system tables InnoDB: Foreign key constraint system tables created 200907 17:36:42 InnoDB: Waiting for the background threads to start 200907 17:36:43 InnoDB: 5.5.62 started; log sequence number 0 200907 17:36:43 [Note] Recovering after a crash using mysql-bin 200907 17:36:43 [Note] Starting crash recovery... 200907 17:36:43 [Note] Crash recovery finished. 200907 17:36:43 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306 200907 17:36:43 [Note] - '0.0.0.0' resolves to '0.0.0.0'; 200907 17:36:43 [Note] Server socket created on IP: '0.0.0.0'. 200907 17:36:43 [Warning] Insecure configuration for --pid-file: Location '/www/server/data' in the path is accessible to all OS users. Consider choosing a different directory. 200907 17:36:43 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
200907 17:36:43 [Warning] Insecure configuration for --pid-file: Location '/www/server/data' in the path is accessible to all OS users. Consider choosing a different directory.
不是 apt-get 安装的 mysql 的命令很可能不在默认 PATH 里 你可以试试 /www/server/mysql/bin/mysql_upgrade
594duck
2020-09-08 09:08:33 +08:00
加一个 skip-grant-tables 重启一下,先把 mysql 启动起来,再把数据备份了,再重新初始化一下 mysql
monkeydev
2020-09-08 09:35:29 +08:00
@steptodream root@ubuntu:~# /www/server/mysql/bin/mysql_upgrade Looking for 'mysql' as: /www/server/mysql/bin/mysql Looking for 'mysqlcheck' as: /www/server/mysql/bin/mysqlcheck Error: Failed while fetching Server version! Could be due to unauthorized access. FATAL ERROR: Upgrade failed
报错误
第 1 页 / 共 1 页
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。