Linux环境MySQL5.6安装实录(4)

Filling help tables...2016-01-28 08:37:14 0 [Note] /usr/sbin/mysqld (mysqld 5.6.28) starting as process 10741 ...
2016-01-28 08:37:14 10741 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-01-28 08:37:14 10741 [Note] InnoDB: The InnoDB memory heap is disabled
2016-01-28 08:37:14 10741 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-01-28 08:37:14 10741 [Note] InnoDB: Memory barrier is not used
2016-01-28 08:37:14 10741 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-01-28 08:37:14 10741 [Note] InnoDB: Using Linux native AIO
2016-01-28 08:37:14 10741 [Note] InnoDB: Using CPU crc32 instructions
2016-01-28 08:37:14 10741 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-01-28 08:37:14 10741 [Note] InnoDB: Completed initialization of buffer pool
2016-01-28 08:37:14 10741 [Note] InnoDB: Highest supported file format is Barracuda.
2016-01-28 08:37:14 10741 [Note] InnoDB: 128 rollback segment(s) are active.
2016-01-28 08:37:14 10741 [Note] InnoDB: Waiting for purge to start
2016-01-28 08:37:14 10741 [Note] InnoDB: 5.6.28 started; log sequence number 1625977
2016-01-28 08:37:14 10741 [Note] Binlog end
2016-01-28 08:37:14 10741 [Note] InnoDB: FTS optimize thread exiting.
2016-01-28 08:37:14 10741 [Note] InnoDB: Starting shutdown...
2016-01-28 08:37:16 10741 [Note] InnoDB: Shutdown completed; log sequence number 1625987
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
  /usr/bin/mysqladmin -u root -h tony7 password 'new-password'

Alternatively you can run:

/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.
You can start the MySQL daemon with:
  cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl

cd mysql-test ; perl mysql-test-run.pl

Please report any problems at
The latest information about MySQL is available on the web at


Support MySQL by buying support/licenses at
New default config file was created as /usr/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings

五、启动MySQL服务进程mysqld
cp /usr/share/mysql/mysql.server /etc/init.d/mysqld
# service mysqld start
Starting MySQL... SUCCESS!

# netstat -npl|grep mysql
tcp        0      0 :::3306                    :::*                        LISTEN      11254/mysqld       
unix  2      [ ACC ]    STREAM    LISTENING    21155  11254/mysqld        /mysql/data/mysqldata/sock/mysql.sock

六、修改登录密码和检查数据库参数
mysqladmin -u root -h tony7 password 'mysql'
[root@tony7 ~]# mysql -uroot -pmysql -htony7
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.28-log MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> set password for 'root'@'localhost' = password('mysql');
Query OK, 0 rows affected (0.00 sec)

mysql> use mysql
Database changed
mysql> drop database test ;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/33355b3282ea856eb4bd2b7c1efff9d9.html