Chinaunix首页 | 论坛 | 博客
  • 博客访问: 45431
  • 博文数量: 26
  • 博客积分: 800
  • 博客等级: 准尉
  • 技术积分: 270
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-05 01:01
文章分类

全部博文(26)

文章存档

2011年(2)

2010年(9)

2009年(8)

2008年(7)

我的朋友

分类: Mysql/postgreSQL

2008-10-19 00:49:51

安装了一个Mysql ,安装完成时提示:
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

Alternatively you can run:
/usr/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.

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at

Support MySQL by buying support/licenses at


Notes regarding SELinux on this platform:
=========================================

The default policy might cause server startup to fail because it is
not allowed to access critical files. In this case, please update
your installation.

The default policy might also cause inavailability of SSL related
features because the server is not allowed to access /dev/random
and /dev/urandom. If this is a problem, please do the following:

  1) install selinux-policy-targeted-sources from your OS vendor
  2) add the following two lines to /etc/selinux/targeted/src/policy/domains/program/mysqld.te:
       allow mysqld_t random_device_t:chr_file read;
       allow mysqld_t urandom_device_t:chr_file read;
  3) cd to /etc/selinux/targeted/src/policy and issue the following command:
       make load


Starting MySQL..[  OK  ]
Giving mysqld 2 seconds to start

SS的就运行了一下
/usr/bin/mysqladmin -u root password
输入的密码没有加单引号,就再也登录不进来了,重新安装也没有解决,
后来locate mysql|grep data找到数据文件夹,把它删除了,然后再重新安装,输入密码时加上了单引号,象是可以了.

阅读(1595) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~