LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 896|回复: 9

装mysql时出错??

[复制链接]
发表于 2003-5-27 22:04:57 | 显示全部楼层 |阅读模式
我按置顶的帖子来装mysql,在装到 /usr/local/mysql/bin/safe_mysqld --user=mysql &出错了:
# /usr/local/mysql/bin/safe_mysqld --user=mysql &
[1] 9338
[root@King mysql-4.0.13]# bash: /usr/local/mysql/bin/safe_mysqld: 没有那个文件或目录

[1]+  Exit 127                /usr/local/mysql/bin/safe_mysqld --user=mysql
发表于 2003-5-27 22:44:02 | 显示全部楼层
你是装还是运行?
 楼主| 发表于 2003-5-27 22:51:08 | 显示全部楼层
不是按置顶的那篇apache+php+mysql里说一步一步往下嘛,
初始化后,不是启动吗?出错了.
而且接下来的改密码也不行.
请问是什么原因?为什么会没那路径呢?
发表于 2003-5-27 22:59:39 | 显示全部楼层
/scripts/mysql_install_db
/bin/sfe_mysqld --user=mysql &
你创建了mysql用户嘛?
发表于 2003-5-27 23:00:25 | 显示全部楼层
我怀疑你是下载的Mysql是下载它的bin文件。
 楼主| 发表于 2003-5-28 12:45:13 | 显示全部楼层
两位大哥所说的问题我再看了一遍,全没问题.不过有一点
我用的是当前版本,不是3.X
初始化后提示如下:
[root@King mysql-4.0.13]# scripts/mysql_install_db
Installing all prepared tables
030528 12:38:48  /usr/local/mysql/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 !
This is done with:
/usr/local/mysql/bin/mysqladmin -u root password 'new-password'
/usr/local/mysql/bin/mysqladmin -u root -h King 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/mysql/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/mysql ; /usr/local/mysql/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/mysql/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
是不是版本高了也不行的,或者是目录路径不同的呢?
发表于 2003-5-28 12:56:09 | 显示全部楼层
我的也是4.0的mysql,没有问题的。
发表于 2003-5-28 14:21:12 | 显示全部楼层
你在usr/local/mysql下看看有无bin这个目录呀
发表于 2003-5-28 14:26:42 | 显示全部楼层
你配置文件拷贝到/etc/下了么?
 楼主| 发表于 2003-5-28 19:01:15 | 显示全部楼层
现在已经可以了,原来是那篇文章里的/usr/local/mysql/bin/safe_mysqld --user=mysql &文件名出错了,应该是mysqlld_safe,其他不变就行,不知以前的版本是和4.X不一样还是写错了.
--------------------------------------------------------------
先谢过各位大哥的帮忙了.正是你们让我有了家的感觉!!!
The feeling is very GOOD!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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