在原有3306端口mysqld服务的情况再搭建第二个3308端口的mysql实例(三)
.000001
-rw-rw---- 1 mysql mysql 1211196 Sep 12 02:56 mysql-bin.000002
-rw-rw---- 1 mysql mysql 143 Sep 12 03:02 mysql-bin.000003
-rw-rw---- 1 mysql mysql 120 Sep 12 03:21 mysql-bin.000004
-rw-rw---- 1 mysql mysql 108 Sep 12 03:21 mysql-bin.log.index
drwx------ 2 mysql mysql 4096 Sep 12 02:56 performance_schema
drwx------ 2 mysql mysql 4096 Sep 12 02:56 test
[root@472322 data56m1]#
OK,看到error.err生成了,起效果了!
14 check login
[root@472322 data56m1]# mysql -P3308 -s /data56m1/mysql3308.sock
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@472322 data56m1]# mysql -P3308 -S /data56m1/mysql3308.sock
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.13-log Source distribution
Copyright (c) 2000, 2013,
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> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
4 rows in set (0.00 sec)
mysql> select @@port;
+--------+
| @@port |
+--------+
| 3308 |
+--------+
1 row in set (0.00 sec)
mysql>