- 论坛徽章:
- 0
|
问题一:
我装好mysql之后,有一个默认的用户为mysql 它的默认密码为空 我可以登录成功
不过我想给它加密码,却报错
[root@dengtininf bin]# mysqladmin -umysql -p password cbwsgps
Enter password:
mysqladmin: unable to change password; error: 'Access denied for user ''@'localhost' to database 'mysql''
因为密码为空,我就直接回车了,
按照本版的faq里说的,因为密码为空,我又把-p这个参数给去了,
[root@dengtininf bin]# mysqladmin -umysql password cbwsgps
mysqladmin: unable to change password; error: 'Access denied for user ''@'localhost' to database 'mysql''
也不行,
为什么它 ''@'localhost' 前面的显示的是空,而不是'mysql'@'localhost'
当我用mysqladmin改其它用户名的密码时却可以,比如说root用户的密码 而且后面显示的也是'root'@'localhost'
问题二
mysql的启动问题
[root@dengtining bin]#mysqld_safe
Starting mysqld daemon with databases from /usr/local/mysql/data
之后就没反应了,但是再开一个终端时显示数据库已启动
我想知道 mysqld_safe --user=mysql &
后面几个参数的意思 --user=mysql 和&
[root@dengtining bin]#mysqld_safe --help
Usage: /usr/local/mysql/bin/mysqld_safe [OPTIONS]
--no-defaults Don't read the system defaults file
--defaults-file=FILE Use the specified defaults file
--defaults-extra-file=FILE Also use defaults from the specified file
--ledir=DIRECTORY Look for mysqld in the specified directory
--log-error=FILE Log errors to the specified log file
--open-files-limit=LIMIT Limit the number of open files
--core-file-size=LIMIT Limit core files to the specified size
--timezone=TZ Set the system timezone
--mysqld=FILE Use the specified file as mysqld
--mysqld-version=VERSION Use "mysqld-VERSION" as mysqld
--nice=NICE Set the scheduling priority of mysqld
--skip-kill-mysqld Don't try to kill stray mysqld processes
All other options are passed to the mysqld program.
[ 本帖最后由 FM1058 于 2006-4-30 00:23 编辑 ] |
|