ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 安装mysql

安装mysql

原创 Linux操作系统 作者:yhj20041128001 时间:2013-11-15 14:15:35 0 删除 编辑

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 hrmsustt.szoffice.mtrsz.local 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 with the ./bin/mysqlbug script!

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

WARNING: Found existing config file ./my.cnf on the system.
Because this file might be in use, it was not replaced,
but was used in bootstrap (unless you used --defaults-file)
and when you later start the server.
The new default config file was created as ./my-new.cnf,
please compare it with your file and take the changes you need.

 
 

create database mtrszsurvey2013 default character set utf8; 

grant all on mtrszsurvey2013.* to mysql@localhost identified by 'password';

grant all on mtrszsurvey2013.* to mysql@127.0.0.1 identified by 'password';

grant all on mtrszsurvey2013.* to mysql@10.70.38.161 identified by 'password';

grant all on mtrszsurvey2013.* to root@10.70.38.161 identified by 'password';

grant all on *.* to root@'%' identified by 'password'; 


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23757700/viewspace-776654/,如需转载,请注明出处,否则将追究法律责任。

上一篇: trace top sql session
请登录后发表评论 登录
全部评论

注册时间:2010-09-17

  • 博文量
    162
  • 访问量
    354673