1 [root@db1 home]# chown -R mysql.mysql /data/mysql/mysql_3306 >修改属主属组2 [root@db1 home]# cd /usr/local/mysql/
3 [root@db1 mysql]# chown -R mysql.mysql /usr/local/mysql/*
4 [root@localhost mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql/mysql_3306/data5 Installing MySQL system tables...OK6
7 Filling help tables...OK8
9 To start mysqld at boot time you have to copy10 support-files/mysql.server to the right place for your system11
12 PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !13 To do so, start the server, then issue the following commands:14
15 /usr/local/mysql/bin/mysqladmin -u root password 'new-password'16 /usr/local/mysql/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'17
18 Alternatively you can run:19
20 /usr/local/mysql/bin/mysql_secure_installation21
22 which will also give you the option of removing the test23 databases and anonymous user created by default. This is24 strongly recommended for production servers.25
26 See the manual for more instructions.27
28 You can start the MySQL daemon with:29
30 cd . ; /usr/local/mysql/bin/mysqld_safe &31
32 You can test the MySQL daemon with mysql-test-run.pl33
34 cd mysql-test ; perl mysql-test-run.pl35
36 Please report any problems athttp://bugs.mysql.com/
37
38 The latest information about MySQL is available on the web at39
40 http://www.mysql.com
41
42 Support MySQL by buying support/licenses athttp://shop.mysql.com
43
44 New default config file was created as ./my.cnf and45 will be used by default by the server when you start it.46 You may edit this file to change server settings47
48 WARNING: Default config file /etc/my.cnf exists on the system49 This file will be read by default by the MySQL server50 If you do not want to use this, either remove it, or use the51 --defaults-file argument to mysqld_safe when starting the server