mysql初始化后

root@ThinkPad-X230s:/usr/local/mysql/bin# ./mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql
Installing MySQL system tables...   (安装mysql系统表)
OK
Filling help tables...(填充帮助表)
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system   (在开机时运行sql你必须复制support-files/mysql.server到你系统的正确的位置)

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! (请务必记住设置的mysql管理员用户名密码!)
To do so, start the server, then issue the following commands:(可以这样做。开启服务,然后使用以下命令:)

/usr/local/mysql/bin/mysqladmin -u root password 'new-password'
/usr/local/mysql/bin/mysqladmin -u root -h b-ThinkPad-X230s password 'new-password'

Alternatively you can run: (可以用下面的命令替代:)
/usr/local/mysql/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:(你可以开启一个MySQL daemon:)
cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl (你可以用mysql-test-run.pl 测试一个MySQL daemon)
cd /usr/local/mysql/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/local/mysql/scripts/mysqlbug script!

( 请利用mysqlbug脚本报告任何出现的问题!)

posted @ 2015-11-17 15:00  su_yang  阅读(602)  评论(0编辑  收藏  举报