|

楼主 |
发表于 2004-8-28 11:46:54
|
显示全部楼层
[root@localhost root]# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@localhost root]#
[root@localhost init.d]# ./mysqld start
Timeout error occurred trying to start MySQL Daemon.
启动 MySQL: [失败]
[root@localhost init.d]#
[root@localhost bin]# ./mysql_install_db
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
040828 11:47:46 /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 !
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 localhost.localdomain 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
[root@localhost bin]# ./mysqld_safe &
[1] 2831
[root@localhost bin]# Starting mysqld daemon with databases from /home/data
040828 11:48:42 mysqld ended
mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[1]+ Done ./mysqld_safe
[root@localhost bin]#
错就是这些。 |
|