7. pid-file/mysqld.pid --user=mysql --port=3304 --server-id=100
mysql 19233 18884 0 10:07 pts/1 00:00:00 /app/mysql/home/mysql_5525/bin/mysqld --basedir=/
app/mysql/home/mysql_5525 --datadir=/mysqldata/kmac --plugin-dir=/app/mysql/home/mysql_5525/
lib/plugin --server-id=100 --log-error=/var/log/mysqld.log --pid-file=/mysqldata/kmac/pid-
file/mysqld.pid --socket=/mysqldata/kmac/socket/mysql.sock --port=3304
八、客户端连接实例与权限
[mysql@Tanxuefeng ~]$ mysql -u root -h127.0.0.1 -P3308
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 2
Server version: 5.5.25-log Source distribution
Copyright (c) 2000, 2011, 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> grant all privileges on *.* to root@"%" identified by "root123";
Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
创建账户:
mysql> insert into mysql.user(Host,User,Password) values('localhost','admin',password('admin'));
Query OK, 1 row affected, 3 warnings (0.01 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> grant all on *.* to 'admin'@'%' identified by 'admin' with grant option;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
附录 1:支撑软件包安装