开发者社区> 问答> 正文

oracle linux 7.2中安装mariadb-10.1.22 报错Cou?400报错

[root@localhost support-files]# ./mysql.server start
Starting MySQL.170323 13:21:11 mysqld_safe Logging to '/application/mariadb-10.1.22-DMYSQL_DATADIR=/application/mariadb-10.1.22/data/data/localhost.localdomain.err'.
170323 13:21:11 mysqld_safe Starting mysqld daemon with databases from /application/mariadb-10.1.22-DMYSQL_DATADIR=/application/mariadb-10.1.22/data/data
 ERROR! 

 

然后more看了下日志

more /application/mariadb-10.1.22-DMYSQL_DATADIR=/application/mariadb-10.1.22/data/data/localhost.localdomain.err

2017-03-23 13:26:54 140446513174656 [Note] /application/mariadb-10.1.22-DMYSQL_DATADIR=/application/mariadb-10.1.22/data/bin/mysqld (my
sqld 10.1.22-MariaDB) starting as process 27691 ...
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: The InnoDB memory heap is disabled
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: Using SSE crc32 instructions
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: Completed initialization of buffer pool
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: Highest supported file format is Barracuda.
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: The log sequence numbers 1600779 and 1600779 in ibdata files do not match the log se
quence number 1600819 in the ib_logfiles!
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: Restoring possible half-written data pages from the doublewrite buffer...
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: 128 rollback segment(s) are active.
2017-03-23 13:26:54 140446513174656 [Note] InnoDB: Waiting for purge to start
2017-03-23 13:26:55 140446513174656 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 16
00819
2017-03-23 13:26:55 140446513174656 [Note] Plugin 'FEEDBACK' is disabled.
2017-03-23 13:26:55 140446513174656 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2017-03-23 13:26:55 140446513174656 [Note] Recovering after a crash using tc.log
2017-03-23 13:26:55 140446513174656 [Note] Starting crash recovery...
2017-03-23 13:26:55 140446513174656 [Note] Crash recovery finished.
2017-03-23 13:26:55 140445992593152 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-03-23 13:26:55 140446513174656 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
2017-03-23 13:26:55 140446513174656 [Note] Server socket created on IP: '::'.
2017-03-23 13:26:55 140446513174656 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
170323 13:26:55 mysqld_safe mysqld from pid file /application/mariadb-10.1.22-DMYSQL_DATADIR=/application/mariadb-10.1.22/data/data/loc
alhost.localdomain.pid ended

 

 

/etc/my.cnf 加上这句,不需要密码可以登录,请问下这是什么原因引起

skip-grant-tables

展开
收起
爱吃鱼的程序员 2020-06-08 16:02:20 892 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
    cmake-DCMAKE_BUILD_TYPE=Release\-DCMAKE_INSTALL_PREFIX=/usr\-DINSTALL_DOCDIR=share/doc/mariadb-10.1.22\-DINSTALL_DOCREADMEDIR=share/doc/mariadb-10.1.22\-DINSTALL_MANDIR=share/man\-DINSTALL_MYSQLSHAREDIR=share/mysql\-DINSTALL_MYSQLTESTDIR=share/mysql/test\-DINSTALL_PLUGINDIR=lib/mysql/plugin\-DINSTALL_SBINDIR=sbin\-DINSTALL_SCRIPTDIR=bin\-DINSTALL_SQLBENCHDIR=share/mysql/bench\-DINSTALL_SUPPORTFILESDIR=share/mysql\-DMYSQL_DATADIR=/srv/mysql\-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock\-DWITH_EXTRA_CHARSETS=complex\-DWITH_EMBEDDED_SERVER=ON\-DTOKUDB_OK=0\
    2020-06-08 16:02:31
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
PostgresChina2018_樊文凯_ORACLE数据库和应用异构迁移最佳实践 立即下载
PostgresChina2018_王帅_从Oracle到PostgreSQL的数据迁移 立即下载
Oracle云上最佳实践 立即下载