QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1319|回复: 2

Help !About mysql installation

[复制链接]
发表于 2005-3-30 18:15:43 | 显示全部楼层 |阅读模式
OS:SuSE
MYSQL Version:mysql-5.0.3-beta
Question description:
1.After installation,I run command below:
linux:/usr/local/mysql # ./bin/mysql_install_db
Installing all prepared tables
Fill help tables

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

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
2.So I run command:
/usr/local/mysql/bin/mysqladmin -u root password 'password'
but it show a error code below:
error code:
connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!

I used command (find / -name mysql.sock) try to find this file,but not find.
Pls tell me how to slove this trouble and why!

Thank!
发表于 2005-3-30 21:26:33 | 显示全部楼层
应该是没有设置用户权限问题 http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=107525
回复

使用道具 举报

发表于 2005-3-31 21:47:52 | 显示全部楼层
你还没有启动 mysql 服务呢~~~
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-3-29 13:24 , Processed in 0.133134 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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