# cd scripts/ # ls mysql_install_db # ./mysql_install_db --user=mysql --datadir=/data/mydata FATAL ERROR: please install the following Perl modules before executing ./mysql_install_db: Data::Dumper 初始化過程中會報錯,需要安裝perl-Module-Install.noarch # yum install -y perl-Module-Install.noarch # scripts/mysql_install_db --user=mysql --datadir=/data/mydata 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: ./bin/mysqladmin -u root password ‘new-password‘ ./bin/mysqladmin -u root -h localhost.localdomain password ‘new-password‘ Alternatively you can run: ./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 . ; ./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 http://bugs.mysql.com/ The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.com New default config file was created as ./my.cnf and will be used by default by the server when you start it. You may edit this file to change server settings |