发新话题
打印

【求助】想在mandriva 2006上装mysql 5 出现如下问题

【求助】想在mandriva 2006上装mysql 5 出现如下问题(已经解决!)

[root@localhost mysql-max-5.0.27-linux-i686-glibc23]# ./configure -prefix=/usr/local/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 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:
  ./bin/mysqladmin -u root password 'new-password'
  ./bin/mysqladmin -u root -h localhost 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 the benchmarks in the 'sql-bench' directory:
  cd sql-bench ; perl run-all-tests
  
  Please report any problems with the ./bin/mysqlbug script!
  
  The latest information about MySQL is available on the web at
  [url="http://www.mysql.com"]http://www.mysql.com[/url]
  Support MySQL by buying support/licenses at [url="http://shop.mysql.com"]http://shop.mysql.com[/url]
  Starting the mysqld server.  You can test that it is up and running
  with the command:
  ./bin/mysqladmin version
  [root@localhost mysql-max-5.0.27-linux-i686-glibc23]# chown: `mysql': invalid user
  Starting mysqld daemon with databases from /root/Desktop/mysql-max-5.0.27-linux-i686-glibc23/data
  STOPPING server from pid file /root/Desktop/mysql-max-5.0.27-linux-i686-glibc23/data/localhost.pid
  061224 11:22:19  mysqld ended
  
  请各位帮忙!      

TOP

已经解决啦!稍后把方法贴出来,可能有遇到同样问题的同胞需要.      

TOP

通过查阅包内的文档和高人的解答,我发现我下载的包是一个已经被编译过的程序,只需要解压配置就可以使用啦。下面是整个的配置过程
shell>groupadd mysql
shell>useradd -g mysql mysql
shell>cd /usr/local
shell>tar xvf -ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
shell>cd mysql
shell> chown -R mysql:mysql /usr/local/mysql/data
shell> chgrp -R mysql /usr/local/mysql/data
shell> chmod 777 /root
shell>chmod 777 /root/tmp
shell> scripts/mysql_install_db --user=mysql
shell>bin/mysqld_safe --user=mysql &

然后服务器就运行了。。。      

TOP

[QUOTE]NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it![/QUOTE]

这个已经很明显告诉你是一个可运行的程序了.你还去 configure ! 汗!!!
很多压缩包解压后都会有一个README或者INSTALL文件.建议多看这样大东西!      
Desktop:Pentium4 1.7G/512+128M DDR/BLACKGOLD CANNON/FX5200/107S5/SiI 680/ST 60G+MT 40G+MT 46G x3@XP SP2+2003 SRV+MDV 2007 Laptop:Asus A9T

TOP

[QUOTE=liony]这个已经很明显告诉你是一个可运行的程序了.你还去 configure ! 汗!!!
很多压缩包解压后都会有一个README或者INSTALL文件.建议多看这样大东西![/QUOTE]
哥们儿说的对,向您学习啦!      

TOP

发新话题