mysql源码启动_mysql 源码编译安装后死活启动不成功,如何办?

2017-08-13 22:59:57 1549 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

2017-08-13 22:59:57 1549 [Note] InnoDB: Using atomics to ref count buffer pool pages

2017-08-13 22:59:57 1549 [Note] InnoDB: The InnoDB memory heap is disabled

2017-08-13 22:59:57 1549 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2017-08-13 22:59:57 1549 [Note] InnoDB: Memory barrier is not used

2017-08-13 22:59:57 1549 [Note] InnoDB: Compressed tables use zlib 1.2.3

2017-08-13 22:59:57 1549 [Note] InnoDB: Using CPU crc32 instructions

2017-08-13 22:59:57 1549 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2017-08-13 22:59:57 1549 [Note] InnoDB: Completed initialization of buffer pool

2017-08-13 22:59:57 1549 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!

2017-08-13 22:59:57 1549 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB

2017-08-13 22:59:57 1549 [Note] InnoDB: Database physically writes the file full: wait...

2017-08-13 22:59:57 1549 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB

2017-08-13 22:59:57 1549 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB

2017-08-13 22:59:57 1549 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0

2017-08-13 22:59:57 1549 [Warning] InnoDB: New log files created, LSN=45781

2017-08-13 22:59:57 1549 [Note] InnoDB: Doublewrite buffer not found: creating new

2017-08-13 22:59:57 1549 [Note] InnoDB: Doublewrite buffer created

2017-08-13 22:59:57 1549 [Note] InnoDB: 128 rollback segment(s) are active.

2017-08-13 22:59:57 1549 [Warning] InnoDB: Creating foreign key constraint system tables.

2017-08-13 22:59:57 1549 [Note] InnoDB: Foreign key constraint system tables created

2017-08-13 22:59:57 1549 [Note] InnoDB: Creating tablespace and datafile system tables.

2017-08-13 22:59:57 1549 [Note] InnoDB: Tablespace and datafile system tables created.

2017-08-13 22:59:57 1549 [Note] InnoDB: Waiting for purge to start

2017-08-13 22:59:57 1549 [Note] InnoDB: 5.6.37 started; log sequence number 0

2017-08-13 22:59:57 1549 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 127c531b-

8038-11e7-9c49-000c29859ce2.

2017-08-13 22:59:57 1549 [Note] Server hostname (bind-address): '*'; port: 3306

2017-08-13 22:59:57 1549 [Note] IPv6 is available.

2017-08-13 22:59:57 1549 [Note] - '::' resolves to '::';

2017-08-13 22:59:57 1549 [Note] Server socket created on IP: '::'.

2017-08-13 22:59:57 1549 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

2017-08-13 23:03:37 1752 [Note] Plugin 'FEDERATED' is disabled.

/usr/local/mysql56/bin/mysqld: Table 'mysql.plugin' doesn't exist

2017-08-13 23:03:37 1752 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

2017-08-13 23:03:37 1752 [Note] InnoDB: Using atomics to ref count buffer pool pages

2017-08-13 23:03:37 1752 [Note] InnoDB: The InnoDB memory heap is disabled

2017-08-13 23:03:37 1752 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2017-08-13 23:03:37 1752 [Note] InnoDB: Memory barrier is not used

2017-08-13 23:03:37 1752 [Note] InnoDB: Compressed tables use zlib 1.2.3

2017-08-13 23:03:37 1752 [Note] InnoDB: Using CPU crc32 instructions

2017-08-13 23:03:37 1752 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2017-08-13 23:03:37 1752 [Note] InnoDB: Completed initialization of buffer pool

2017-08-13 23:03:37 1752 [Note] InnoDB: Highest supported file format is Barracuda.

2017-08-13 23:03:37 1752 [Note] InnoDB: Log scan progressed past the checkpoint lsn 49463

2017-08-13 23:03:37 1752 [Note] InnoDB: Database was not shutdown normally!

2017-08-13 23:03:37 1752 [Note] InnoDB: Starting crash recovery.

2017-08-13 23:03:37 1752 [Note] InnoDB: Reading tablespace information from the .ibd files...

2017-08-13 23:03:37 1752 [Note] InnoDB: Restoring possible half-written data pages

2017-08-13 23:03:37 1752 [Note] InnoDB: from the doublewrite buffer...

InnoDB: Doing recovery: scanned up to log sequence number 1600607

2017-08-13 23:03:38 1752 [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 completed

2017-08-13 23:03:38 1752 [Note] InnoDB: 128 rollback segment(s) are active.

2017-08-13 23:03:38 1752 [Note] InnoDB: Waiting for purge to start

2017-08-13 23:03:38 1752 [Note] InnoDB: 5.6.37 started; log sequence number 1600607

2017-08-13 23:03:38 1752 [Note] Server hostname (bind-address): '*'; port: 3306

2017-08-13 23:03:38 1752 [Note] IPv6 is available.

2017-08-13 23:03:38 1752 [Note] - '::' resolves to '::';

2017-08-13 23:03:38 1752 [Note] Server socket created on IP: '::'.

2017-08-13 23:03:38 1752 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

第一个错:[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

升级一些东西,但是执行后结果是:

[www@localhost bin]$ sudo /usr/local/mysql56/bin/mysql_upgrade

Looking for 'mysql' as: /usr/local/mysql56/bin/mysql

Looking for 'mysqlcheck' as: /usr/local/mysql56/bin/mysqlcheck

Error: Failed while fetching Server version! Could be due to unauthorized access.

FATAL ERROR: Upgrade failed

我的my.cnf:

# For advice on how to change settings please see

# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data

# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.

# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging

# changes to the binary log between backups.

# log_bin

# These are commonly set, remove the # and set as required.

basedir=/usr/local/mysql56/

datadir=/data1/mysqldb/3306/

port=3306

# server_id = .....

#socket=/usr/local/var/run/mysql.sock

# Remove leading # to set options mainly useful for reporting servers.

# The server defaults are faster for transactions and fast SELECTs.

# Adjust sizes as needed, experiment to find the optimal values.

# join_buffer_size = 128M

# sort_buffer_size = 2M

# read_rnd_buffer_size = 2M

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值