[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
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\
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。