Gavin_wangjz 发表于 2005-3-30 18:15:43

Help !About mysql installation

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

jiangtao9999 发表于 2005-3-31 21:47:52

你还没有启动 mysql 服务呢~~~ :wink:
页: [1]
查看完整版本: Help !About mysql installation