QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 537|回复: 0

安装mysql 出了问题

[复制链接]
发表于 2003-12-15 21:09:55 | 显示全部楼层 |阅读模式
安装mysql (root下,如果没有特别指明都在root下)
#tar zxvf mysql-3.23.58-pc-linux-i686.tar.gz
#mv mysql-3.23.58-pc-linux-i686 /usr/local/mysql
#groupadd mysql
#useradd -g mysql mysql
#cd /usr/local/mysql
#scripts/mysql_install_db
#chown -R root .
#chown -R mysql data
#chgrp -R mysql .
#bin/mysqld_safe --user=mysql &
或者:
#bin/mysqld_safe --user=mysql &
为了能使能随开机自动启动:
vi /etc/rc.local
在末尾加入:
/bin/sh -c 'cd /usr/local/mysql; ./bin/safe_mysqld &'

上面是安装mysql的方法
但是我到了执行这个步的时候不能创建表
#scripts/mysql_install_db

下面是错误信息。请大侠帮帮忙啊
Installing all prepared tables
031215 20:53:33  ./bin/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:
./bin/mysqladmin -u root  password 'new-password'
./bin/mysqladmin -u root -h flasher.localdomain  password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./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 . ; ./bin/safe_mysqld &

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

Please report any problems with the ./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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-15 11:46 , Processed in 0.047842 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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