QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1183|回复: 3

关于mysql的问题!

[复制链接]
发表于 2004-6-15 14:52:04 | 显示全部楼层 |阅读模式
我第一次使用mysql!
我安装mysql后!
用了下面两个命令:

[root@dove mysql-4.0.20]# scripts/mysql_install_db

Installing all prepared tables
040615 14:38:14  /usr/local/libexec/mysqld: Shutdown Complete


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:
/usr/local/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h dove password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/local/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd /usr/local ; /usr/local/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/local/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 https://order.mysql.com

[root@dove mysql-4.0.20]# /usr/local/bin/mysqladmin -u root password 'new-password'

/usr/local/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

这是怎么回事!
发表于 2004-6-15 15:05:14 | 显示全部楼层
需要先启动 mysql 服务,一般为 /usr/local/libexec/mysqld &
回复

使用道具 举报

 楼主| 发表于 2004-6-15 15:35:38 | 显示全部楼层
不行啊!

错误如下:
[root@dove libexec]#  /usr/local/libexec/mysqld &
[1] 922
Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
040615 15:30:28  Aborting

040615 15:30:28  /usr/local/libexec/mysqld: Shutdown Complete

[1]+  Exit 1                  /usr/local/libexec/mysqld
回复

使用道具 举报

发表于 2004-6-15 16:26:35 | 显示全部楼层
Please read "Security" section of the manual to find out how to run mysqld as root!

看来 MySQL 为了安全,不允许以 root 身份运行 mysqld 。
看看 INSTALL 文件吧,里面有详细的安装方法~~~~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 05:12 , Processed in 0.047390 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表