安装MYSQL时的问题,非新立得里面的!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
狂家三少
帖子: 161
注册时间: 2007-08-11 21:44

安装MYSQL时的问题,非新立得里面的!

#1

帖子 狂家三少 » 2007-11-06 12:44

代码: 全选


root@yuehan-desktop:/home/yuehan/http/mysql-5.0.41-linux-i686# ./configure --prefix=/usr/php-mysql/mysql
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing MySQL system tables...
OK
Filling help tables...
OK

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:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h yuehan-desktop password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

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 http://shop.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
root@yuehan-desktop:/home/yuehan/http/mysql-5.0.41-linux-i686# chown: `mysql': invalid user
Starting mysqld daemon with databases from /home/yuehan/http/mysql-5.0.41-linux-i686/data
STOPPING server from pid file /home/yuehan/http/mysql-5.0.41-linux-i686/data/yuehan-desktop.pid
071106 12:44:09  mysqld ended

安装MYSQL时,出现这个问题,高手帮偶看看,指点小弟一下!
狂家三少
帖子: 161
注册时间: 2007-08-11 21:44

#2

帖子 狂家三少 » 2007-11-06 17:44

没有人知道吗 :roll: :roll: :roll: :roll: :roll: :roll:
Orang-color
帖子: 33
注册时间: 2007-10-25 18:35

#3

帖子 Orang-color » 2007-11-06 18:52

好像已经安装成功了。。

cd . ; ./bin/mysqld_safe &


就是到你安装目录,启动mysql就行了。。。

mysql的默认用户是root
wamper
帖子: 10
注册时间: 2007-08-21 10:08

#4

帖子 wamper » 2007-11-07 14:10

mysql现在都不需要编译了, 拷贝过去,修改一下my.cnf文件,执行以下mysql_install_db就可以运行了,ubuntu现在带的是5.0.45,版本比你的这个还要高一些,为什么不用自带的?我分区的时候分了一个/data, 安装好mysql后, mv /var/lib/mysql /data/mysql 然后修改/etc/mysql/my.cnf里边数据库路径就可以了, 以后重新安装只要再把数据库目录指过去就行了
狂家三少
帖子: 161
注册时间: 2007-08-11 21:44

#5

帖子 狂家三少 » 2007-11-07 20:29

楼上的哥们,偶是小菜,所以凡事想学着自已动手

最近服务器老被黑客光顾,想加快学会LINUX,换上!
回复